HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Script setting protected passwords (using setp...
Operating System - HP-UX
1835105
Members
2149
Online
110076
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
10-24-2001 02:23 AM
10-24-2001 02:23 AM
Script setting protected passwords (using setprpwent()?)
Hi all,
I am trying to figure out a way to script setting passwords on a trusted system. I don't know how to program in C, but I do know how to script (sh/ksh). I believe the method is to use setprpwent, but I don't know how to do this. Does anyone have a script to do this?
Regards,
James
I am trying to figure out a way to script setting passwords on a trusted system. I don't know how to program in C, but I do know how to script (sh/ksh). I believe the method is to use setprpwent, but I don't know how to do this. Does anyone have a script to do this?
Regards,
James
GARDENOFEDEN> create light
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-24-2001 03:06 AM
10-24-2001 03:06 AM
Re: Script setting protected passwords (using setprpwent()?)
After thinking a lot around this issue I had some solutions to this issue:
1) write noddy C code to change password
2) do it the way sam does it
3) write a bit of perl to do it
1, has the problem that many SAs nowadays don't know C and makes summat extra to support.
2, has the problem that passwords are given, not made up by the admin
3, has the problem that it is perl :-)
In the end I went for 2 as it is quick and easy and has the advantage of giving secure passwords which the other two don't have...
The command to use is:
/usr/lbin/modprpw -x
It will return a password in standard out...
dav
1) write noddy C code to change password
2) do it the way sam does it
3) write a bit of perl to do it
1, has the problem that many SAs nowadays don't know C and makes summat extra to support.
2, has the problem that passwords are given, not made up by the admin
3, has the problem that it is perl :-)
In the end I went for 2 as it is quick and easy and has the advantage of giving secure passwords which the other two don't have...
The command to use is:
/usr/lbin/modprpw -x
It will return a password in standard out...
dav
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-24-2001 03:11 AM
10-24-2001 03:11 AM
Re: Script setting protected passwords (using setprpwent()?)
Not from ksh or sh, but you can from perl. You'll have to add this module to perl if it does not already exist:
http://www.perldoc.com/cpan/Authen/Prot.html
harry
live free or die
http://www.perldoc.com/cpan/Authen/Prot.html
harry
live free or die
Live Free or Die
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-25-2001 08:22 AM
10-25-2001 08:22 AM
Re: Script setting protected passwords (using setprpwent()?)
Sorry, but these don't solve my problem. I can't use perl as the boxes I have are hardened, and I'm not about to start installing perl to do it.
Anyone out there a C guru and can give me some code for setprpwent?
James
Anyone out there a C guru and can give me some code for setprpwent?
James
GARDENOFEDEN> create light
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