cat /etc/passwd will give you a list of users in the system.
cat /etc/shadow will give you the passwords of those users (encrypted, of course).
Finding a user once you are inside the system is as simple as the first line, finding the password can be as time consuming as brute forcing for it or as simple as asking for it. Reseting it is as simple as TobiSGD stated if you have root access. If you want to disallow that account you can change the login shell in /etc/passwd for /usr/sbin/nologin. Or you can disallow password access by substituting the second field in /etc/shadown by ! or *.
Last edited by rodrifra; 01-30-2012 at 02:09 AM.
|