![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts here. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How can I get the list of files if I have root access? | linuxbeginner | UNIX for Dummies Questions & Answers | 1 | 04-03-2008 02:07 AM |
| To What files root does not have access to?? | mgirinath | UNIX for Dummies Questions & Answers | 2 | 12-07-2005 08:26 AM |
| how to access root priveliges if root password is lost | wojtyla | Linux | 1 | 02-18-2005 03:24 AM |
| Perl CGI to access / edit "root" owned config files | WIntellect | Shell Programming and Scripting | 1 | 04-23-2003 12:48 PM |
| Need help to access/mount so to access folder/files on a Remote System using Linux OS | S.Vishwanath | UNIX for Dummies Questions & Answers | 2 | 07-30-2001 05:17 AM |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
To What files root does not have access to??
Hi,
I just wanted to know to what files root does not have access, not even read....I read that .profile for any user is the only file which root cannot access is it true..??...If we have to use passwords and ID's in a script can we use them in .profile and call them as parameters..??? Thanks, Girinath |
| Forum Sponsor | ||
|
|
|
#2
|
|||
|
|||
|
No. root owns the system and can change protections on a file - any file.
Plus, root can can su - which means root can become any user temporarily, mess with the file, then revert back to root. |
|
#3
|
|||
|
|||
|
One exception is NFS mounted stuff. Root doesn't have access to files on an NFS mounted directory owned by others, unless it is specified in the mount options.
Of course, the trick above of doing an su to the userid that does own them and accessing them that way still works. I have to do that all the time at work since we automount user's home directories and I couldn't edit their login scripts as root. |
|
#4
|
|||
|
|||
|
Nuclear Weapons Controls on any country, nor Microsoft source files.
|
|||
| Google The UNIX and Linux Forums |