- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- diskinfo without root?
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
06-13-2002 02:13 PM
06-13-2002 02:13 PM
I can write a SUID wrapper, but I'd like to know if there are any utilities inherent to HP-UX 11.0 - without opening potential security holes.
Thanks!
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-13-2002 02:51 PM
06-13-2002 02:51 PM
Re: diskinfo without root?
Why not setup 'sudo'? It is really easy and everything can be logged for a user that has only access to specific tasks.
You can get it here:
http://hpux.connect.org.uk/hppd/hpux/Sysadmin/sudo-1.6.2b1/
As an example for 'diskinfo' in the /etc/sudoers file could be:
# Host alias specification
# User alias specification
User_Alias OPS = joe
# Cmnd alias specification
Cmnd_Alias OPS = /usr/sbin/diskinfo
# User privilege specification
OPS ALL=(ALL) ALL
HTH
~Michael~
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-13-2002 02:56 PM
06-13-2002 02:56 PM
Re: diskinfo without root?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-13-2002 03:01 PM
06-13-2002 03:01 PM
Re: diskinfo without root?
Here's a viewpoint only. If you''re dealing with 'diskinfo' and the LVM configuration at large, you probably need/want to be root in the first place. After all, as an administrator do you really want to "sub-out" these kinds of critical tasks?
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-13-2002 06:25 PM
06-13-2002 06:25 PM
SolutionAssuming c2t6d0 ..
$ /etc/lssf /dev/rdsk/c2t6d0|awk '{print $15}'
10/0/15/0.6.0
Take this path and pass it to cstm..
$ echo "sel path 10/0/15/0.6.0;info;wait;infolog
> view
> done
> " | /usr/sbin/cstm > disk-info
Now if you look a the file it has the info you that "kindda" similar to diskinfo output. You just need to extract what you need from the file.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-13-2002 06:41 PM
06-13-2002 06:41 PM
Re: diskinfo without root?
If you want it to be specifically HP-UX, try restricted sam
# /usr/sbin/sam -r
You can put diskinfo in a script with $1 parameter as the disk. Then add the script to sam and subsequently assign user privileges and allowable access to the script in sam.
Your user just needs to run (if /usr/sbin already in PATH):
# sam
Otherwise:
# /usr/sbin/sam
man 1m sam for more information.
Hope this helps. Regards.
Steven Sim Kok Leong
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-14-2002 07:21 AM
06-14-2002 07:21 AM
Re: diskinfo without root?
Especially when it comes to my own fat fingers.
Thanks for the replies. cstm looks like something I need to learn.