ls -l /etc/passwd
gives
$ ls -l /etc/passwd
-rw-r--r-- 1 root root 1862 2011-06-15 21:59 /etc/passwd
So an ordinary user can read the file. Isn't this a security hole ?
feedback
|
This question came from our site for professional and enthusiast programmers.
|
Actual password hashes are stored in | |||||
feedback
|
|
Typically, the hashed passwords are stored in
(They are stored in Programs that need to perform authentication still need to run with
If you dislike the | |||
|
feedback
|
|
Passwords haven't been stored in | |||||||||||||||||||
feedback
|
|
To some extent it is, as you can identify users. In the past you could also pick up their passwords. However, the one userid really worth cracking is The utility of having the password file world readable generally far outweighs the risk. Even if it weren't world readable, a functioning The ability for non-root users to identify files owned by others would disappear. Being able to identify owned (user in passwd file) and unowned files (user not in passwd file) can be useful in reviewing the contents of a file system. While it would be possible to resolve this with appropriate In the end it is a matter of balance, and in this case I would say the balance is firmly on having password world readable. | |||
|
feedback
|
|
The user passwords are not stored in /etc/passwd anymore. This explains how the shadow password mechanism works: http://en.wikipedia.org/wiki/Shadow_password | ||||
|
feedback
|