- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Password usage in sudoers file
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
тАО02-18-2011 02:47 AM
тАО02-18-2011 02:47 AM
Password usage in sudoers file
I will like to be able to switch to another user in sudo and prompted for the password of that target user.
I have tried putting this into my sudoers file:
Defaults targetpw
But still does not work.
Any help.
# su - ctmag
$ su - oracle-rpp
Password:
Sorry, try again.
Password:
sudo: 1 incorrect password attempt
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-18-2011 03:56 AM
тАО02-18-2011 03:56 AM
Re: Password usage in sudoers file
'sudoers' only related to 'sudo' and not 'su'.
On HP-UX sudo is not installed by default (although you can install a port if IIRC).
So changes made in the 'sudoers' file will not affect the behaviour of 'su'.
Somebody please correct me if I am wrong!
sangilak
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-18-2011 04:55 AM
тАО02-18-2011 04:55 AM
Re: Password usage in sudoers file
I have scripted the su command to call up sudo command in /bin/su.
So instead of typing sudo ...., I will just type su - and it works fine.
Regards,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-18-2011 06:21 AM
тАО02-18-2011 06:21 AM
Re: Password usage in sudoers file
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-18-2011 06:45 AM
тАО02-18-2011 06:45 AM
Re: Password usage in sudoers file
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-18-2011 07:23 AM
тАО02-18-2011 07:23 AM
Re: Password usage in sudoers file
If you do that though, why use sudo? If the user knows the password or the target user they could just log in as that user. From my perspective that's defeating the purpose of sudo.