- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Special premissions for using root's commands
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
09-08-2007 10:59 PM
09-08-2007 10:59 PM
Special premissions for using root's commands
i have a user trustable as root, it is for monitoring some things into the servers ...
then, i need to send a report about configuration of the server .. my user id is named "usertrust" and i want he can use the command print_manifest , i know that exists something about to give special permissions ...
the command is as follows:
$ ls -rlt /opt/ignite/bin/print_manifest
-r-xr-xr-x 1 bin bin 40960 Jan 19 2001 /opt/ignite/bin/print_manifest
how change the permissions for being used for other user different to root?
please let me know.
thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-08-2007 11:20 PM
09-08-2007 11:20 PM
Re: Special premissions for using root's commands
You must be the root user to run print_manifest.
You could use sudo, ang give a user admin (root) permissions for some commands.
http://hpux.connect.org.uk/hppd/hpux/Sysadmin/sudo-1.6.8p12/
An other option could be to add a cron entry (say once a week) for print_manifest and the user can copy the output from
# cat /var/opt/ignite/local/manifest/manifest.info
Regards,
Robert-Jan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-09-2007 12:48 AM
09-09-2007 12:48 AM
Re: Special premissions for using root's commands
i know that you have to use something like:
chmod 7777 (4) file_name ... do you know it?
please let me know...
thanks ....
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-09-2007 01:24 AM
09-09-2007 01:24 AM
Re: Special premissions for using root's commands
I covered this is what appears to be your duplicate thread:
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=1159548
Please see my remarks, there.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-09-2007 03:39 AM
09-09-2007 03:39 AM
Re: Special premissions for using root's commands
You can use HP 's Sudo equivalent called RBAC to assign a role to a particular user.
http://h20293.www2.hp.com/portal/swdepot/displayProductInfo.do?productNumber=AccessControl
Check it out!
WK
please assign points
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-09-2007 01:48 PM
09-09-2007 01:48 PM
Re: Special premissions for using root's commands
What you may be referring to is setUID where a program can have the setUID bit turned on to gain root privileges. However, turn on the setUID bit like this:
chmod 4555 /opt/ignite/bin/print_manifest
then have your user run the command and you'll get:
ERROR: You must be the root user to run this program.
which means the program (properly) detects the ordinary user trying to run as root.
There is only one solution and that is to download sudo from HP and use it to give your trusted user access to the print_manifest command.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-09-2007 03:15 PM
09-09-2007 03:15 PM
Re: Special premissions for using root's commands
chmod 4555 /opt/ignite/bin/print_manifest
ERROR: You must be the root user to run this program.
You also need to set the ownership to root:
# chown root:sys /opt/ignite/bin/print_manifest
(I suppose it could still check?)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-10-2007 09:49 AM
09-10-2007 09:49 AM
Re: Special premissions for using root's commands
> You also need to set the ownership to root:
> # chown root:sys /opt/ignite/bin/print_manifest
>
> (I suppose it could still check?)
Oops, forgot that step 'cause I thought it was already owned by root. When print_manifest looks like this:
-r-sr-xr-x 1 root sys 40960 Sep 14 2006 /opt/ignite/bin/print_manifest
then print_manifest can be run by any user.
So, yes it could check but it doesn't. So apparently (on 11.11) print_manifest can indeed be changed to setUID and owned by root which allows anyone to run the program. It appears that all the information is security neutral so I can't think of any precautions except that swverify will likely report this as an exception.
Bill Hassell, sysadmin