Free Software Server Environment : ChMod

HomePage :: Categories :: PageIndex :: RecentChanges


Search this site: FSSE.INFO is produced by "osde8info" :

Revision [580]

Most recent edit made on 2008-05-21 05:49:41 by FsseInfo

Additions:
$ ls -ld myshareddir
drwxrwsr-x 2 www-data www-data 4096 2007-09-20 09:42 myshareddir


Deletions:
$ ls
drwxrwsr-x 2 www-data www-data 4096 2007-09-20 09:42 mywebsite




Revision [573]

The oldest known version of this page was edited on 2008-05-20 17:57:57 by FsseInfo

chmod

change permissions

ugo +=- rwx
you can change permissions for the (u)ser, (g)roup, (o)others or (a)ll
$ chmod ugo+rwx *


ugo +=- ugo
propagate user permissions to group
$ chmod g+u *


propagate user permissions to all
$ chmod a+u *


ugo +=- st
the group sticky bit on a directory allows a group or team to share files on a server
$ chmod g+rws shareddir


make sure the directory group sticky bit is set on any shared directories
(so that any new files you create are owned by the group)

verify
verify your directory sticky bit
$ ls
drwxrwsr-x 2 www-data www-data 4096 2007-09-20 09:42 mywebsite 


umask
make sure your UMASK is set to 0002 in ~/.bashrc (or in /etc/bashrc /etc/profile or /etc/login.defs so that any new files you create are group writable)

verify
view your umask
$ umask
0002



REFERRERS
SystemSecurity
Valid XHTML 1.0 Transitional :: Valid CSS :: Powered by WikkaWiki
Page was generated in 0.0276 seconds