- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- need to give "sudo" access to one user
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
тАО05-21-2006 05:34 PM
тАО05-21-2006 05:34 PM
I need to give "sudo" access to one user, how can i do this?
that user needs to run some root commands of "powermt" ..etc
Please suggest
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-21-2006 05:39 PM
тАО05-21-2006 05:39 PM
Re: need to give "sudo" access to one user
Edit /etc/sudoers file and add the user and "powermt" command.
-Arun
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-21-2006 06:02 PM
тАО05-21-2006 06:02 PM
Re: need to give "sudo" access to one user
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-21-2006 06:09 PM
тАО05-21-2006 06:09 PM
Re: need to give "sudo" access to one user
Use the find command to find the sudoers file.
many times it resides under /usr/local/etc/sudo/sudoers
else:
# find / -name sudoers -print
And add the full patch of the powermt command on the access list of sudoers , for that user/group.
Cheers,
Raj.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-21-2006 06:09 PM
тАО05-21-2006 06:09 PM
SolutionUse the find command to find the sudoers file.
many times it resides under /usr/local/etc/sudo/sudoers
else:
# find / -name sudoers -print
And add the full path of the powermt command on the access list of sudoers , for that user/group.
Cheers,
Raj.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-21-2006 07:56 PM
тАО05-21-2006 07:56 PM
Re: need to give "sudo" access to one user
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-21-2006 08:00 PM
тАО05-21-2006 08:00 PM
Re: need to give "sudo" access to one user
its better to use the visudo which will open the sudoers file directly and you can include the login id of the user to whom u need to give the sudo acess.
Rgds,
Ricky
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-21-2006 08:42 PM
тАО05-21-2006 08:42 PM
Re: need to give "sudo" access to one user
powermt: /sbin/powermt
root@server:[/root]# find / -name sudoers
/opt/iexpress/sudo/etc/sudoers
/opt/iexpress/sudo/newconfig/opt/iexpress/sudo/etc/sudoers
username: laoracle
please let me know how to give sudo access to "laoracle" user.
what will be entry format?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-21-2006 09:02 PM
тАО05-21-2006 09:02 PM
Re: need to give "sudo" access to one user
laoracle ALL= /sbin/powermt
will be enough i think.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-21-2006 10:14 PM
тАО05-21-2006 10:14 PM
Re: need to give "sudo" access to one user
You can use the visudo command to edit the sudoers file.
Cheers,
Raj.