- 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-07-2008 09:14 AM
10-07-2008 09:14 AM
Re: How to give root access to a user
sudo.sudo-RUN"
Can't tell from the info posted, but it appears he's got it installed and in his path....
not sure *what* the listing of /etc was supposed to tell us, other that the sudoers file isn't present.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-07-2008 09:17 AM
10-07-2008 09:17 AM
Re: How to give root access to a user
For sam use:
#sam -r
regards,
ivan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-07-2008 09:19 AM
10-07-2008 09:19 AM
Re: How to give root access to a user
Ivan gave you instructions on configuring user "grayh". substitute "sam" for "grayh".
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-07-2008 09:27 AM
10-07-2008 09:27 AM
Re: How to give root access to a user
sh: visudo: not found.
# sudo
sh: sudo: not found.
# man sudo
No manual entry for sudo.
# swlist | grep sudo
sudo 1.6.9p17 sudo
I am not able to do visudo... it pops out with an error
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-07-2008 09:33 AM
10-07-2008 09:33 AM
Re: How to give root access to a user
visudo: /usr/local/sbin/visudo /usr/local/share/man/man1m/visudo.1m
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-07-2008 09:54 AM
10-07-2008 09:54 AM
Re: How to give root access to a user
Could someone give me an example with the user " test " to have root privelages with HP's RABC... when both serve the same perpose.. why are we struggling with sudo..
Can someone give me an expmaple with one user of any name ex "user1"
where i have a user called user1
# roleadm add user1
roleadm: added role user1
#roleadm assign user1 Administrator
roleadm assign done in /etc/rbac/user_role
#roleadm list
root: Administrator
user1: Administrator
Now how can I configure there roles using authadmin... So that the user called "user1" can have root privileges...
plz do not point me to the below link
http://docs.hp.com/en/5992-2395/5992-2395.pdf
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-07-2008 10:30 AM
10-07-2008 10:30 AM
Re: How to give root access to a user
then I guess you didn't install it like you said you did, or that the installation failed.
"Could someone give me an example with the user " test " to have root privelages with HP's RABC... when both serve the same perpose.. why are we struggling with sudo.. "
The only one struggling with sudo appears to be you...
and you started with rbac... then switched trying sudo....
As noted previously, this discusses how to configure the roles and users in RBAC, and gives specific examples:
http://docs.hp.com/en/5991-8678/ch03s05.html?jumpid=reg_R1002_USE
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-07-2008 10:33 AM
10-07-2008 10:33 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-07-2008 10:35 AM
10-07-2008 10:35 AM
Re: How to give root access to a user
/tmp/sudo-1.6.9p17-ia64-11.23.depot
/usr/local/bin/sudo
/usr/local/bin/sudoedit
/usr/local/etc/sudoers.sample
/usr/local/etc/sudoers
/usr/local/doc/sudo
/usr/local/libexec/sudo_noexec.so
/usr/local/share/man/man1m/sudo.1m
/usr/local/share/man/man1m/sudoedit.1m
/usr/local/share/man/man4/sudoers.4
/var/adm/sw/products/sudo
/var/adm/sw/products/sudo/sudo-RUN
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-07-2008 10:43 AM
10-07-2008 10:43 AM
Re: How to give root access to a user
So the 'find' I suggested found your 'sudo' installed in '/usr/local' as the documentation at the Porting Center would have told you...
NOW, do you have '/usr/local' in your PATH ? I would hope you don't since that, for root, is a security weakness. Run with an absolute path.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-07-2008 10:44 AM
10-07-2008 10:44 AM
Re: How to give root access to a user
fix the path and sudo will work...and the setup is described earlier in this thread by Ivan.
Or continue with RBAC and read the docs.
But choose a direction and run with it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-07-2008 10:47 AM
10-07-2008 10:47 AM
Re: How to give root access to a user
/usr/local/bin/sudo
/usr/local/bin/visudo should both work.
the manpages for it probably aren't in your MANPATH if you can't get them to come up using "man sudo"
they are available for review on the internet however.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-07-2008 11:07 AM
10-07-2008 11:07 AM
Re: How to give root access to a user
sh: /usr/local/bin/visudo: not found.
# /usr/local/bin/sudo
sudo: /usr/local/etc/sudoers is zero length
# Oct 7 15:03:45 MAHP05 sudo: root : /usr/local/etc/sudoers is zero length
; TTY=pts/ta ; PWD=/tmp ; USER=root ; COMMAND=/sbin/sh
this is again troubling me with zero length
# ll /usr/local/bin/
total 1664
---s--x--x 2 root root 419684 Jun 30 13:04 sudo
---s--x--x 2 root root 419684 Jun 30 13:04 sudoedit
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-07-2008 11:08 AM
10-07-2008 11:08 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-07-2008 11:23 AM
10-07-2008 11:23 AM
Re: How to give root access to a user
/usr/local/bin/sudoedit /etc/sudoers
and add the information as noted by Ivan. you can substitute any valid login name for "grayh" in his example...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-07-2008 11:26 AM
10-07-2008 11:26 AM
Re: How to give root access to a user
if you refer back to the listing produced by find, you will see a sample that can be used as a base...
also the man pages are there as well.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-07-2008 11:30 AM
10-07-2008 11:30 AM
Re: How to give root access to a user
sudoedit: /usr/local/etc/sudoers is zero length
# Oct 7 15:27:33 MAHP05 sudo: root : /usr/local/etc/sudoers is zero length
; TTY=pts/ta ; PWD=/tmp ; USER=root ; COMMAND=sudoedit /etc/sudoers
and man pages are not working
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-07-2008 12:34 PM
10-07-2008 12:34 PM
Re: How to give root access to a user
/tmp/sudo-1.6.9p17-ia64-11.23.depot
/usr/local/bin/sudo
/usr/local/bin/sudoedit
/usr/local/etc/sudoers.sample
/usr/local/etc/sudoers
/usr/local/doc/sudo
/usr/local/libexec/sudo_noexec.so
/usr/local/share/man/man1m/sudo.1m
/usr/local/share/man/man1m/sudoedit.1m
/usr/local/share/man/man4/sudoers.4
/var/adm/sw/products/sudo
/var/adm/sw/products/sudo/sudo-RUN
install the man pages somewhere in manpath, or fix the manpath to add the one above
run the find again to locate visudo
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-07-2008 08:54 PM
10-07-2008 08:54 PM
Re: How to give root access to a user
>or fix the manpath to add the one above
You can also use -M:
man -M /usr/local/share/man sudo
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-08-2008 05:36 AM
10-08-2008 05:36 AM
Re: How to give root access to a user
# ls
sudoers sudoers.sample
# ll
total 16
-r--r----- 1 root sys 0 Oct 7 13:30 sudoers
-r--r----- 1 root root 715 Jun 30 13:04 sudoers.sample
this sudoers is empty.....
is it always like that...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-08-2008 05:57 AM
10-08-2008 05:57 AM
Re: How to give root access to a user
I can provide the o/p of all the logs you would require for this
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-08-2008 06:05 AM
10-08-2008 06:05 AM
Re: How to give root access to a user
2. cd to / and run "find . -name visudo" to locate the editor
3. follow Ivan's instructions above
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-08-2008 06:21 AM
10-08-2008 06:21 AM
Re: How to give root access to a user
Please edit the file "/usr/local/etc/sudoers " using "vi" and add each users in following format.
vi /usr/local/etc/sudoers
#Username Permissions
gravh ALL=ALL
Regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-08-2008 06:22 AM
10-08-2008 06:22 AM
Re: How to give root access to a user
I have done that..
copied and then find the file which gave the following location
./usr/local/etc/sudoers.tmp
and then added the follwoing lines to it
jack ALL=(ALL)PASSWD:ALL
danial ALL=(ALL)PASSWD:ALL
udmag ALL=(ALL)PASSWD:ALL
parinta ALL=(ALL)PASSWD:ALL
wq!
And then I logged in as a user and exectuetd the following
$ sudo -su
sh: sudo: not found.
$ useradd asdf
sh: useradd: not found.
$
What else should I do
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-08-2008 06:40 AM
10-08-2008 06:40 AM