- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Script for 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
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
тАО07-04-2006 12:23 AM
тАО07-04-2006 12:23 AM
Pls help me how to do
Solved! Go to Solution.
- Tags:
- Password
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-04-2006 12:26 AM
тАО07-04-2006 12:26 AM
Re: Script for password
Do you have trusted system?
Andrey
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-04-2006 12:32 AM
тАО07-04-2006 12:32 AM
Re: Script for password
1. some expect scripting.
2. directly pasting the encrypted password in password feild - not good though
3. If you have centralised password management.
3. You can use following command to do that.
/usr/sam/lbin/usermod.sam -p "$(echo "1234abcdxy" | /usr/lbin/makekey)" "user_name"
The password will be set as 1234abcd. The password has to be of 8 chars and xy is salt chars used.
- Tags:
- expect
- usermod.sam
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-04-2006 01:56 AM
тАО07-04-2006 01:56 AM
Re: Script for password
i wont like to use SAM because we had 5 servers ( inlcuding aix and linux box)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-04-2006 03:03 AM
тАО07-04-2006 03:03 AM
Re: Script for password
creating a NIS domain for five servers seems not unreasonable to me.
I guess searching for 'NIS setup' in this forum will get some matches ...
mfG Peter
- Tags:
- NIS
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-04-2006 03:22 AM
тАО07-04-2006 03:22 AM
Re: Script for password
Please help
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-04-2006 03:54 AM
тАО07-04-2006 03:54 AM
Re: Script for password
Expect is freeware and it'll run on Unix/Linux systems and can be downloaded from here...http://expect.nist.gov/
~cheers
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-04-2006 05:54 PM
тАО07-04-2006 05:54 PM
Re: Script for password
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-04-2006 06:37 PM
тАО07-04-2006 06:37 PM
SolutionDoesn't seem to complicated to me.
If you just keep it simple for a moment,
disregard security and forget it is a productive system one scenario would be
something like this:
#!/sbin/bash
for host in node1, node2, Node3, Node4,Node5
do
function logon
{
trap INT
echo root
sleep 1
echo $PASSIN
sleep 2
echo ls
stty echo
echo exit
}
logon | telnet $1
done
Naturally there are many other
ways to achieve the same result.
You could first compare if the entry already
exists in the passwd file and script that and
schedule it in background.
I presume you have enough scripting knowledge to script the interface (if
you need one)
What security is concerned you could
tie it down a bit, by creating a dedicated account on each Node for this household task only. With only access to the passwd cmd.
(But I would protect and except root from
this altogether, thus only the superuser can
change the superuser passwd). But this account could change user accounts only.
That way you can monitor the accounts and
determine permissions and keep security
pretty good.
Anyway, just some idea's, sure it can be
improved upon ...