- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Help on sudo!!
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
Forums
Discussions
Discussions
Discussions
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
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-21-2006 01:03 AM
12-21-2006 01:03 AM
Help on sudo!!
I want to give some users whith a restricted sudo privelege in order to support their application.
I have added this in the sudoers file as below.
==================================
# User alias specification
User_Alias SMVGG=tina
# User privilege specification
SMVGG ALL=/opt/SM/script/smshut all,\
/opt/SM/bin/smstat,\
=====================================
And when I login as user tina and use sudo su -
it doesnt give the sudo access and gives the error
Sorry, user tina is not allowed to execute '/usr/bin/su -' as root on smvgs09.
Could you please help me out on this?
Thanks in Advance,
Ricky
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-21-2006 01:08 AM
12-21-2006 01:08 AM
Re: Help on sudo!!
User_Alias SMVGG = tina
regards,
ivan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-21-2006 01:11 AM
12-21-2006 01:11 AM
Re: Help on sudo!!
I had tried this earlier but did not work.
Thanks,
Ricky
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-21-2006 01:12 AM
12-21-2006 01:12 AM
Re: Help on sudo!!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-21-2006 01:32 AM
12-21-2006 01:32 AM
Re: Help on sudo!!
Thanks for that...but that could not help me out.
rgds,
ricky
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-21-2006 01:43 AM
12-21-2006 01:43 AM
Re: Help on sudo!!
regards,
ivan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-21-2006 01:46 AM
12-21-2006 01:46 AM
Re: Help on sudo!!
I think the issue may be here:
# User privilege specification
SMVGG ALL=/opt/SM/script/smshut all,\
/opt/SM/bin/smstat,\
I don't think its going to like the blank space between "smshut" and "all". I've never tried it the way you appear to have it set up.
I don't think you can restrict the user to a specific option of a program, either they can run the program or not. *BUT* I could be wrong there
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-21-2006 01:57 AM
12-21-2006 01:57 AM
Re: Help on sudo!!
add this line in the sudoers
tina ALL="/usr/bin/su -"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-21-2006 02:11 AM
12-21-2006 02:11 AM
Re: Help on sudo!!
> tina ALL="/usr/bin/su -"
is not very useful. su - bypasses sudo's ability to log and contain individual commands. By allowing su -, the user can do anything to the system. You might as well skip sudo and just give the user tina the root password. After all, once tina runs su -, the user can change the root password, remove or reformat active disks, or simply become a member of the rm -r * club. Enumerate the commands you are allowing, including where necessary the allowed parameters. And make sure the scripts tina can execute don't have su - or other privilege elevation command.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-21-2006 02:23 AM
12-21-2006 02:23 AM
Re: Help on sudo!!
I have added the /usr/bin/su - and Iam able to do sudo su - but this is givng the complete root access to the user tina and I want to provide some restricted access.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-21-2006 02:37 AM
12-21-2006 02:37 AM
Re: Help on sudo!!
Thanks and I completely agree with you.
I should not add /opt/bin/su -.
I haved specified the commands for the user to execute but they are not executing.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-21-2006 02:45 AM
12-21-2006 02:45 AM
Re: Help on sudo!!
ALL=/path/to/command
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-21-2006 03:27 AM
12-21-2006 03:27 AM