LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   smbmount forces permissions (https://www.linuxquestions.org/questions/linux-general-1/smbmount-forces-permissions-394415/)

JoSnow 12-19-2005 05:00 AM

smbmount forces permissions
 
Hello all,

<problem>
I need smbmount to allow file permissions on the mount point to be changeable.
</problem>

<background info>
I'm setting up a CVS server on a linux box where the repository(ies) reside on a remote NTFS share on Windows server (XP/server 2003 - can't remember which).

I was mounting this on a FC4 test PC using CIFS and everything worked fine.

So I was approved a shiny new server that comes installed with RHEL3, but then I find out to my dismay that that particular OS doesn't support CIFS and due to the special Dell-bodging of the kernel I'm finding it hard to get it working ...

Therefore I decided to go back in time and use smbmount, but it is "doing something" with the permissions that means CVS is unable to chmod them to the various different settings and I get all sorts of hilarious errors spat back at me.
</background info>

<plee>
So, does anybody know of a nice way to get smbmount to just let the permissions be, like it's younger brother does? Or am I scuppered?
</plee>

Thanks
Jo

mvo 12-20-2005 05:21 AM

Don't know if it is of help, but using SMB for my Linux-fileserver serving partly Windows clients I faced many permission problems.

Helpfull to me was: playing with umask (in e.g. bashrc)
using SGID: Setgid Access Mode , with setgid bit set for a directory, new files that are created in the dir have their group ownership set to the same group as the owner of the directory
Furthermore ACL might be of help. I didn't use it but can be usefull:you can grant RWX access to files to multiple users/groups.
To enable ACL, you have to mount the filesystem with '-o acl' mount option, furthermore use getfacl and setfacl...

Hope it serves you in any way


All times are GMT -5. The time now is 08:51 AM.