- 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 07:23 AM
10-07-2008 07:23 AM
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-07-2008 07:26 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-07-2008 07:31 AM
10-07-2008 07:31 AM
Re: How to give root access to a user
sudo but need to download it or recompile
RBAC
javascript:openExternal('http://h20392.www2.hp.com/portal/swdepot/displayProductInfo.do?productNumber=AccessControl')
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-07-2008 07:39 AM
10-07-2008 07:39 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 07:41 AM
10-07-2008 07:41 AM
Re: How to give root access to a user
su(switch user)is the preferred option. If you change the UID to 0 it has lot of security issues.
You can install and use SUDO alternatively.
Ganesh.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-07-2008 07:48 AM
10-07-2008 07:48 AM
Re: How to give root access to a user
If you know what exact will be executed from cmd line use sudo.
If you want to restrict to add/modify/delete users, kernel tunning - use restricted SAM.
regards,
ivan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-07-2008 07:50 AM
10-07-2008 07:50 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 07:53 AM
10-07-2008 07:53 AM
Re: How to give root access to a user
What happens when the user tries to run those commands?
Is the user typing 'useradd' and getting an error 'sh: useradd: not found'? If so, then they just need to specify the full path to the command ('/usr/sbin/useradd').
Or is the user getting a 'permission denied' message when attempting to run the command?
Actual messages received when trying the command will help immensely.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-07-2008 08:14 AM
10-07-2008 08:14 AM
Re: How to give root access to a user
Permission Denied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-07-2008 08:27 AM
10-07-2008 08:27 AM
Re: How to give root access to a user
regards,
ivan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-07-2008 08:28 AM
10-07-2008 08:28 AM
Re: How to give root access to a user
uid=110(test1) gid=103(admin)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-07-2008 08:30 AM
10-07-2008 08:30 AM
Re: How to give root access to a user
$su test1
Password:
$ /usr/sbin/useradd
Permission Denied
$ id test1
uid=110(test1) gid=103(admin)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-07-2008 08:38 AM
10-07-2008 08:38 AM
Re: How to give root access to a user
You can't do root commands unless you ARE root or you invoke su, sudo or whatever RABC needs to do these commands.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-07-2008 08:38 AM
10-07-2008 08:38 AM
Re: How to give root access to a user
This user (user1) cannot add userr by default - he has not aproppriate permission to edit /etc/passwd, /etc/group ... files.
regards,
ivan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-07-2008 08:42 AM
10-07-2008 08:42 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 08:44 AM
10-07-2008 08:44 AM
Re: How to give root access to a user
gravh ALL=(ALL) PASSWD: ALL
The user has to login using his own a/c and type sudo su and he will be prompted for his own password once more.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-07-2008 08:48 AM
10-07-2008 08:48 AM
Re: How to give root access to a user
I suggest you look here:
http://docs.hp.com/en/5991-8678/ch03s05.html?jumpid=reg_R1002_USEN
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-07-2008 08:49 AM
10-07-2008 08:49 AM
Re: How to give root access to a user
The easiest way will be to use sudo or restricted sam. Running and installing both RBAC/sudo is not mandatory. Sudo is easiest to install and manage.
regards,
ivan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-07-2008 08:49 AM
10-07-2008 08:49 AM
Re: How to give root access to a user
a user which can call useradd can create his own root account.
So rbac is the best solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-07-2008 08:51 AM
10-07-2008 08:51 AM
Re: How to give root access to a user
Ok, so you've installed RBAC. Either you've not configured it, or the user is *not properly* configured.
I suggest you look here:
http://docs.hp.com/en/5991-8678/ch03s05.html?jumpid=reg_R1002_USEN
also, configuring another user with root uid is asking for trouble, especially if you forget when removing the user...it is a highly effective way of trashing the system however.
either configure rbac, or let the user "su" to root (he will need the password), or use "sudo" as described above
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-07-2008 08:59 AM
10-07-2008 08:59 AM
Re: How to give root access to a user
sudo.sudo-RUN
# pwd
/etc
# ll sudo*
sudo* not found
I have instal;led sodu but i cannot find that directory
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-07-2008 09:07 AM
10-07-2008 09:07 AM
Re: How to give root access to a user
sudo.sudo-RUN
# pwd
/etc
# ll sudo*
sudo* not found
I have instal;led sodu but i cannot find that directory "
Which directory are you looking for?
try "which sudo" or "whence sudo" which will tell you where the executable resides (if thats what you are looking for)
I take it that you've abandoned the idea of using RBAC?
If you need to configure the "sudoers" file, then use the "visudo" command. Using normal vi won't work.
as always,"man sudo" might be instructive...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-07-2008 09:08 AM
10-07-2008 09:08 AM
Re: How to give root access to a user
use visudo command (as root) to add entry for desired user - see above example
gravh ALL=(ALL) PASSWD: ALL
this will add superuser access to user gravh after typing user passwords.
After tests better replace last ALL with list of commands: useradd, userdel with full path.
regards,
ivan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-07-2008 09:08 AM
10-07-2008 09:08 AM
Re: How to give root access to a user
> I have instal;led sodu (sic) but i cannot find that directory.
Well, if you obtained 'sudo' from the HP-UX Porting center, then you should know that the installation occurs in '/usr/local'.
If you don't know where something is, you can always 'find' it:
# find / -name "sudo*"
...would be a brute force search everywhere!
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-07-2008 09:11 AM
10-07-2008 09:11 AM
Re: How to give root access to a user
no sudo in /usr/sbin /usr/bin /usr/ccs/bin /usr/contrib/bin /usr/contrib/Q4/bin
/opt/perl/bin /opt/hparray/bin /opt/nettladm/bin /opt/fcms/bin /opt/sas/bin /opt
/wbem/bin /opt/wbem/sbin /opt/resmon/bin /usr/contrib/kwdb/bin /usr/bin/X11 /opt
/graphics/common/bin /opt/sfm/bin /opt/hpsmh/bin /opt/upgrade/bin /usr/contrib/b
in/X11 /opt/gvsd/bin /sbin /home/root
# whence sudo
#
Could u give me an example of configuring a user "sam" so that I can configure the list of users I have....
thank you