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.
I am using Mandrake 10.1+KDE. Every time I log in as my user, the umask is 0022. I have tried to set it in .bash_profile and in .profile the mask 0007, but it does not work, every time I log in again the mask is 0022, and with files created with Konqueror file explorer it happens the same.
In the file /etc/sysconfig/msec, have replaced the UMASK_USER
UMASK_ROOT=022
SECURE_LEVEL=2
UMASK_USER=007
TMOUT=0
This creates files with mask rw-rw---- in bash-mode, but when using Konqueror as the file manager, it now creates files with rw-rw-r-- (664) mode, not 660 as it sould be. Any ideas?
Ok, this is the answer for both bash (xterminal) and Konqueror
Go to the "MandrakeLinux Control Center"
Select "Security" - "Levels and Checks" (or something similar, I am using Spanish) - "System Options", and type
Root mask 0027 (or whatever)
User mask 0007 (or whatever)
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.