LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 12-19-2005, 05:00 AM   #1
JoSnow
LQ Newbie
 
Registered: Mar 2004
Posts: 4

Rep: Reputation: 0
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
 
Old 12-20-2005, 05:21 AM   #2
mvo
Member
 
Registered: Apr 2005
Location: Delhi, India
Distribution: Mostly Fedora
Posts: 42

Rep: Reputation: 15
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
smbmount write permissions - root zzyzx Linux - Networking 9 02-09-2005 10:25 PM
ISP forces me to use his DNS linuxuser2005 Linux - Networking 2 10-06-2004 11:52 AM
smbmount is messing with mount point permissions Sohni Linux - Networking 1 04-06-2004 10:37 AM
smbmount file permissions Cosmo92 Linux - Newbie 1 07-08-2003 10:21 PM
Will allied forces with the war? bogler General 3 03-29-2003 09:49 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration