HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- multiple users password change
Operating System - HP-UX
1835224
Members
2463
Online
110078
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-22-2002 12:15 AM
04-22-2002 12:15 AM
multiple users password change
I currently have an application that users are unable to change their passwords in. I need to set more secure passwords for the users (Although I will be creating these) . Is there anyway of scripting up a list of users and forcing the passwd to be changed without having to type in new password with its confirmation. Or do I have a nice tedious afternoon ahead?
Just cos I look after Unix Boxes doesnt mean I wear sandals
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-22-2002 12:24 AM
04-22-2002 12:24 AM
Re: multiple users password change
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-22-2002 12:45 AM
04-22-2002 12:45 AM
Re: multiple users password change
Hi
I had to do this last year, unfortunatly I no longer have access to the scripts which I created to do this.
How I did it was by creating a dummy user changing the password using the usual password command then extracting the encrypted password from the password file and substituting it to the list of required users in the password file with a shell script thus creating a common password with minimal user interaction.
cheers
John.
I had to do this last year, unfortunatly I no longer have access to the scripts which I created to do this.
How I did it was by creating a dummy user changing the password using the usual password command then extracting the encrypted password from the password file and substituting it to the list of required users in the password file with a shell script thus creating a common password with minimal user interaction.
cheers
John.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-22-2002 04:05 AM
04-22-2002 04:05 AM
Re: multiple users password change
Hi
copy the following lines of script
----------- cut here --------
#!/bin/sh
Password_file=/etc/passwd
Out_File=/tmp/PASSWD.MOD
cat $Password_file |awk -F":" '{print $1":,/...:"$3":"$4":"$5":"$6":"$7}'>$Out_File
---- End
This script will create a file which will ask the password at first login without asking the old password.
select the users from /tmp/PASSWD.MOD file for whome you want to change the password and copy the full line to /etc/password for that particular user.
first make a copy of your password file and chnage the
variable Password_file respectively .
I hope it will work.
-Niraj
copy the following lines of script
----------- cut here --------
#!/bin/sh
Password_file=/etc/passwd
Out_File=/tmp/PASSWD.MOD
cat $Password_file |awk -F":" '{print $1":,/...:"$3":"$4":"$5":"$6":"$7}'>$Out_File
---- End
This script will create a file which will ask the password at first login without asking the old password.
select the users from /tmp/PASSWD.MOD file for whome you want to change the password and copy the full line to /etc/password for that particular user.
first make a copy of your password file and chnage the
variable Password_file respectively .
I hope it will work.
-Niraj
Niraj.Verma@philips.com
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP