5

maintain health of passwd file

view full story
linux-howto

http://www.unix.com – Hello guys I am about to write a script that is based on "The Linux Administration Handbook" The exercise is as follows: Write a shell script to help monitor the health of the /etc/passwd file. Find entries that have UID0 Find entries that have no password (needs /etc/shadow) Find any sets of entries that have duplicate UID's Find entries that have duplicate login names find entries that have no expiration date (needs /etc/shadow) I finished point 1,3, and 4. What I am not able to figure out is how to access the shadow file without being root. I thought maybe by exec su | sh, and t (HowTos)