- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Change of user using su -
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
тАО12-12-2008 09:48 AM
тАО12-12-2008 09:48 AM
Change of user using su -
I have a user named producao and another user named prd1bea. I need allow that the use producao runs the command (su - prd1bea) and change to user prd1bea without prompting password.
How Can I do it???
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-12-2008 09:55 AM
тАО12-12-2008 09:55 AM
Re: Change of user using su -
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-12-2008 09:59 AM
тАО12-12-2008 09:59 AM
Re: Change of user using su -
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-12-2008 10:02 AM
тАО12-12-2008 10:02 AM
Re: Change of user using su -
Run visudo and add the following to the sudoers file:
producao ALL = NOPASSWD: /usr/bin/su [-] prd1bea
Then, to su to the user, run:
sudo su - prd1bea
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-13-2008 09:20 AM
тАО12-13-2008 09:20 AM
Re: Change of user using su -
To provide the su access to the user just download the sudo package from the HP site and install it. Once installed you can edit the permissions by adding the user names in the sudoers file by visudo command.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-13-2008 10:12 AM
тАО12-13-2008 10:12 AM
Re: Change of user using su -
(See the response from Autocross and jaivinder.)
while what piyush describes will allow the user to "su - " w/o passwd, it also provides root level access to the entire system. And, should you removing that user and the files they own would result in a crashed system. It will cause you to fail security audits of all kinds, and if I found someone doing that here....well...they'd be looking elsewhere for work.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-15-2008 04:15 AM
тАО12-15-2008 04:15 AM
Re: Change of user using su -
When the user producao make a ssh to the same machine but with the user prd1bea, the connection is established without password.
Thank you for the help.