[linux-cifs-client] Permission Issue when mounting from Win2k8

Jeff Layton jlayton at samba.org
Wed Feb 10 10:20:02 MST 2010


On Wed, 10 Feb 2010 14:45:38 +0300
"Ahmed Al-Jeshi" <aljeshi at live.com> wrote:

> Dears,
> 
>  
> 
> I am facing the below scenario:
> 
>  
> 
> The following entries are permanently at /etc/fstab
> 
>  
> 
> //SERVERNAME/SAN1  /SAN1   cifs
> dir_mode=0775,file_mode=0775,uid=18353,gid=300,domain=XYZ,credentials=/root/
> .smbpasswd 0 0
> 
>  
> 
> adminuser# mount /SAN1
> 
>  
> 
> When another user accesses (e.g. testuser) the share and write files, the
> files ownership permission will be assigned to adminuser and the real owner
> (testuser) won't have access permission on those files.
> 
>  
> 
> Ideally, I would like a method where whoever creates a file on the share,
> will have ownership permission.  Does that method exist?
> 

No, not against windows servers. You may be able to work around the
permissions problems by setting file_mode= and dir_mode= appropriately,
or by using "noperm" (which disables client-side permission checking
altogether). Consult the mount.cifs manpage for more info.

-- 
Jeff Layton <jlayton at samba.org>


More information about the linux-cifs-client mailing list