LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 01-28-2007, 10:12 AM   #1
cad
Member
 
Registered: Dec 2006
Distribution: Fedora core 4
Posts: 92

Rep: Reputation: 15
view folders as root without read permissions


If I am the root can I see every users files and folders even if I dont have the required permissions and I dont even want to change the permissions.
 
Old 01-28-2007, 10:16 AM   #2
b0uncer
LQ Guru
 
Registered: Aug 2003
Distribution: CentOS, OS X
Posts: 5,131

Rep: Reputation: Disabled
Most probably yes. Some hacker dude might find a way to prevent this from happening (for example hazzle around with inode numbers to 'hide' a file), but if you're only talking about permissions, then root user is able to "see everything". That's pretty much the point of having a root user.

EDIT: also a file with permissions set that nobody has any permissions, specifically that nobody can write to the file, can be removed as root without problems. Root "doesn't need permissions" for that, if you like to put it (in this case) that way. It is possible, though, to se a special bit on the file which prevents anybody from removing or altering it in any way. But even if you did that, root could change the bit, alter the file (or remove it) and then set the bit back. Since root user is the highest user (superuser) on the system, if you could create a file which root cannot access, you could create a file nobody can access -- it would be a problem, since then the creator shouldn't have been able to create it, even.

Last edited by b0uncer; 01-28-2007 at 10:19 AM.
 
Old 01-29-2007, 11:58 PM   #3
cad
Member
 
Registered: Dec 2006
Distribution: Fedora core 4
Posts: 92

Original Poster
Rep: Reputation: 15
I didnt tell it before that I was working on an NFS and had the root permissions of a computer which can mount the NFS partitions. But I as root of that single comp. couldn't even change the permission of those. So how is it possible that even if I am the root I cant even change the permissions.
Now I am not doing it illegaly so please answer it.
 
Old 01-30-2007, 01:19 AM   #4
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,290

Rep: Reputation: 378Reputation: 378Reputation: 378Reputation: 378
Generally NFS servers squash the root user on exports (i.e. remap the user ID to something like nobody). This is controlled on the server side and can't be overridden on the client side. Basically, this is for security reasons -- if clients were able to write on an NFS mounted directory as root it would make it easier for them to break into the NFS server.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
change permissions of all folders and sub folders cad Linux - General 3 01-28-2007 10:21 AM
Setting up folders read, read/write? airplaneb777 Linux - Software 1 04-17-2006 08:37 AM
Can't change the read permissions on an NTFS partition as root? EOHooligan Linux - Newbie 4 01-09-2005 06:48 AM
How to view sizes of folders? atheist Linux - General 2 02-16-2004 06:03 PM
Hidden folders ... how can I view them? orange400 Linux - General 4 03-23-2003 11:24 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 01:11 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
Open Source Consulting | Domain Registration