Anders Johansson wrote:
On Friday 07 May 2004 11.02, Pieter Hulshoff wrote:
On Thu, May 06, 2004 at 10:35:39PM -1000, Jerome Lyles wrote:
What are modes 0660 and 0750? And from one of your later emails (Samba Share - Access Denied) what does "chmod g+s /some directory do?
The 2nd number are the rights for the user, the 3rd for the group, and the 4th for all others.
and the first is the special bits
100 = SUID 010 = SGID 001 = Sticky
rwx rwx rwx = 7 7 7 for owner group other rwx = 4+2+1 = 7 which stands for read, write, and execute for a file or read, write, change into for a directory. I know it's a litle confusing at first, but stick with it. The extra bit about "setting the group" means that any files you create or change get owned by THAT group instead of your default group. This works great with the inherit permisions of samba. Imagine the following directories: directory owner group permisions ----------------------------------------- public root public rwx rws rwx Now without creating a new share in samba and assuming all users are in the "public" group, I make a subdirectory in public like: directory owner group permisions ----------------------------------------- accounts root accounts rwx rws --- Now everyone can get in public but only people in the group "accounts" can get into the subdirectory. This mimics the way many shares are set up in NT environments and still works with NFS. Less screaming when we drag them away from the dark side this way ;-) -- Louis D. Richards LDR Interactive Technologies