- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- sudo / sudoers questions
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-19-2007 09:04 AM
12-19-2007 09:04 AM
I'm trying to get sudo configured on my 11.11 server, and I can't quite get it working. I'm trying to allow two user id's to execute two things (/sbin/powermt & a shell script) as root, without authentication. I'm not overly familiar with the syntax needed in the sudoers file, so I'm wondering if that's my issue. Here's what I've tried to use to grant access to /sbin/powermt.
user1 ALL=NOPASSWD: /sbin/powermt
"user1" gets prompted to authenticate when I try to execute the command:
# sudo /sbin/powermt
We trust you have received the usual lecture from the local System
Administrator. It usually boils down to these three things:
#1) Respect the privacy of others.
#2) Think before you type.
#3) With great power comes great responsibility.
Password:
And it doesn't accept the user's password, or the root password. If anyone has any feedback or suggestions I'd be greatful. Thanks in advance.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-19-2007 09:19 AM
12-19-2007 09:19 AM
Re: sudo / sudoers questions
user1 ALL=/sbin/powermt
Goodluck,
-USA..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-19-2007 09:28 AM
12-19-2007 09:28 AM
SolutionI just tried that and it worked. You probably have already done this but check the permission on /sbin/powermt
and the user1's entry in /etc/passwd file.
also you could test this:
user1 ALL =NOPASSWD: ALL
to see if it works for somthing like
sudo ls
good luck kathy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-19-2007 09:36 AM
12-19-2007 09:36 AM
Re: sudo / sudoers questions
Kathy - that worked great, and I was able put my two individual commands in there. Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-19-2007 11:41 AM
12-19-2007 11:41 AM