- Community Home
- >
- Servers and Operating Systems
- >
- Legacy
- >
- Operating System - Tru64 Unix
- >
- Re: i am getting an error when try to run 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
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
тАО12-01-2009 10:37 AM
тАО12-01-2009 10:37 AM
Re: i am getting an error when try to run sudo
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-01-2009 10:41 AM
тАО12-01-2009 10:41 AM
Re: i am getting an error when try to run sudo
user01 hostname=NOPASSWD:ALL
unable to do /usr/local/bin/sudo su -
even when he is in the sudoers file ...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-01-2009 11:13 AM
тАО12-01-2009 11:13 AM
Re: i am getting an error when try to run sudo
hostname# su - user01
hostname> /usr/local/bin/sudo su -
You do not have permission to su root
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-01-2009 11:40 AM
тАО12-01-2009 11:40 AM
Re: i am getting an error when try to run sudo
> tru64 ?
Why ask about Tru64 in an HP-UX forum?
Why ask about "sudo" without giving any info
about which version, how it was built and/or
installed, and/or configured?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-01-2009 12:45 PM
тАО12-01-2009 12:45 PM
Re: i am getting an error when try to run sudo
Don't know, and it really shouldn't matter. I believe that you've an error in the sudoers file. I appears that what you want is (where "hostname" is the actual name of the machine):
user01 hostname = ( root ) NOPASSWD: ALL
(allow user01 to become root, do anything w/o authentication
-- or possibly ----
user01 hostname = ( ALL ) NOPASSWD: ALL
(allow user01 to become anyone, do anything w/o authentication
I don't recommend either. Instead, figure out what "user01" needs to do (as whomever) and give them access to only that....
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-01-2009 12:52 PM
тАО12-01-2009 12:52 PM
Re: i am getting an error when try to run sudo
user01 hostname=(ALL) NOPASSWD:ALL
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-01-2009 01:12 PM
тАО12-01-2009 01:12 PM
Re: i am getting an error when try to run sudo
I added the following on one of my boxes and it works as I described:
l00s7m fc000xsvms1=(ALL) NOPASSWD: ALL
my id (l00s7m) can do "sudo su -" on machine fc000xsvms1 (or anything else) without entering a password.
since you insist on munging the file, I can't tell if you entered the actual word "hostname" or the actual hostname of the machine (it should be the later).
You are using "visudo" to make these changes, right?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-01-2009 01:14 PM
тАО12-01-2009 01:14 PM
Re: i am getting an error when try to run sudo
my id (l00s7m) can do "sudo su -" (or anything else) on machine fc000xsvms1 (only) without entering a password, and I can bdecome any user....
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-01-2009 01:15 PM
тАО12-01-2009 01:15 PM
Re: i am getting an error when try to run sudo
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-01-2009 01:30 PM
тАО12-01-2009 01:30 PM
Re: i am getting an error when try to run sudo
user01 ALL=(ALL) NOPASSWD: ALL
and see what happens...and post the actual error message(s) if any.
all I can tell you for sure is "it works for me" (on multiple platforms)