- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: configuring "sudo" in hp-ux
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
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
тАО03-17-2009 11:38 PM
тАО03-17-2009 11:38 PM
I want to give sudo permission for some users. so how to do this HP-UX.
Pls explain me.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-17-2009 11:45 PM
тАО03-17-2009 11:45 PM
SolutionUse the visudo command to edit the sudoers file as this has error checking.
'man visudo' to find the syntax to configure the access you require.
For example we use sudo to give group1 users root access to all commands without asking for a password, this is achieved by:
%group1 ALL=(ALL) NOPASSWD: ALL
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-17-2009 11:54 PM
тАО03-17-2009 11:54 PM
Re: configuring "sudo" in hp-ux
2. to configure sudoers files:
# cp /usr/local/etc/sudoers.sample /usr/local/etc/sudoers
# /usr/local/sbin/visudo
add line for ex:
# Same thing without a password
%sysadmin ALL=(ALL) NOPASSWD: ALL
--> means, group sysadmin can do everything like root user
donald ALL=(ALL) NOPASSWD: /usr/bin/su - oracle
---> measn, user donald can switch to user oracle without password with run "sudo su - oracle"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-17-2009 11:54 PM - last edited on тАО01-10-2021 04:05 PM by Ramya_Heera
тАО03-17-2009 11:54 PM - last edited on тАО01-10-2021 04:05 PM by Ramya_Heera
Re: configuring "sudo" in hp-ux
check this link for syntax
https://support.hpe.com/hpesc/public/docDisplay?docLocale=en_US&docId=c01750084http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=1177448
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-18-2009 12:07 AM
тАО03-18-2009 12:07 AM
Re: configuring "sudo" in hp-ux
http://gatekeep.cs.utah.edu/hppd/hpux/Sysadmin/sudo-1.7.0/
Please refer for the below link for examples
http://www.gratisoft.us/sudo/man/sudoers.html
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-18-2009 12:18 AM - last edited on тАО01-10-2021 04:06 PM by Ramya_Heera
тАО03-18-2009 12:18 AM - last edited on тАО01-10-2021 04:06 PM by Ramya_Heera
Re: configuring "sudo" in hp-ux
Hi Senthil,
Please have a look on these threads
https://support.hpe.com/hpesc/public/docDisplay?docId=c03593890&docLocale=en_US
regards!