- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: FREE PERL SCRIPT: Non-Interactive bulk root pa...
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
Discussions
Discussions
Forums
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
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
тАО05-10-2010 01:47 AM
тАО05-10-2010 01:47 AM
FREE PERL SCRIPT: Non-Interactive bulk root password change on HP-UX servers
I wrote a Perl script to facilitate root
password change across may HP-UX servers.
The goal was:
a) Use SSH key exchnage, or
b) Use SSH password authentication for
remote servers,
c) Read a file with entries of the following
type:
remserv:newpasswd:remcurrpass
remserv2:
remserv3:newpass3
The first example is for a remote server
"remserv" that currently uses password
"remcurpass", so plain SSH password
authentication is used to change it to new
password "newpasswd".
The second example is for a remote server
"remserv2" that uses SSH key exchange and the
Perl script will pick up a new password at
random (from a list of valid characters).
The third example is for a remote server
"remserv3" that uses S"newpass3".
The list of valid characters in the Perl script is defined via variables:
# Default characters for passwords
#
my $lowercase = q{abcdefghijklmnopqrstuvwxyz};
my $UPPERCASE = q{ABCDEFGHIJKLMNOPQRSTUVWXYZ};
my $Digits = q{0123456789};
my $Punctuation = q{~!$%^&*()-=_[]|:,.} . '{}';
my $Matchlist = "${UPPERCASE}${lowercase}${Digits}${Punctuation}";
The latest version of the script is always
on my home web server (see other posts
for references).
I hope somebody find it useful :)
Cheers
VK2COT
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-10-2010 01:53 AM
тАО05-10-2010 01:53 AM
Re: FREE PERL SCRIPT: Non-Interactive bulk root password change on HP-UX servers
Hi VK2COT ...
But where is the script ??? From where i can donwnload it ??
Prasanth.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-10-2010 01:54 AM
тАО05-10-2010 01:54 AM
Re: FREE PERL SCRIPT: Non-Interactive bulk root password change on HP-UX servers
Horia.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-10-2010 01:54 AM
тАО05-10-2010 01:54 AM
Re: FREE PERL SCRIPT: Non-Interactive bulk root password change on HP-UX servers
I included it in the post but it disappeared.
let's try again.
VK2COT
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-10-2010 02:04 AM
тАО05-10-2010 02:04 AM
Re: FREE PERL SCRIPT: Non-Interactive bulk root password change on HP-UX servers
Thanks :)
I got it ...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-10-2010 03:04 AM
тАО05-10-2010 03:04 AM
Re: FREE PERL SCRIPT: Non-Interactive bulk root password change on HP-UX servers
http://www.circlingcycle.com.au/Unix-sources/Unix-scripts.html
Some really impressive scripts there, thanks for the contribution!
Best,
Stephan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-10-2010 03:41 AM
тАО05-10-2010 03:41 AM
Re: FREE PERL SCRIPT: Non-Interactive bulk root password change on HP-UX servers
is your script able to check password power by character lengths OR old password check to not use again for extra security ?
and when it comes to cross platform supporting; since, one of remote server is Linux I wonder if is it able to work on Linux Red Hat ?
By the way , this script is usefull because I have 8 servers as remote and this is easier way to change password.
Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-11-2010 01:49 AM
тАО05-11-2010 01:49 AM
Re: FREE PERL SCRIPT: Non-Interactive bulk root password change on HP-UX servers
The password history was not really part of my
original goals. The reason is simple:
a) One either needs to run Trusted System
(TCB), and TCB is obsolete as of HP-UX 11.31;
or
b) Install StdModSecExt on HP-UX 11.23
servers;
or
c) Install SecurityMon on HP-UX 11.31
servers.
In addition. As far as long passwords are
concerned, either TCB for any current
HP-UX release must be used, or
LongPassword11i3 for HP-UX 11.31.
Those issues are part of IT security
policies :)
Over time, I might add support for some other
options and interesting features. At the moment, I am happy that it works
well as it is :)
Keep an eye on my home Web server and
you might see new scripts and updates soon.
At the moment I am working on Perl script to
update disk labels for Solaris (I do not
deal with HP-UX only :)).
Cheers,
VK2COT