- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: script to generate a password
Categories
Company
Local Language
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
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
Community
Resources
Forums
Blogs
- 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-17-2003 08:29 AM
04-17-2003 08:29 AM
The ops mgr wants to alter an outside vendor's password each day. I could not find anything canned and don't really want to roll my own. It would need to generate a new password and email the operators the new password.
Any scripts out there? We are on 11.00 untrusted system.
If there is nothing ready to use ideas on how to generate that password?
Thanks in advance,
Doug
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-17-2003 08:32 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-17-2003 08:44 AM
04-17-2003 08:44 AM
Re: script to generate a password
You might be introducing a bit of a security hole if you are emailing plaintext passwords from the server...
Perhaps the vendor could supply you with a list of a month's worth of pre-encrypted passwords; then you could have a cron job that moves the pre-encrypted passwords into place?
regards,
Darren.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-17-2003 09:25 AM
04-17-2003 09:25 AM
Re: script to generate a password
There should be no security hole as I am not sending them out of the server, just to the operator account avail in the server.
Thanks Again to you both.
Doug
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-17-2003 09:42 AM
04-17-2003 09:42 AM
Re: script to generate a password
Generates a random password - very hard to crack - will pass just about any security audit...
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-17-2003 09:50 AM
04-17-2003 09:50 AM
Re: script to generate a password
Here is a little Perl script I use to generate 'ugly' passwords that make our security guy happy:
#!/usr/bin/perl
# ugly_password.pl
# This script will generate a random password 16 characters long using
# upper and lower case alphabetical characters, numbers, and special
# characters.
@chars = ( "A" .. "Z", "a" .. "z", 0 .. 9, qw(! @ # $ % ^ & _ - [ ] { }) );
$password = join("", @chars[ map { rand @chars } ( 1 .. 16 ) ]);
print "New password is $password\n";
JP
P.S. Merijn should be happy. I actually do a little bit of scripting [not enough] in Perl. ;)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-17-2003 12:00 PM
04-17-2003 12:00 PM
Re: script to generate a password
Hope you return to this thread.
I've tried your cprog but < > are still generated. I've tried quoting and double quoting in the define but they are still generated. ???
dl
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-21-2003 06:37 AM
04-21-2003 06:37 AM
Re: script to generate a password
Strange = the c program was developed on a Solaris box - I've tried compiling on HPUX 11.11 - to no avail - on Solaris those characters never show up in random passwords - how did you complie on HP?
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-09-2003 12:35 PM
05-09-2003 12:35 PM
Re: script to generate a password
Man, I had forgotten about this note.
Anyway, it was using ANSI C on HP-UX 11.0
Thanks for the follow up.
dl