2
votes
3answers
194 views

What command should I run after making changes to /etc/passwd file

I have made some changes to /etc/passwd file ,now I wanted to see if the effect of changes taken place or not .What command should I run for that. For example after making change to ...
9
votes
2answers
913 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
121 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 ...