Setting permissions

  • chmod permission_list target-file - changes access permissions to files, including directories umask [octal-mapping] - without [octal-mapping], will list current mask. - with [octal-mapping] restricts permission on new file. No effect on existing files. By default, certain types of files are assigned certain permissions. Use chmod to change permission of individual files. Use umask to set a default maximum initial permission. Set the bits in the umask to block the permission bits. umask [symbolic-mapping] - GNU version of umask supports the symbolic form and behaves more like chmod. umask u=rwx,g+rx,o-w sets the umask to allow all permissions for user, to allow read and execute and leave the write as is, and to block write permissions for others.