LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   remove passwords from all users? (https://www.linuxquestions.org/questions/linux-networking-3/remove-passwords-from-all-users-336565/)

paul_mat 06-23-2005 05:47 PM

remove passwords from all users?
 
hi there,

i'm wondering if there is a way to remove all the passwords from all my users? just set it to nothing? if anyone knows of a way to do this i'd really like to know.

also is there a way to get a read out of all the users on my system? and put them in a text file would be great too?

trickykid 06-23-2005 05:53 PM

All your users are stored in /etc/passwd and their passwords are stored in the /etc/shadow on most systems by default.. unless your authenticating by other means..

How many users are we talking about here? A simple bash script might be a good exercise for you to change them all with ease but if its just a few users, manually would be just as easy. And remember not to mess with the system users and root user.

paul_mat 06-23-2005 05:59 PM

i'm looking at using winbind to Authenticate against my AD domain.

The way i've got it setup is the user has to be added on my redhat box and if the user has no password then it goes to ADS to get the password, if it has a password then it gets the password from my redhat box.

the reason being is i'm using redhat as my mail server and some people have e-mail address and not domain accounts.

i'm only using locate Authentication

and i have over 700 users.

so my clearing the /etc/shadow file it will remove all passwords?


All times are GMT -5. The time now is 05:52 AM.