pwck, grpck - password/group file checkers
When checking the /etc/passwd or /etc/group files using the commands password check pwck, and group check grpck, one needs to be having root access. # id uid=0(root) gid=0(root) groups=0(root),1(other),2(bin),3(sys),4(adm),5(uucp),6(mail),7(tty),8(lp),9(nuucp),12(daemon) As you can see if no arguments is provided, the pwck default argument file is /etc/passwd and the grpck default argument file is /etc/group file. # pwck lp:x:71:8:Line Printer Admin:/usr/spool/lp: Login directory not found uucp:x:5:5:uucp Admin:/usr/lib/uucp: Login directory not found nuucp:x:9:9:uucp Admin:/var/spool/uucppublic:/usr/lib/uucp/uucico Login directory not found Optional shell file not found # id uid=0(root) gid=0(root) groups=0(root),1(other),2(bin),3(sys),4(adm),5(uucp),6(mail),7(tty),8(lp),9(nuucp),12(daemon) # grpck # pwck /etc/passwd lp:x:71:8:Line Printer Admin:/usr/spool/lp: Login directory not found uucp:x:5:5:uucp Admin:/usr/lib/uucp: Login directory not found nuucp:x:9:9:uucp Admin:/var/spool/uucppublic:/usr/lib/uucp/uucico Login directory not found Optional shell file not found # grpck /etc/group
Please click on " man pwck " to see the Manual Page for this command.
Please click on " man grpck " to see the Manual Page for this command.
Please click on " pwck in PDF " format.