How do I retrieve a single user entry from the password file in hpux?



  • To retrieve entries from the password file, possibly for scripting purposes, use the follwoing:

    # pwget -n root
    root:*:0:3::/:/sbin/sh
    

    There is also a similar command for unix groups, called "grget"


Log in to reply
 

© Lightnetics 2024