HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- If I want to login automatic (no prompt to enter p...
Operating System - HP-UX
1832568
Members
4662
Online
110043
Solutions
Forums
Categories
Company
Local Language
back
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
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- 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
10-29-2006 02:12 PM
10-29-2006 02:12 PM
If I want to login automatic (no prompt to enter password) after su command, How to do?
I set .profile of user "xxx" to
------------------
./menu.sh
exit
------------------
After I login to user "xxx", It's will call menu.sh script.
If I want to change user to "yyy" before call menu.sh
How I can do? (by no prompt for enter password). I try to user su command
su - yyy
./menu.sh
exit
It's will ask password (Sure, I know password of user yyy). But I don't want user
"xxx" enter password, How to automatic login user "yyy"?
Thank you.
------------------
./menu.sh
exit
------------------
After I login to user "xxx", It's will call menu.sh script.
If I want to change user to "yyy" before call menu.sh
How I can do? (by no prompt for enter password). I try to user su command
su - yyy
./menu.sh
exit
It's will ask password (Sure, I know password of user yyy). But I don't want user
"xxx" enter password, How to automatic login user "yyy"?
Thank you.
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-29-2006 02:59 PM
10-29-2006 02:59 PM
Re: If I want to login automatic (no prompt to enter password) after su command, How to do?
If user xxx is NOT a root user, then the only is to use a package like sudo.
You would set up sudo to allow user xxx to do a 'su - yyy'. Then in the menu you would do:
sudo su - yyy
./menu.sh
exit
You can get sudo from:
http://www.courtesan.com/sudo
and/or
http://hpux.connect.org.uk/hppd/hpux/Sysadmin/sudo-1.6.8p9/
You would set up sudo to allow user xxx to do a 'su - yyy'. Then in the menu you would do:
sudo su - yyy
./menu.sh
exit
You can get sudo from:
http://www.courtesan.com/sudo
and/or
http://hpux.connect.org.uk/hppd/hpux/Sysadmin/sudo-1.6.8p9/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-29-2006 08:54 PM
10-29-2006 08:54 PM
Re: If I want to login automatic (no prompt to enter password) after su command, How to do?
hi,
ssh would be another option to consider.
hope this helps too!
kind regards
yogeeraj
ssh would be another option to consider.
hope this helps too!
kind regards
yogeeraj
No person was ever honoured for what he received. Honour has been the reward for what he gave (clavin coolidge)
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP