- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: editing sudo file
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-24-2009 02:37 AM
тАО11-24-2009 02:37 AM
editing sudo file
Permission denied to 127.0.0.1
cmviewcl: Cannot view the cluster configuration: Permission denied.
This user doesn't have access to view the cluster configuration.
------------------------------------
$ sudo /usr/sbin/cmviewcl
ksh: sudo: not found
----------------------------------------
i added entry for operator to do cluster status ,, but getting above msg
/>cat /etc/sudoers
User_Alias ADMINS = yal, bhav, murali
root ALL = (ALL) ALL
ADMINS ALL = NOPASSWD: ALL
operator ALL = NOPASSWD: /usr/lbin/modprpw , /usr/lbin/getprpw , /opt/OV/bin/OpC/ovc , /usr/sbin/cmviewcl
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-24-2009 02:56 AM
тАО11-24-2009 02:56 AM
Re: editing sudo file
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-24-2009 02:56 AM
тАО11-24-2009 02:56 AM
Re: editing sudo file
wht version of SG are you running,
you can ahve a look at the following parameters
USER_NAME
USER_HOST
USER_ROLE
in the cluster config file/package config file.
regards
sujit
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-24-2009 03:03 AM
тАО11-24-2009 03:03 AM
Re: editing sudo file
HI madhu
just create a soft link of sudo and then try
#ln -s /usr/local/bin/sudo /usr/bin/sudo
As sujit worte, you can specefied the user name in configuraion file also
Regards
Viney Kumar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-24-2009 03:05 AM
тАО11-24-2009 03:05 AM
Re: editing sudo file
refer to page 226
http://docs.hp.com/en/B3936-90140/B3936-90140.pdf
USER_ROLE
USER_HOST
USER_NAME
you shall need to do a cmcheckconf and cmapplyconf to effect these changes.
regards
sujit
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-24-2009 03:15 AM
тАО11-24-2009 03:15 AM
Re: editing sudo file
a) sudo is in /usr/local/bin, so update your PATH env variable to include /usr/local/bin
b) what happens when you run
visudo -c ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-24-2009 05:02 AM
тАО11-24-2009 05:02 AM
Re: editing sudo file
with "newer" version of SG you can define roles for non-root users to enable them to do (not full blown) cluster and package administration to varying degrees.
The role "monitor" already entitles to run the cmview* commands.
You could check if you get some output on e.g.
# cmviewconf|grep -iE '(access polic|user (name|host|role):)'
As for sudo
> $ sudo /usr/sbin/cmviewcl
as which user are you running this?
I assume as "operator" according to your sudoers entries.
Also as others already mentioned,
the sudo command is not in the user's ksh PATH.
Have you compiled your sudo installation from the sources?
Had you installed the Sudo package from the Internet Express bundle a symlink would have been created to point from /usr/bin/sudo like
# ll /usr/bin/sudo
lrwxr-xr-x 1 root sys 27 Mar 28 2006 /usr/bin/sudo -> /opt/iexpress/sudo/bin/sudo
You should also create such a symlink as root after you have found the location of your sudo's executable.
# find /usr /opt -type f -name sudo