LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices



Reply
 
Search this Thread
Old 09-08-2003, 06:30 PM   #1
plasmapudding
LQ Newbie
 
Registered: Jun 2003
Posts: 2

Rep: Reputation: 0
Unhappy File and Directory permissions


Hia,

I've taken off rwx permissions for other users on the whole file system, thinking that, in order to make the system "more secure", a good starting point will be to remove those permissions and add them where I see they're required.

What I didn't anticipate was the extent of where they're required. So I've had to set rx permissions for other all across the file system again, which I think aint good.

Are there guidelines for what's good practise for certain directories? Or is it ok to have rx on the whole file system? If not, which sections should they not be on?

Any help will be greately appreciated

-G
 
Old 09-08-2003, 11:07 PM   #2
xjphil
Member
 
Registered: Aug 2003
Location: Collierville, TN
Distribution: Red Hat 9.0
Posts: 58

Rep: Reputation: 15
I'm a newbie, but I'll try.

If you are concerned about security on your file system, are you worried about from people in your home, on your computers, or over the internet? The permissions (as far as I know) will only apply to home network users.

In other words, I don't think you will "secure" yourself from anyone else, if you are the only user at home by changing permissions.

I don't have a solid grasp of the permissions yet either, as I wanted to open up all of my permissions downstream of my home dir, so my other user could access our common files. Well this caused many problems, and GNOME didn't even load. I went back and deleted my user name, and re-installed me, to re-assign the permissions.

So I probably haven't helped you at all, but I'm sure you will get help, these people on here are very quick, and very good!

Good luck!

phil
 
Old 09-09-2003, 02:46 AM   #3
Thetargos
Senior Member
 
Registered: Mar 2003
Location: Mexico City
Distribution: Fedora, Ubuntu & Mint
Posts: 1,679

Rep: Reputation: 45
What xjphil says is quite correct. Some sections/directories (like /dev) need to have rw perms for every user (since thery are devices) and others like /root wont be even seen by any other user, the x permision on the directory is set to only be usable by root. If you are concerned about personal data, just make sure the directories where these data are stored are set to the octal number of 0700, this menas that you, the owner of the files will have full access to them, but leave out every other user on the system (excluding root, of course!). If you don't even want to let other users (including you) from even viewing system configuration files (at /etc) you can set the permisions (to the files not the directory) to 700 as root (otherwise some programs won't be able to even run). A good place to look for info on this would be to go to the Linux Documetation Project's web page at www.tldp.org, and so some searches on google.
 
Old 09-09-2003, 11:26 AM   #4
plasmapudding
LQ Newbie
 
Registered: Jun 2003
Posts: 2

Original Poster
Rep: Reputation: 0
thanx for the speedy reply

I'm using the server as a web server and have taken Thetargos suggestions, e.g.
chmod o+rx on
/dev

in /etc I've only added o+rx for passwd, group & the shells

and for root, I've done chmod o-rwx
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
File and directory permissions or groups kuplo Linux - Newbie 1 11-11-2005 04:06 AM
File/Directory Permissions waynevnc Debian 1 05-23-2005 05:23 PM
vsftpd and file/directory permissions dynamo|x Linux - Security 7 06-01-2003 10:37 PM
'Proper' file and directory permissions etherdeath Linux - General 5 03-02-2003 04:24 AM
Directory and file permissions ryan Linux - Security 2 12-06-2000 01:46 PM


All times are GMT -5. The time now is 04:08 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration