LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 06-23-2005, 05:47 PM   #1
paul_mat
Member
 
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
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
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
paul_mat
Member
 
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?
 
  


Reply



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

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

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