[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Sheflug] Re: Trouble with permissions
On Friday 26 July 2002 12:12, you exclaimed:
> At 11:47 26/07/02 +0100, Chris J wrote:
> Unless I'm totally misunderstanding the problem (or the replies) I think
> we're attacking the problem from the wrong end. The RAID server is
> correctly configured for Windze boxes, I think the problem lies on the
> linux boxes which are trying to connect. I can't directly edit the smb.conf
> file on the RAID server.
>
> If I chgrp or chmod on the box that has mounted the share, the commands
> appear to work in that they don't come up with errors but in fact nothing
> changes.
Ah! Yes, the whole thing is back to front.
As windows filesystems (and so SMB) has no concept of Unix file permissions,
it has a blanket set of permissions (usually 755) which are used on all
files, and are unchangeable... except at mount time.
The solution is to pass an option to mount along these lines:
mount -tsmbfs //myhost/myshare /mnt/mymountpoint -o username=username,
password=password, fmask=666, dmask=777
This will set all files to globally read/write, and all directories to
globally read/write/execute, for the machine _mounting_ the share, but will
in no way affect the share itself.
HTH
Craig
___________________________________________________________________
Sheffield Linux User's Group -
http://www.sheflug.co.uk/mailfaq.html
GNU the choice of a complete generation.