Tagged Questions
8
votes
2answers
480 views
Why is /etc/passwd open to public for reading?
Is there any reason that /etc/passwd should be world-wide readable ? It's not like password hashes that shouldn't be exposed, I just want to know why.
1
vote
2answers
109 views
How would you create a user with the HOME_DIR field in /etc/passwd completely blank?
Closest I can come is:
useradd --home / -r --shell /sbin/nologin someuser
But this creates an entry into /etc/htpasswd that looks something like this:
someuser:x:100:100::/:/sbin/nologin
I want ...