- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- how to give sudo access to a non-root user for non...
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
тАО11-28-2008 02:00 AM
тАО11-28-2008 02:00 AM
How to grant sudo access to a non-root user for a non-root user access.
eg: john needs sudo access for abhi user.
where abhi is another user.
how can we set this access. Please help me.
john -- primary group-- groupa
secondary group -- groupb, groupc.
abhi -- primary group abhi.
so how to put an entry visudo for the above requirement.
please help.
thanks!!
regards,
sanwin
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-28-2008 02:10 AM
тАО11-28-2008 02:10 AM
Re: how to give sudo access to a non-root user for non-root access
2.add the user name in that.
if needed mention the commands that he can execute.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-28-2008 02:13 AM
тАО11-28-2008 02:13 AM
Re: how to give sudo access to a non-root user for non-root access
This leaves the user there in a shell.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-28-2008 02:31 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-28-2008 02:49 AM
тАО11-28-2008 02:49 AM
Re: how to give sudo access to a non-root user for non-root access
john ALL = (abni) NOPASSWD: ALL
and after that try like user john with:
$sudo -u abni whoami
regards,
ivan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-28-2008 02:50 AM
тАО11-28-2008 02:50 AM
Re: how to give sudo access to a non-root user for non-root access
thanks for the replies. I think the last reply from you did give me a clue to use run_alias. i am trying that but could find the syntax currently for that.
My sudo file does not have the example in that.
regards,
sanwin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-28-2008 06:00 AM
тАО11-28-2008 06:00 AM
Re: how to give sudo access to a non-root user for non-root access
The RUN_AS and other aliases are optional: they're useful if you need to e.g. allow several users to access one user.
For example:
User_Alias PRIVILEGEDUSER = john
Runas_Alias TARGETUSER = abhi
PRIVILEGEDUSER ALL=(TARGETUSER) NOPASSWD: ALL
If Paul joins the project and needs the same access as John, you can then change the User_Alias line to:
User_Alias PRIVILEGEDUSER = john, paul
The other two lines won't need to be changed.
As a reminder of the syntax, I sometimes write a comment like this in the sudoers file:
# Who Where = (As Who) does What
MK