Free Software Server Environment : ChMod

HomePage :: Categories :: PageIndex :: RecentChanges


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

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 -ld myshareddir
drwxrwsr-x 2 www-data www-data 4096 2007-09-20 09:42 myshareddir 


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

There are no comments on this page. [Add comment]

Valid XHTML 1.0 Transitional :: Valid CSS :: Powered by WikkaWiki
Page was generated in 0.0186 seconds