Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place. |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
 |
08-27-2002, 06:53 PM
|
#1
|
LQ Newbie
Registered: Mar 2002
Distribution: RedHat, Mandrake
Posts: 29
Rep:
|
default user permision
don't know if this is the right place to ask, but here I go:
I installed Bastille Linux on a redhat 7.3. The problem is that although I said no at umask question, so default 002 should be preserved, when i try to create a new file with a user, the permisions are set at 664...pretty annoying if you use the system as web development platform...
Now I checked /etc/profile and 002 is the setting there. No .bashrc in $HOME found...
What am I doing wrong?!
Please advise.
|
|
|
08-27-2002, 09:18 PM
|
#2
|
Moderator
Registered: May 2001
Posts: 29,417
|
When you add an account ~/.bash* files are provided from /etc/skel (if it's there). ~/.bash_profile calls ~/.bashrc and ~/.bash_login, and ~/.bashrc calls /etc/bashrc at the end. If it ain't there just make one.
Btw, if you don't care for files readable for other users a mask of 002 is ok, but if you're on a one-user-per-group scheme then 027 (max perms 0750) will do better me thinks.
|
|
|
08-28-2002, 12:33 PM
|
#3
|
Member
Registered: Mar 2002
Distribution: Mandrake 8.1
Posts: 386
Rep:
|
You aren't doing anything wrong... a umask of 002 equates to 664 permissions.
What permission do you want on new files?
|
|
|
08-29-2002, 01:22 AM
|
#4
|
LQ Newbie
Registered: Mar 2002
Distribution: RedHat, Mandrake
Posts: 29
Original Poster
Rep:
|
I think 755 is the one I am looking for...
Bu isn't this calculated by this: 777 - 022 = 755?
So why 002 is 664? Shouldn't be 777 - 002 = 775?
I don't understand...from what I've read on the net this should be it...
...hmmm...have to  so more...
regards,
sourian
|
|
|
08-29-2002, 06:13 AM
|
#5
|
Moderator
Registered: May 2001
Posts: 29,417
|
AFAIK, unless product of you compiling stuff, or if permissions are retained when unpacking files files aren't *created* with max perms of 0775.
// Note: I'm grafting this to /General, IMO I can't see any security-related question, and I gotta clean up more.
Last edited by unSpawn; 08-29-2002 at 09:11 AM.
|
|
|
08-29-2002, 11:49 AM
|
#6
|
Member
Registered: Mar 2002
Distribution: Mandrake 8.1
Posts: 386
Rep:
|
Files you create will not have the execute permission bit set, only directories do this. You have to set that bit manually on files.
So 002 does equate to 775 for directories and 664 for files.
As you stated though, the umask you want is 022.
|
|
|
All times are GMT -5. The time now is 09:54 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|