Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Help! I know umask subtracts default permissions from new files that will be created, but how do you reverse that? How can I ADD default permissions to new files that will be created?
Umask creates a filter of permissions for all new files created within a certain partition - So to add "default" permissions for all new files within a certain partition add a umask value to the options section of /etc/fstab regards the relevant partition.
(In the process of "subtracting" default permissions umask leaves some behind - the permissions left behind become the default permissions)
( Chmod is the "inverse" of Umask - Chmod can be used to change the permissions on an individual file - however - for your scenario - you need Umask - Umask is used to create default permissions for all new files. )
Skyline, thanks for the help, but I guess I asked the question wrong. How do I undo an umask setting once I've set it? I set umask to a permission level I didn't mean to, and I'd like to go back to the default before I set umask.
will give the "owner" Read Write Execute
group - Read and execute
other - Read and execute
This is a more suitable default umask setting
AFIK to make a general change to the default umask setting for all new files and directories youd need to change the setting in /etc/profile or .cshrc or your .login file.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.