Results 1 to 3 of 3
Im using an older version of Fedora (4) and I was wondering why permission was denied for the /etc/passwd command with the root account. I just created a new user, ...
- 12-01-2009 #1Just Joined!
- Join Date
- Dec 2009
- Location
- Raleigh
- Posts
- 1
user accounts
Im using an older version of Fedora (4) and I was wondering why permission was denied for the /etc/passwd command with the root account. I just created a new user, set the password and was wondering why I couldn't look at that file.
- 12-01-2009 #2Linux Guru
- Join Date
- Nov 2004
- Posts
- 6,110
Don't run /etc/passwd as a command, it is a file. Any file without execute permissions, in this case a text file, will return a "permission denied" error if you try to execute it. Try to use the cat or less command to see what's inside it.
You can hit the 'q' key to exit from less.Code:cat /etc/passwd less /etc/passwd
Your password won't be held in /etc/passwd, only your user info. Your password is hashed in /etc/shadow which is a file that can only be accessed by root.
- 12-01-2009 #3
There is no /etc/passwd command, /etc/passwd is a file.
http://en.wikipedia.org/wiki/Passwd_(file)
If you want to look at it, doEDIT: Beat to the punch.Code:cat /etc/passwd


Reply With Quote