- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Login without passwd
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
08-31-2007 03:36 AM
08-31-2007 03:36 AM
Login without passwd
I have a number of application ids for which I need to login quite frequently , I want to find a way to have the passwd's fed into a file and passed on through a script. ( exec ? )
thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-31-2007 03:49 AM
08-31-2007 03:49 AM
Re: Login without passwd
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-31-2007 03:57 AM
08-31-2007 03:57 AM
Re: Login without passwd
Unfortunately cant use sudo.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-31-2007 04:00 AM
08-31-2007 04:00 AM
Re: Login without passwd
1) Create setuid wrappers which run as root and thus no password prompting is required.
2) Use expect. http://hpux.its.tudelft.nl/hppd/hpux/Tcl/expect-5.43/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-31-2007 04:00 AM
08-31-2007 04:00 AM
Re: Login without passwd
it's a good scripting language especially for telnet connections and entering and expecting parameters and prompts, it's good for automation.
here is an example of an expect script automating a telnet session that i found on the net
# Assume $remote_server, $my_user_id, $my_password, and $my_command were read in earlier
# in the script.
# Open a telnet session to a remote server, and wait for a username prompt.
spawn telnet $remote_server
expect "username:"
# Send the username, and then wait for a password prompt.
send "$my_user_id\r"
expect "password:"
# Send the password, and then wait for a shell prompt.
send "$my_password\r"
expect "%"
# Send the prebuilt command, and then wait for another shell prompt.
send "$my_command\r"
expect "%"
# Capture the results of the command into a variable. This can be displayed, or written to disk.
set results $expect_out(buffer)
# Exit the telnet session, and wait for a special end-of-file character.
send "exit\r"
expect eof
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-31-2007 04:03 AM
08-31-2007 04:03 AM
Re: Login without passwd
Thanks for the suggestion but I am a non root user and just want to do it through a script.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-31-2007 04:07 AM
08-31-2007 04:07 AM
Re: Login without passwd
here is the official expect site
http://expect.nist.gov/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-31-2007 04:12 AM
08-31-2007 04:12 AM
Re: Login without passwd
If so the a ssh client should do what you require PuTTY is the most common. The following link is for Linux but should work for HP-UX as well:
http://linux-sxs.org/networking/openssh.putty.html
HTH
Duncan
I am an HPE Employee

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-31-2007 04:15 AM
08-31-2007 04:15 AM
Re: Login without passwd
if using terminal emulator software such as HOSTACCESS or TinyTerm, you can script the login to terminals.
note that option c is *generally* frowned upon, especially by auditors
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-31-2007 04:16 AM
08-31-2007 04:16 AM
Re: Login without passwd
So I want to have a script which logins into a userid with the passwd embebded into that script and issue some commands and then come back to my login id.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-31-2007 04:26 AM
08-31-2007 04:26 AM
Re: Login without passwd
http://docs.hp.com/en/5991-8678/5991-8678.pdf
(see chapter 3 and onwards)
Unfortunately you still need someone with root access to configure this for you, but it should be already installed on 11iv2/11iv3 systems.
HTH
Duncan
I am an HPE Employee

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-31-2007 04:36 AM
08-31-2007 04:36 AM
Re: Login without passwd
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-31-2007 02:57 PM
08-31-2007 02:57 PM
Re: Login without passwd
I assume you meant remsh?
You could just set up .rhosts so you don't need a password to login into another user.