-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Ken Walker wrote on Fri, Mar 07, 2003 at 11:35:05AM -0000 : > Your force create mode = 660 is only going to give you __wx_wx___, in other > words, the creator can only write and execute ( or get access to a folder )
330 is --wx-wx--- 660 is -rw rw---- > create mode = 750 > This will give the creator full access to the files and read only to members > of the group. Not necessarily, look at his force lines. > I don't think you need the leading 0, it might be causing more problems such > as being read as 066 > ps that 's' looks very interesting, cos i think it should be a 'x' Setting a directory sgid bit makes it such that any new directory is owned by the same group. The best way to explain is with an example: [EMAIL PROTECTED] ~/tmp]$ id uid=501(todd) gid=501(todd) groups=501(todd),43(usb) [EMAIL PROTECTED] ~/tmp]$ vdir -d tlyons/ drwxr-xr-x 2 todd usb 6 Mar 7 16:27 tlyons/ [EMAIL PROTECTED] ~/tmp]$ mkdir tlyons/test [EMAIL PROTECTED] ~/tmp]$ vdir -d tlyons/test drwxr-xr-x 2 todd todd 0 Mar 7 16:28 tlyons/test [EMAIL PROTECTED] ~/tmp]$ rmdir tlyons/test [EMAIL PROTECTED] ~/tmp]$ chmod g+s tlyons [EMAIL PROTECTED] ~/tmp]$ mkdir tlyons/test [EMAIL PROTECTED] ~/tmp]$ vdir -d tlyons/test drwxr-sr-x 2 todd usb 0 Mar 7 16:28 tlyons/test [EMAIL PROTECTED] ~/tmp]$ touch tlyons/test/duh [EMAIL PROTECTED] ~/tmp]$ vdir tlyons/test/duh - -rw-r--r-- 1 todd usb 0 Mar 7 16:33 tlyons/test/duh That would make the force create mask be 2660. The same applies for the suid bit except that the owner will always be the same owner. Then there's the sticky bit (aka the temp bit), but it is NOT useful here, rather it's counterproductive. Any good linux book explains file and directory permissions and how they affect the creation of files and subdirectories. A good one is "Using Linux" published by Que Publishing. It's my personal favorite. Blue skies... Todd - -- Todd Lyons -- MandrakeSoft, Inc. http://www.mandrakesoft.com/ Favourite shell: bash, though I also like 'init=/usr/bin/emacs' --Andrew Tridgell Mandrake Cooker Devel Version, Kernel 2.4.21-0.12mdk -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQE+aTrSlp7v05cW2woRAtVEAKCz6+78+1n74kBfMZ6letZ6aYLi9gCfZrWv JBKt9LCrbARy2yGVL9IEhc8= =tPXB -----END PGP SIGNATURE-----
Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
