Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Security
User Name
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.


  Search this Thread
Old 05-04-2010, 04:20 AM   #1
Registered: Apr 2009
Posts: 42

Rep: Reputation: 2
Can I remove read/write/execute permeation from directories in '/' for 'others' ?

Hi All,

I was running '# ls -l' in '/' directory and I noticed all directories in '/' have the following permeation 'drwxr-xr-x' [except root's home which is 'drwx------' (after I change it from 'drwxr-xr-x' )]

I don't want all the user (except root) to be able to read and execute (in) any directory, I just want every user to be abel to read/write/execute only in his/her home directory.

my question is, is it ok to change file and directory permeation of the following directories in '/' from 'drwxr-xr-x' to 'drwxr-x---' or 'drwx------' recursively?


Will it effect application, (like clamav) or will it effect users been able to do day to day things?

os = Zenwalk 6.0 stock
K = (stock from Zenwalk 6.0)
-I and the other users use the pc for internet, open office and email mainly.
-It does not run server(s) like smb/cif or NFS.
-There are 5 usernames (created by me, non of them are superusers) in th pc, only one user is required to login at any one time.

Thankyou all for your time.
Old 05-04-2010, 04:49 AM   #2
Registered: Feb 2010
Posts: 36

Rep: Reputation: 20

all standard linux commands, such as cat, bash, ls ... are in /bin.
If you remove execution permission to that directory, users will
not be able to do anything :-(

I'd let the permission in default setting.

Old 05-04-2010, 05:35 AM   #3
LQ Veteran
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
The word is permission.

You **can** change the permissions as you suggest, but--as stated above--I don't think you really **want** to.

Look at the man pages for "chmod", including the -R flag
Old 05-04-2010, 06:06 AM   #4
Registered: Jan 2010
Location: Lancashire
Distribution: Slackware Stable
Posts: 572

Rep: Reputation: 120Reputation: 120
I'd also question why you think you need to? Is it just that you are doing the old trick of "if I disable everything then it will all be ok"?? Do you have any specific reason as to why you want to do this? Is there something you see as a security risk?


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
Sharing folders between two linux users on same machine (read-write-execute) superevilspacemonkey Linux - Desktop 6 01-17-2010 08:14 AM
Mount ext3 partition in /home/USER/Documents with read/write/execute acces for USER anonymous234 Linux - Hardware 2 01-12-2007 12:23 PM
how to share folder (read, write and execute) into the network redline1022 Linux - Networking 3 11-15-2006 01:13 AM
How to Read, Write, Execute but not Delete r042wal Linux - Software 6 06-07-2003 11:05 AM
How to set permissions to read, execute, write for users only chupacabra Linux - General 3 12-18-2002 03:54 PM > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 06:58 PM.

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