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.
If you give security by umask value, you are also restricted to see other accounts.
But using above command only your home folder will be restricted for other users. you can see others accounts.
If you give security by umask value, you are also restricted to see other accounts.
umask is only effective when creating files; it does not affect what you are able to read/write/execute/list. From the umask man page:
Code:
DESCRIPTION
umask() sets the calling process's file mode creation mask (umask) to mask & 0777 (i.e., only the file permission bits of mask are
used), and returns the previous value of the mask.
The umask is used by open(2), mkdir(2), and other system calls that create files to modify the permissions placed on newly created
files or directories.
Hi catkin, I am talking about accessing files, if I change umask in such a way that only that particular user can access. then we can't access other user files.
Hi catkin, I am talking about accessing files, if I change umask in such a way that only that particular user can access. then we can't access other user files.
Changing the umask to anything will only affect NEWLY created files. So that would help for the files that he creates in the future but not for the directory or files that are already there.
I also talking about the yet to be created files only.
Clearly what i want to say is .....
The present umask value allows to read, execute the files.
if you change the umask value that effects to access this user. without effecting other user's permissions and changing our own home directory permissions is a way to secure our account
Last edited by raju.mopidevi; 03-15-2010 at 05:02 PM.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.