How do I check the validity of /etc/passwd in Linux?



  • # /usr/sbin/pwck
    user adm: directory /var/adm does not exist
    user uucp: directory /var/spool/uucp does not exist
    user gopher: directory /var/gopher does not exist
    user pcap: directory /var/arpwatch does not exist
    user sabayon: directory /home/sabayon does not exist
    pwck: no changes
    

    If there are no errors, a prompt is returned:

    # /usr/sbin/pwck
    

Log in to reply
 

© Lightnetics 2024