Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 02-22-2010, 06:05 AM   #16
Senior Member
Registered: Oct 2004
Distribution: Fedora Core 4, 12, 13, 14, 15, 17
Posts: 2,279

Rep: Reputation: 250Reputation: 250Reputation: 250

Originally Posted by iamonly View Post
All that I learned is that if in /home/, there exists a directory

drwx------ 2 root root 4096 2010-01-21 14:03 rootsdir

Then no user (except for root) can 'r' or 'w' or 'x' any entry which succeeds the dir. tree /home/rootsdir/.
Is this right? I just want an absolute answer for some security reasons.
Yes that is correct.

Originally Posted by iamonly View Post
I am wondering that how can raju.mopidevi's example

$ cd /media/dir1
bash: cd: /media/dir1: Permission denied
$cd /media/dir1/mydir1
$/media/dir1/mydir1 > ....

be true??! (Without saying that the current user is not changed)
I don't think it is true.
I can't repeat it on my system.
His argument was based on a different case, where the normal user owned a directory but was part of roots group.

But you can try it for yourself.

Be assured that a directory owned by root, with the permissions 750 is secure from other normal users, even if its contents are owned by those other users.

I can only speak for my systems of course.
I would be interested to see examples of anything that proves me wrong, but unless the top level directory has permissions like :

drwx------ 2 root root 4096 2010-01-21 14:03 rootsdir

Then they would be arguing a different case.




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
Question about permissions mattydee Slackware 7 10-17-2009 02:30 PM
permissions question fluidicslave Linux - Security 4 07-23-2006 08:52 PM
Question about permissions!! slashams Red Hat 2 06-11-2006 12:48 AM
Permissions Question dragin33 *BSD 1 01-05-2004 06:35 PM
permissions question cinnix Linux - General 2 07-09-2001 07:59 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:16 AM.

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