Rookie Linux-user here, bought this System76 in Jan. I'm looking to set Default Permissions. My research found umask. My question is this: According to "Best Ubuntu Practices" where should I set umask for my personal login?
I intend to set umask to 007 for my login, and leave it at 022 for everyone else (i.e. Guests). This presumes the expectation that I will always be the only member of the group that bears my user name, otherwise I'd go with 027. My box is singleuser today, but I would like to allow for separate settings for future "Guest" users. That's why I'm not setting umask in /etc/profile. Setting umask in ~./bashrc would have the disadvantage of not affecting the Default Permission for Nautilus (per my current understanding). I invoke Nautilus from the Launcher, so that's out. The comments I read in /etc/profile say this:
# The default umask is now handled by pam_umask.
# See pam_umask(8) and /etc/login.defs.
I vaguely recall reading somewhere that pam_umask is a good place to do this, but my find cmd does not find that file (possible I erred with find). Editing the /etc/login.defs file as sudo seems to be one option. Creating pam_umask somewhere does not seem to make sense, unless I just need to go find it instead. So my main question remains:
According to "Best Ubuntu Practices" where should I set umask for my personal login?
Please advise.



Adv Reply



Bookmarks