Re: Permission Issue when mounting from Win2k8

Jeff Layton <[email protected]>
Newsgroups gmane.linux.file-systems.cifs
Message-ID <[email protected]>
On Wed, 10 Feb 2010 14:45:38 +0300
"Ahmed Al-Jeshi" <[email protected]> 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 <[email protected]>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.