The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
activate and deactivate munna_dude UNIX for Advanced & Expert Users 3 02-23-2007 07:34 AM
users of a particular dir narsing UNIX for Dummies Questions & Answers 1 02-07-2006 05:34 AM
NIS users Jody UNIX for Dummies Questions & Answers 1 08-08-2003 08:05 AM
no of users asutoshch UNIX for Dummies Questions & Answers 3 03-29-2001 12:48 PM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 02-23-2004
Registered User
 

Join Date: Aug 2001
Location: germany, bavaria
Posts: 44
Unhappy modify users by one command

Hi all,

we are running an hp-ux sd32 server with hp-ux 11.11 and i have to modify 130 users on the system, so that they are inactive. We have not installed the security package, so i cannot use usermod -e 2/24/04 qsc0017. Is there anyone who knows one command which i can use to change the user to deactiv status?

Best regards, Frank
Reply With Quote
Forum Sponsor
  #2  
Old 02-23-2004
Registered User
 

Join Date: Aug 2001
Location: germany, bavaria
Posts: 44
I found it by reading man page

Thanks, but i found it:

for i in `cat usernames_ascii_file`
do
passwd -l $i
done.

Reply With Quote
  #3  
Old 02-23-2004
Registered User
 

Join Date: Aug 2001
Location: germany, bavaria
Posts: 44
deactivate users

I searched for the solution to deactivate 130 users with one command on hp-ux 11.11 server.


Here the solution:

passwd -l username.
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 08:58 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0