Specialty Forums
Security and Virus
General Hardware
CPUs/Overclocking
Networking
Digital Photo/Video
Office Software
PC Gaming
Console Gaming
Programming
Database
Web Development
Digital Home

General Forums
Windows XP
Windows Vista
Windows 95/98
Windows Me
Windows NT
Windows 2000
Win Server 2008
Win Server 2003
Windows 3.1
Linux
PDAs
BeOS
Novell Netware
OpenVMS
Solaris
Disk Op. System
Unix
Mac
OS/2

Drivers
Driver Scan
Driver Forum

Software
Automatic Updates

BIOS Updates

My Computing.Net

Solution Center

Free IT eBook

Howtos

Site Search

Message Find

RSS Feeds

Install Guides

Data Recovery

About

Home
Reply to Message Icon Go to Main Page Icon

Subject: Change password with out any prompt

Original Message
Name: pnbalaji
Date: April 1, 2008 at 13:40:47 Pacific
Subject: Change password with out any prompt
OS: AIX 5.3
CPU/Ram: 8GB
Model/Manufacturer: IBM, 7026-H80
Comment:
Hi,

I am not a root user, but I am part of the security group in our AIX box who has the authority to create new AIX users. Now, we upgraded our server and I need to nearly 50 new users in the system. However, using the pwdadm command or passwd command prompts for the new password twice. I want to create the users using a batch process and I want to set the passwords to 'setnew1' for all new users.I don't want any prompts or confirmation when creating the users.

Is there a way to acheive this? Can some one help?

Thanks,
Balaji.


Report Offensive Message For Removal

Response Number 1
Name: nails
Date: April 1, 2008 at 14:27:03 Pacific
Subject: Change password with out any prompt
Reply: (edit)
First, only someone with root permissions can change passwords (sudo maybe used to grant certain permissions to non-root users)a common method for automating the pwadmin prompts is to use expect.

The following is an expect script which automates pwadin. It is a variation of a script bundled with expect:

#!/usr/local/bin/expect --
# wrapper to make passwd(1) be non-interactive
# username is passed as 1st arg, passwd as 2nd
# Executable only by root

set password [lindex $argv 1]
spawn /usr/bin/passwd [lindex $argv 0]
expect "password:"
send "$password\r"
expect "password:"
send "$password\r"
expect eof

If you don't have expect on your system, download it from the expect homepage:

http://expect.nist.gov/

Second, I'm not an AIX person, but you can automate creating users from the command line with the useradd command - at least under solaris.

If AIX doesn't have useradd, try adduser.

Finally, check out this article:

http://www.unixreview.com/documents...

It creates a script to automate creating user accounts with useradd. It's solaris specific, but it might give you some ideas.


Report Offensive Follow Up For Removal

Response Number 2
Name: mijenkins93
Date: April 8, 2008 at 19:12:51 Pacific
Subject: Change password with out any prompt
Reply: (edit)
man....8 gigs of ram is crazy!

Report Offensive Follow Up For Removal



Use following form to reply to current message:

   Name: From My Computing.Net Settings
 E-Mail: From My Computing.Net Settings

Subject: Change password with out any prompt

Comments:

 
  Homepage URL (*): 
Homepage Title (*): 
         Image URL: 
 


Data Recovery Software



Version Tracker Pro
Keep your software current and secure, effortlessly

Click Here for a Free Scan

Driver Agent
Automatically find the latest drivers for your computer.
Click Here for a Free Scan



The information on Computing.Net is the opinions of its users. Such opinions may not be accurate and they are to be used at your own risk. Computing.Net cannot verify the validity of the statements made on this site. Computing.Net and Computing.Net, LLC hereby disclaim all responsibility and liability for the content of Computing.Net and its accuracy.
PLEASE READ THE FULL DISCLAIMER AND LEGAL TERMS BY CLICKING HERE

All content ©1996-2007 Computing.Net, LLC