LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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, 07: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, 08: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, 08: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, 08: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


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


All times are GMT -5. The time now is 07:01 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