GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Help with sudo
Operating System - HP-UX
1847175
Members
5328
Online
110263
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Forums
Discussions
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- 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
08-15-2008 05:33 AM
08-15-2008 05:33 AM
I'm having a problem getting sudo to run for an ov user. sudo version is 1.6.8p12 and OS is HPUX 11.23. I want the user opc_op to be able to run OV commands on the opt/OV/bin dir but when I run
sudo /opt/OV/bin/ovcert -list
I get the following error:
opc_op is not in the sudoers file. This incident will be reported.
Here is the contents on my /etc/sudoers file:
User_Alias OVADM = opc_op
Cmnd_Alias OVCMD = /opt/OV/bin/ovcert
OVADM misdwdb1 = NOPASSWD: OVCMD
any ideas?
sudo /opt/OV/bin/ovcert -list
I get the following error:
opc_op is not in the sudoers file. This incident will be reported.
Here is the contents on my /etc/sudoers file:
User_Alias OVADM = opc_op
Cmnd_Alias OVCMD = /opt/OV/bin/ovcert
OVADM misdwdb1 = NOPASSWD: OVCMD
any ideas?
Solved! Go to Solution.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-15-2008 05:47 AM
08-15-2008 05:47 AM
Solution
Where did you get the version of sudo that you installed? Are you ABSOLUTELY POSITIVE that /etc/sudoers is the right location for the file?
It is entirely possible that /etc is the wrong spot. I have sudoers files in different locations on my various servers. The location depends entirely on how sudo was compiled.
Locations of sudoers that I have:
/etc
/usr/local/etc
/opt/iexpress/sudo/etc
Check those locations.
How did you edit the sudoers? Did you just vi the file? If so, that may be part of the problem. You really need to use 'visudo' to edit the file. That way when you exit it checks the file and reports any errors to you and gives you the opportunity to fix them.
It is entirely possible that /etc is the wrong spot. I have sudoers files in different locations on my various servers. The location depends entirely on how sudo was compiled.
Locations of sudoers that I have:
/etc
/usr/local/etc
/opt/iexpress/sudo/etc
Check those locations.
How did you edit the sudoers? Did you just vi the file? If so, that may be part of the problem. You really need to use 'visudo' to edit the file. That way when you exit it checks the file and reports any errors to you and gives you the opportunity to fix them.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-15-2008 05:49 AM
08-15-2008 05:49 AM
Re: Help with sudo
Shalom,
The http://software.hp.com Internet Express ix version of sudo has its configuration files in /opt
Also I don't see the user opc_op in the configuration.
SEP
The http://software.hp.com Internet Express ix version of sudo has its configuration files in /opt
Also I don't see the user opc_op in the configuration.
SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-15-2008 06:12 AM
08-15-2008 06:12 AM
Re: Help with sudo
Thank you very much. I had the sudoers file in /etc and it needed to be in /usr/local/etc.
Thanks again
Tommy
Thanks again
Tommy
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2026 Hewlett Packard Enterprise Development LP