Linux - SecurityThis forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.
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.
Distribution: Red Hat 6.1,7.2,7.3 Mandrake 8.1,8.2
Posts: 48
Rep:
Umask
I'm trying to set the default umask on a directory as 775. The default umask is 666 right now. From what I have read on the net all I can find is how to subtract from the default to get the permissions I want. i.e. umask 022 would change default to 644. But how can I increase the 6 to a 7? These are html files so I need the execute permission.
you need to tell us first from what are you trying to set umask
oterwise for 775 you 002,
but in your case you probably have troubles with the program that is trying to assing mask
Distribution: Red Hat 6.1,7.2,7.3 Mandrake 8.1,8.2
Posts: 48
Original Poster
Rep:
Yes that would work on a directory but not on a file. I want .html files created by users to automatically have the 775 permission. Is that possible? If I put this in my /etc/profile it would make the 775 permission a system wide default, can I do it for just one directory? Thanks.
umasks in the global and personal profile can't be used for one dirs contents only; it aint selective, but you could use a cronjob to chmod 644's to 775's.
Kinda beats me *why* you would want it. Html files dont need to be executed.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.