User Tools

Site Tools


unix:file_permissions

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
unix:file_permissions [2023/08/17 10:58]
manu [Umask: file creation rights]
unix:file_permissions [2023/08/17 11:00] (current)
manu [Umask: file creation rights]
Line 198: Line 198:
   # chuser umask=022 user01   # chuser umask=022 user01
   ​   ​
-On **linux** the default mask is defined into **/​etc/​bashrc**. For custom, you can either add into homedir from every user, or globaly by script, you can add it to /etc/bashrc+On **linux** the default mask is defined into **/​etc/​bashrc**, maybe also into **/​etc/​login.defs**. For custom, you can either add into homedir from every user, or globaly by script, you can add it to /etc/bashrc
 <​code>​ <​code>​
 if [ $UID -gt 199 ] && [ $(/​usr/​bin/​id -gn) == $(/​usr/​bin/​id -un) ] if [ $UID -gt 199 ] && [ $(/​usr/​bin/​id -gn) == $(/​usr/​bin/​id -un) ]
unix/file_permissions.1692262710.txt.gz ยท Last modified: 2023/08/17 10:58 by manu