- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- How to give root access to a user
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
10-08-2008 06:49 AM
10-08-2008 06:49 AM
Re: How to give root access to a user
sh: sudo: not found.
So give the full path to the sudo executable.
$ /usr/local/bin/sudo su -
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-08-2008 06:54 AM
10-08-2008 06:54 AM
Re: How to give root access to a user
>>> sudoers file: syntax error, line 32 <<<
>>> sudoers file: syntax error, line 33 <<<
>>> sudoers file: syntax error, line 34 <<<
>>> sudoers file: syntax error, line 35 <<<
>>> sudoers file: syntax error, line 36 <<<
>>> sudoers file: syntax error, line 37 <<<
sudo: parse error in /usr/local/etc/sudoers near line 32
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-08-2008 06:57 AM
10-08-2008 06:57 AM
Re: How to give root access to a user
Uhhh...
you just went thru the process, so repeat it on the other 30?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-08-2008 06:57 AM
10-08-2008 06:57 AM
Re: How to give root access to a user
Invoke:
# /usr/local/sbin/visudo
Then immediately try to quit out. visudo should warn you about errors in the file. visudo does validation of the file before exiting to make sure it will work.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-08-2008 06:59 AM
10-08-2008 06:59 AM
Re: How to give root access to a user
>>> sudoers file: syntax error, line 32 <<<
>>> sudoers file: syntax error, line 33 <<<
>>> sudoers file: syntax error, line 34 <<<
>>> sudoers file: syntax error, line 35 <<<
>>> sudoers file: syntax error, line 36 <<<
>>> sudoers file: syntax error, line 37 <<<
sudo: parse error in /usr/local/etc/sudoers near line 32
ok...my crystal ball can't see the whats on line 32 of your sudoers file...but its wrong somehow.
did you do the find for visudo or not?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-08-2008 07:01 AM
10-08-2008 07:01 AM
Re: How to give root access to a user
$ /usr/local/bin/sudo su -
We trust you have received the usual lecture from the local System
Administrator. It usually boils down to these three things:
#1) Respect the privacy of others.
#2) Think before you type.
#3) With great power comes great responsibility.
Password:
oracle is not in the sudoers file. This incident will be reported.
$ useradd asd
sh: useradd: not found.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-08-2008 07:06 AM
10-08-2008 07:06 AM
Re: How to give root access to a user
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-08-2008 07:09 AM
10-08-2008 07:09 AM
Re: How to give root access to a user
Well, I would think that would be pretty obvious, but apparently not.
You added other users to the sudoers file, but not oracle. Yet you are now trying to run sudo as the oracle user. That is not going to work.
Add oracle to sudoers and try again.
Also, why do you keep trying to do useradd after running sudo? It is erroring out, so you never become root. Thus useradd won't work.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-08-2008 11:58 AM
10-08-2008 11:58 AM
Re: How to give root access to a user
- « Previous
- Next »