Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 06-23-2005, 05:47 PM   #1
Registered: Nov 2004
Location: Townsville, Australia
Distribution: Fedora Core 5, CentOS 4, RHEL 4
Posts: 855

Rep: Reputation: 30
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?
Old 06-23-2005, 05:53 PM   #2
LQ Guru
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 235Reputation: 235Reputation: 235
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.
Old 06-23-2005, 05:59 PM   #3
Registered: Nov 2004
Location: Townsville, Australia
Distribution: Fedora Core 5, CentOS 4, RHEL 4
Posts: 855

Original Poster
Rep: Reputation: 30
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?


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Default passwords for users paddyjoy Linux - Security 7 11-17-2005 03:30 AM
How to remove Mandrake Galaxy Theming for all users and all new users. Zombie_Ryushu Mandriva 0 01-04-2005 05:38 PM
Cant set passwords for new users ribbones Linux - Newbie 2 09-03-2003 10:52 AM
Help with users and passwords???? graystarr Linux - Software 3 04-21-2003 09:40 AM
users/passwords scipts Anthony Programming 1 03-27-2002 07:40 PM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 11:14 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration