How Set Default Umask
How do you set the default Umask setting for all users on the computer in Slackware?
I tried to change it in /etc/profile but it did not change for root or other users. root is using /bin/bash and all other users are using /bin/false so they do not have a local .profile. The other users are using the chroot option in openssh5.2 and thus using the "ForceCommand internal-sftp" option. Anyone know what shell the internal-sftp is using? I don't see a /etc/default/bashrc like on other distros. |
What about 'umask 022' in /etc/rc.d/rc.local
BTW, my /etc/profile contains the following: Code:
# Default umask. A umask of 022 prevents new files from being created |
Hi Ani
/etc/login.defs search for UMASK and change Regards Jack |
I know this is old but if anyone is wondering, in slackware 15.0, /etc/login.defs has no effect if you change the umask. It must be done in /etc/profile for system-wide affect. then you must reboot
|
1 Attachment(s)
Quote:
A really good idea is to within the settings of your terminal window choose something called something like "Run command as login shell". Attachment 42344 For a terminal like xterm this can instead be choosen by starting xterm with the switch -ls or the X resource "*loginShell: True". For those few terminal programs lacking this setting it is usually instead possible to choose how the shell is started and add the switch -l for the shell. By default in Slackware you will get a fortune cookie at each login, if you do not see such a fortune cooke at each start of a new terminal window that terminal window might not have been started as a login shell and the files in /etc/profile.d has not been run. regards Henrik |
Quote:
Code:
UMASK (number) |
All times are GMT -5. The time now is 12:32 AM. |