- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- problem in 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
07-16-2008 03:17 AM
07-16-2008 03:17 AM
problem in sudo
i have a HP-UX machine, B.11.11. i want to give some users the sudo priviledges to root. But its not working..
here is the entry for the ready reference
# User alias specification
User_Alias SHIFT=shiftopr
# User privilege specification
SHIFT PROD=SHELL
But when i sudo sh by the user shiftopr, then it give this error :
$ sudo sh
Password:
shiftopr is not in the sudoers file. This incident will be reported.
why this error, when i have made the proper entry in /opt/sudo/etc/sudoers/sudoers file
kindly help
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-16-2008 03:30 AM
07-16-2008 03:30 AM
Re: problem in sudo
i think you should give no_passwd opsion in sudoers file for the user.
thanks,
roy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-16-2008 04:04 AM
07-16-2008 04:04 AM
Re: problem in sudo
Is /opt/sudo/etc/sudoers/sudoers the correct path for the sudoers. May be you have to link as /etc/sudoers.
ln -s /opt/sudo/etc/sudoers/sudoers /etc/sudoers
Did you use visudo, when you edit the file.
rgds.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-16-2008 04:41 AM
07-16-2008 04:41 AM
Re: problem in sudo
what output sudo -l gives?
Change /etc/sudoers for testing to
User_Alias SHIFT=shifto
SHIFT ALL= /bin/su
then type at the cmd prompt
sudo su
or
User_Alias SHIFT=shifto
SHIFT ALL= /bin/sh
then type at the cmd prompt
sudo sh
rgds.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-16-2008 04:44 AM
07-16-2008 04:44 AM
Re: problem in sudo
Logged in as user shiftopr you should be able to execute "sudo -l" and be given a list of commands the user is allowed to run through sudo.
Note, you should never edit the sudoers file directly but use the frontend command visudo exclusively.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-17-2008 10:30 PM
07-17-2008 10:30 PM
Re: problem in sudo
in most of my servers i found sudoers file at
/opt/sudo/etc/sudoers
whereas in some it was at /usr/local/sbin
and in some it resides at /etc/sudoers..
i don't know why it is so..but the best way to remove the confusion is, i guess is to fire
# whereis visudo
visudo: /opt/sudo/sbin/visudo /opt/sudo/man/man1m/visudo.1m
i got this path..and in some servers it is
/usr/local/sbin/visudo
the problem is resolved now..i will close this thread at the end of the day. meanwhile i would definitely like to listen from you all experts something more & interesting, if you have any to inform
Thanks all...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-17-2008 10:50 PM
07-17-2008 10:50 PM
Re: problem in sudo
please not that sudo sh keeps users' environment.
sudo su - changes environent to root.