Quote:
Originally Posted by rootaccess
It must be done in /etc/profile for system-wide affect. then you must reboot
|
There is no need to reboot to change the umask. In any shell you can alter the umask and simultaneously run different shells with different umask. You will get the default umask at login, but unfortunately, by default in Slackware most terminal windows are not starting their shells as login shells.
A really good idea is to within the settings of your terminal window choose something called something like "Run command as login shell".
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