LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


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

Rep: Reputation: 249Reputation: 249Reputation: 249

Quote:
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.

Quote:
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.

regards

Alan
 
  


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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration