[linux-cifs-client] cifs gives me "Setuid/gid script is writable by world"

Jeff Layton jlayton at redhat.com
Fri Dec 14 11:55:35 GMT 2007


On Fri, 14 Dec 2007 07:58:02 +0100
Jean-Philippe BATTU <jeanpba at free.fr> wrote:

> 
> 
>    Hello
> 
>    I use a FC7 linux box with kernel  2.6.23.8-34.fc7
> 
>    and a cifs version :  mount.cifs version: 1.10
> 
>    when I try to mount a vfat partition from my linux box to a XP  
> machine with the command line:
> 
>    mount //server/share  /a -t cifs -o
> "workgroup=MYG,username=me,password=pwd"
> 
>    I notice that all the files got the following attributes:
> 
>    -rwxrwSrwt 1 root root 101058 2007-11-16 18:49 my_file
> 

By default, files have the setgid bit set but the group execute bit
cleared to designate that files are available for mandatory locking.
You'll probably want to change them to something that doesn't include
the setgid bit. See the "file_mode" and "dir_mode options" in the
mount.cifs manpage.

-- 
Jeff Layton <jlayton at redhat.com>


More information about the linux-cifs-client mailing list