- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: sudo error
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
тАО02-21-2006 06:13 AM
тАО02-21-2006 06:13 AM
sudo error
i have a 2 for 1, i have added a user to the sudoers file. when the user tries to perform sudo -s, the get the message that user is not on the user is not in sudoers file.
in addition if i am logged in as root, the screen gets the following message:
Feb 21 14:08:12 wally sudo: username : user NOT in sudoers ; TTY=ttyp3 ; PWD=/home/username ; USER=root ; COMMAND=/usr/bin/sh
thanks in advance.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-21-2006 06:19 AM
тАО02-21-2006 06:19 AM
Re: sudo error
Did you save the changes and exit? Otherwise the changes are on the temp file.
Ensure that there is no an unfinished line, missing backslash or comma.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-21-2006 06:44 AM
тАО02-21-2006 06:44 AM
Re: sudo error
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-21-2006 08:16 AM
тАО02-21-2006 08:16 AM
Re: sudo error
Did you save the file before exiting? Use #sudo -l and verify the user is properly authenticated in suoders file what commands he can execute
Regards,
Sunil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-21-2006 08:31 AM
тАО02-21-2006 08:31 AM
Re: sudo error
Use visudo to make modifications to the sudoers file.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-21-2006 09:14 PM
тАО02-21-2006 09:14 PM
Re: sudo error
you must use visudo rather than vi.
and don't forget to save your sudoers file.
be sure that add your user to the User_Alias
# User alias specification
User_Alias EXAMPLE = user1, user2
regards,
mustafa
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-21-2006 10:28 PM
тАО02-21-2006 10:28 PM
Re: sudo error
sudo's configuration file, i mean sudoers can be in different paths according to O.S or version. you probably changed another sudoers file. if you use visudo instead of directly editing the file, no problem occurs. because visudo command edits the exact configuration file.
Kenan.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-22-2006 12:16 AM
тАО02-22-2006 12:16 AM
Re: sudo error
thanks in advance.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-22-2006 02:02 AM
тАО02-22-2006 02:02 AM
Re: sudo error
user ALL = (ALL) /sbin/sh
first "ALL" may be replaced by hostname
second by the user you want to run as.
on the other hand, if you let someone open a root shell, sudo loose its importancy. because you can't log the user anymore.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-22-2006 03:11 AM
тАО02-22-2006 03:11 AM
Re: sudo error
made the necessary changes and wala, it worked,
thanks as always.