Read-only and shares
David Collier-Brown
David.Collier-Brown at canada.sun.com
Fri Oct 13 11:56:20 GMT 2000
On Thu, 12 Oct 2000 10:51:52 -0500, Bill Grzanich wrote:
>[...] So, I add this to the share:
>
> force user = cmplianc
>
>and create a "user" called "cmplianc". Now it works, but at the
>expense of the actual user name as Linux owner of the file. Everyone
>in the group becomes user "cmplianc" for that share. I can live with
>that, but is there a way to preserve the Linux user name as owner and
>still provide the groups sharing of files AND allow the DOS/Windows
>attributes to be honored?
Sure: you use groups instead, and set the
permissions so that group write will always be
granted.
If your users are in different groups, and you
want everyone to access that share, you can
also use force group.
>Also, I've been asked to provide similar functionality to the Public
>share; that is, allow users to set the read-only attributes on some
>of the files in the Public share.
The persons setting the attribute will need read-write access
to the directory the files are in...
Hmmn: is this the right question? DOS provided the read-only
bit to users so they could protect their files against
the user accidentally writing them. Unix provides permissions
to keep **other** users from writing them. I think we have
a mismatch!
Why do your users want to make these file read-only and public?
--dave
--
David Collier-Brown, | Always do right. This will gratify some people
185 Ellerslie Ave., | and astonish the rest. -- Mark Twain
Willowdale, Ontario | //www.oreilly.com/catalog/samba/author.html
Work: (905) 415-2849 Home: (416) 223-8968 Email: davecb at canada.sun.com
More information about the samba
mailing list