- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- su to another user without 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
12-03-2006 02:10 PM
12-03-2006 02:10 PM
ps. please ignore the security issue.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-03-2006 02:37 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-03-2006 03:00 PM
12-03-2006 03:00 PM
Re: su to another user without password
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-03-2006 05:04 PM
12-03-2006 05:04 PM
Re: su to another user without password
note that you can download sudo as part of Internet express and compiled many options enabled.
http://h20293.www2.hp.com/portal/swdepot/displayProductInfo.do?productNumber=
HPUXIEXP1111
for more info, see:
http://forums1.itrc.hp.com/service/forums/questionanswer.do?admit=716493758+1090940400855+28353475&threadId=630557
kind regards
yogeeraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-03-2006 05:22 PM
12-03-2006 05:22 PM
Re: su to another user without password
I use rlogin , the userA can su to userB without password now, but I have another requirement , I want to write a script , the script run by userA and su to userB then rcp a file to remote server , like below , but have error , it seems the rlogin has problem , I have test that userA can su to userB and scp file to remote server ( test it manually ) , but why can run it with a script , can advise what is wrong in my script ? thx
script :
SU="rlogin -l userB localhost"
${SU} "scp test.file remotehost:/tmp
error :
usage: rlogin [ -8EL] [-e char] [ -l username ] host
phase 2
usage: rlogin [ -8EL] [-e char] [ -l username ] host
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-03-2006 10:16 PM
12-03-2006 10:16 PM
Re: su to another user without password
the command 'rlogin' does interactive login - no addtional commands can be supplied. Use 'remsh' instead; as well you need balanced quotes - I suggest you try something like this:
SU="remsh -n -l userB localhost"
${SU} "scp -q test.file remotehost:/tmp"
mfG Peter
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-07-2006 11:29 AM
12-07-2006 11:29 AM
Re: su to another user without password
In principle it seems as you want to have two equivalent users, so why can't you define them with same uid ?
The two users can have individual environment settings, home directory aso. but still have identical rights to each others files.
/Tor-Arne
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-07-2006 06:49 PM
12-07-2006 06:49 PM
Re: su to another user without password
can you give a feedback to our solutions?
And:
http://forums1.itrc.hp.com/service/forums/helptips.do?#28
mfG Peter
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-07-2006 10:27 PM
12-07-2006 10:27 PM
Re: su to another user without password
ssh username@host command
Regards,
Berd
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-08-2006 09:16 PM
12-08-2006 09:16 PM
Re: su to another user without password
you can use any of three methods.
I)sudo- you have to install this
II)RLOGIN-Make configuration changes in $HOME./rhosts file( for user equivalency) or /etc/host.eqv file( for hosts equivalency)
III)user ssh-This also you have to installed in server,But very secure method.
You can configure ssh to switch without passwd.You have to generate public/private key & a procedure for this single sign on.
Choice is yours.
Trupti