: what's the FreeBSD command for determing/viewing all user accounts on the system? : : I created an accound and forgot the password, how do I get (i'm root too) :
The simplest way I know of checking if a user exists is to do a simple grep
grep "username" /etc/passwd
This will search the password file for the username. However the password is generally encrypted.
anyway,if i m not mistaken, root can use <$ sudo passwd (username)> to change the users passwd right? try it.. hp-ux can run it but i m not sure in freebsd
Comments
:
: I created an accound and forgot the password, how do I get (i'm root too)
:
The simplest way I know of checking if a user exists is to do a simple grep
grep "username" /etc/passwd
This will search the password file for the username. However the password is generally encrypted.
If your only need is to change the password - you might want to look at this
http://www.bsdi.com/bsdi-man?proto=1.1&apropos=0&msection=ALL&query=passwd
:
I think that would be /etc/shadow