[linux-cifs-client] permission difference between CIFS and SMBFS?
Juran David
ext-david.juran at nokia.com
Thu Nov 23 07:48:35 GMT 2006
On Wed, 2006-11-22 at 18:32 -0800, ext Linux Lover wrote:
> For example, if on the server side I have:
>
> drwxr-x--- 42 lynn lynn 4096 Nov 14 23:55 data
>
> mounting it via CIFS, I get on the client:
>
> drwxr-x--- 42 500 500 0 2006-11-14 23:55 data
>
> but mounting it SMBFS, I get on the client
>
> drwxrwxrwx 1 root root 0 2006-11-14 23:55 data
>
> Which lets me access that share as if I were on a
> Windows machine.
>
> Any idea how to workaround this? That is, still use
> CIFS but not restrict access to the user who
> successfully mounted that share (using sudo)?
Sounds what you want to do is use security=share in the global section
of your samba configuration. man smb.conf for (much) more details.
Another possibility would be to use the uid=lynn option to mount.cifs.
man mount.cifs for further details.
--
David Juran
Sr. Consultant
Red Hat
+358-504-146348
More information about the linux-cifs-client
mailing list