LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Changing Passwords (https://www.linuxquestions.org/questions/linux-newbie-8/changing-passwords-177168/)

dboogie 05-02-2004 10:01 PM

Changing Passwords
 
Hi I'm Kinda new to linux and in my office we have redhat 9 DNS Servers, I need to change the password on these boxes and make sure there are not any more user accounts. Can anyone let me know how to change the password and check for user accounts.

Thanks
D

TheRealDeal 05-02-2004 10:31 PM

Hi,

Once you log in as root or a superuser, just run passwd. This will change the password of the account you are currently logged in as.

passwd user1 will change the password for the user1 account if one exists.

To see what other user accounts are created. Look in the /etc/passwd file. This is where all account info is kept. You can look in the file by using cat or vi. so cat /etc/passwd or vi /etc/passwd.

This will show all accounts however. So system accounts will be shown too. If you want it really easy, jump into your gui and run redhat-config-users this will show you what user accounts are around.

Good luck.

>Craig :)

snatale1 05-02-2004 10:45 PM

To change a password use the "passwd" command, If they have a gui (which they prob don't). you could use "redhat-config-users" . If not you could use "userdel -r username" If you want to delete all users MAYBE userdel -r * (I'm not trying it :) )


All times are GMT -5. The time now is 08:23 PM.