LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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 08-26-2004, 06:44 AM   #1
praveenv
Member
 
Registered: Aug 2004
Location: India
Posts: 54

Rep: Reputation: 15
Permissions to DIR


Dear Friends !

I logged in as root and I changed one DIR permissions (no rwx to anyone including owner also here owner of DIR is "root" itself). , but I was able to see the contents of DIR and I can "cd" to it


WHY its happening like that ?
 
Old 08-26-2004, 07:00 AM   #2
barisdemiray
Member
 
Registered: Sep 2003
Location: Ankara/Turkey
Distribution: Slackware
Posts: 155

Rep: Reputation: 30
Re: Permissions to DIR

Quote:
Originally posted by praveenv
Dear Friends !

I logged in as root and I changed one DIR permissions (no rwx to anyone including owner also here owner of DIR is "root" itself). , but I was able to see the contents of DIR and I can "cd" to it


WHY its happening like that ?
Because a execution permission on a directory means entering that directory and read permission means directory listing. For example when a directory has a permission r-- then you can `ls dir' and see the contents but cannot enter it; when a directory has the permission -w- then you can create files in the directory without entering it; and when a directory has the permission --x you can enter in but cannot create files in it or list the contents of it. You have to give at least r-x for using `cd' and `ls'.
 
Old 08-26-2004, 07:09 AM   #3
scuzzman
Senior Member
 
Registered: May 2004
Location: Hilliard, Ohio, USA
Distribution: Slackware, Kubuntu
Posts: 1,851

Rep: Reputation: 47
If you're root, you have unlimited access to everything. There are no permissions/restrictions on root.
 
Old 08-26-2004, 07:40 AM   #4
barisdemiray
Member
 
Registered: Sep 2003
Location: Ankara/Turkey
Distribution: Slackware
Posts: 155

Rep: Reputation: 30
Quote:
Originally posted by scuzzman
If you're root, you have unlimited access to everything. There are no permissions/restrictions on root.
D'oh! I read the praveenv's message as "i can't" and didn't noticed the login name `root'. I'm sorry about that.

Segmentation Fault. Core dumped.
 
  


Reply



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
user home dir/permissions xilace Linux - Security 5 07-21-2004 12:33 PM
DNS configuration dir permissions JJX Linux - Security 2 05-24-2004 04:31 PM
Permissions problem w/ Apache conf dir player_2 Linux - Software 2 08-23-2003 07:28 AM
Cannot change dir permissions from root sstudley Linux - General 4 02-25-2003 06:52 PM
file & dir permissions lnxDE Linux - Newbie 2 05-27-2002 02:48 AM

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

All times are GMT -5. The time now is 10:37 AM.

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
Open Source Consulting | Domain Registration