[linux-cifs-client] Permission Issues

Jeff Layton jlayton at redhat.com
Fri Jan 16 12:48:01 GMT 2009


On Thu, 15 Jan 2009 11:12:29 -0800
"Leo Fernandes, HCL America" <hfernandes at hcl.in> wrote:

> Hi,
> 
>  
> 
> I have a CIFS share mounted with the following options
> auto,rw,user=xxx,workgroup=xxx,password=xxx,uid=0,gid=0,setuids,file_mod
> e=0777,dir_mode=0777    0   0
> 
>  
> 
> The problem is that with 0777 all users can delete any files. If I use
> 0755 users cannot create files/folders.
> 
>  
> 
> How to work around these problems?
> 

Sticky bit on directories?

>  
> 
> What I really need is that the mounted share permissions work the same
> way as in a regular EXT3 partition, where cannot delete each others
> files.
> 

Users can delete others' files if the directory that contains them has
0777 perms, even on ext3. If you set the sticky bit on the directory
then they won't be able to do so. Try mounting with "dir_mode=01777".

-- 
Jeff Layton <jlayton at redhat.com>


More information about the linux-cifs-client mailing list