HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Help on Sudo
Operating System - HP-UX
1834346
Members
1832
Online
110066
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
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
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
06-15-2004 06:48 PM
06-15-2004 06:48 PM
Help on Sudo
Hi
I am new to sudo and I need help urgently to run sudo. One of our friend help me, but still I am facing problem. Please help me exactly how do define the parameters for sudo. I did the following with the help of Jose.
1. visudo I added the following:-
Cmnd_Alias FBACKUP=usr/sbin/fbackup
Cmnd_Alias FRECOVER=/usr/sbin/frecover
Cmnd_Alias SDOWN=/usr/sbin/shutdown -r now
Host_Alias MYHOSTS=cmsoper
cmsoper (ALL) NOPASSWD:ALL
%cmsoper MYHOSTS=NOPASSWD:FBACKUP,FRECOVER,SDOWN
When I execute from /home/cmsoper the massage is :-
[cmsprod,cmsoper,ORCL,/home/cmsoper]>/usr/local/sbin/visudo
/usr/local/sbin/visudo: /usr/local/etc/sudo/sudoers: Permission denied
Urgent help is needed
Regards
I am new to sudo and I need help urgently to run sudo. One of our friend help me, but still I am facing problem. Please help me exactly how do define the parameters for sudo. I did the following with the help of Jose.
1. visudo I added the following:-
Cmnd_Alias FBACKUP=usr/sbin/fbackup
Cmnd_Alias FRECOVER=/usr/sbin/frecover
Cmnd_Alias SDOWN=/usr/sbin/shutdown -r now
Host_Alias MYHOSTS=cmsoper
cmsoper (ALL) NOPASSWD:ALL
%cmsoper MYHOSTS=NOPASSWD:FBACKUP,FRECOVER,SDOWN
When I execute from /home/cmsoper the massage is :-
[cmsprod,cmsoper,ORCL,/home/cmsoper]>/usr/local/sbin/visudo
/usr/local/sbin/visudo: /usr/local/etc/sudo/sudoers: Permission denied
Urgent help is needed
Regards
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-15-2004 09:54 PM
06-15-2004 09:54 PM
Re: Help on Sudo
Hi
Not sure about that Host_Alias entry ? - Is cmsoper also your hostname as well as the user ?
Might also be worth leaving the % off of the user line to see if thats causing problems.
Not sure about that Host_Alias entry ? - Is cmsoper also your hostname as well as the user ?
Might also be worth leaving the % off of the user line to see if thats causing problems.
Hats ? We don't need no stinkin' hats !!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-15-2004 10:02 PM
06-15-2004 10:02 PM
Re: Help on Sudo
Hi
This is typing mistake actuall Host is [cmsprod] and [cmsoper] is user. I did removed % and tried, same problem permission denied.
This is typing mistake actuall Host is [cmsprod] and [cmsoper] is user. I did removed % and tried, same problem permission denied.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-15-2004 10:27 PM
06-15-2004 10:27 PM
Re: Help on Sudo
Hi again,
Why you have jumped from the original posted request; http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=613657
Have you done the last steps indicated indicated? Pls check!
By the way, % mean a group, for this you must have a group into /etc/group containing users to give privileges.
Rgds.
Why you have jumped from the original posted request; http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=613657
Have you done the last steps indicated indicated? Pls check!
By the way, % mean a group, for this you must have a group into /etc/group containing users to give privileges.
Rgds.
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 2025 Hewlett Packard Enterprise Development LP