- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- sudo for route adds
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
04-26-2002 12:23 PM
04-26-2002 12:23 PM
I am trying to configure sudo so a Net admin can do a route add. I installed sudo version 1.6.2b1 and used the visudo command to try to configure it.
It looks like this:
# Host alias specification
Host_Alias LUPUS = lupus
# User alias specification
User_Alias OPERATOR = rleon2
# Cmnd alias specification
# User privilege specification
root ALL=(ALL) ALL
OPERATOR LUPUS = /usr/sbin/route
rleon2 ALL=/usr/sbin/route
But when I log in as rleon2 to test and see if i can do a route add. I get the error
Sorry, sudo must be setuid root.
What am i missing?
thanks,
- Richard
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-26-2002 12:30 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-26-2002 12:31 PM
04-26-2002 12:31 PM
Re: sudo for route adds
Check the mode bit of sudo.
It should ---s--x--x.
Otherwise, do this to set setuid as root.
# chmod 4111 sudo
Hai
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-26-2002 12:32 PM
04-26-2002 12:32 PM
Re: sudo for route adds
I did
#chmod u+s sudo
and now it works it gives me
We trust you have received the usual lecture from the local System
Administrator. It usually boils down to these two things:
#1) Respect the privacy of others.
#2) Think before you type.
Password:
usage: add destination [netmask mask] gateway [metric]
..
How do I take that message off?
And in visudo
do i have to specify each augument?
- Richard
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-26-2002 12:32 PM
04-26-2002 12:32 PM
Re: sudo for route adds
This certainly seems a permissions problem with either you 'sudo' binary or the /etc/sudoers file itself.
The permissions on /etc/sudoers should be
440 root root
I am sure someone can find the correct permission on the binary (working at home)
Cheers
~Michael~
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-26-2002 12:40 PM
04-26-2002 12:40 PM
Re: sudo for route adds
No you don't have to specify all arguments in /etc/sudoers file.
operator can run it like
sudo /usr/sbin/route arguments.....
Sachin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-26-2002 12:56 PM
04-26-2002 12:56 PM
Re: sudo for route adds
http://www.courtesan.com/sudo/man/sudoers.html
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-26-2002 01:00 PM
04-26-2002 01:00 PM
Re: sudo for route adds
Richard
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-29-2002 09:44 AM
04-29-2002 09:44 AM
Re: sudo for route adds
Ed