LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > AIX
User Name
Password
AIX This forum is for the discussion of IBM AIX.
eserver and other IBM related questions are also on topic.

Notices

Reply
 
Search this Thread
Old 04-12-2005, 03:16 AM   #1
szahri
LQ Newbie
 
Registered: Mar 2005
Posts: 11

Rep: Reputation: 0
Password ageing for existing AIX users


Hello all,
Is there a way/ a command in AIX to change all existing users' maxage value? chuser basically changes a specific user's details, but you cant seem to make it change it for *all* users. I heard my colleague said that there is a command that lets you change for all users, but he wasnt sure what. Can you guys shed some light on this matter?

Thanks in advance!

- Suze

Last edited by szahri; 04-12-2005 at 03:21 AM.
 
Old 04-12-2005, 01:44 PM   #2
zorba4
Member
 
Registered: Feb 2004
Location: Paris
Posts: 398

Rep: Reputation: 31
for i in `cat /etc/passwd |awk '{print $2}' `
do
echo changing $i
# chuser $ blah-blah-blah
done

I'm not quite sure of $2, have a look, it could be $1 or $4.

Regards

Zorba
 
  


Reply


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
stale users on AIX 4.3.3 RS/6000 zepplin611 AIX 10 12-21-2009 04:59 AM
How to list existing users? stefaandk Linux - Newbie 11 04-03-2006 01:03 AM
Install with existing users?? Okie2003 MEPIS 6 06-02-2005 04:39 PM
List existing users anand_kt Linux - Newbie 3 02-28-2005 07:18 AM
SSH to AIX without password pezplaya AIX 1 04-15-2004 10:05 PM


All times are GMT -5. The time now is 09:02 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration