- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Swlist Access for a Regular 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
06-13-2007 03:19 AM
06-13-2007 03:19 AM
I have a service account that needs to collect HP software information locally on a box. When I run /usr/sbin/swlist I get:
$ /usr/sbin/swlist
# Initializing...
# Contacting target "server"...
WARNING: Security access denied to file "//var/adm/sw/products/INDEX".
ERROR: "nch5k01a:/": You do not have permission for this operation.
The depot owner, system administrator, or alternate root owner
may need to use the "swreg" or "swacl" command to give you
permission. Or, to manage applications designed and packaged
for nonprivileged mode, see the "run_as_superuser" option in
the "sd" man page.
What I'd like to do is set the ACL's so that this one user can run an swlist and nothing else. I've been reading through the SD man page and ACL information but am not having much luck.
Best Regards,
Tom
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-13-2007 03:33 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-13-2007 03:36 AM
06-13-2007 03:36 AM
Re: Swlist Access for a Regular User
I thought there was a way to set an ACL on swlist list only that would allow a specified non-root user access to the command locally.
Thanks for the help.
Tom
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-13-2007 03:37 AM
06-13-2007 03:37 AM
Re: Swlist Access for a Regular User
Wrong approach. Sudo, the port available on http://software.hp.com is the way to go.
Give the user swlist and that should be sufficient.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-13-2007 06:17 AM
06-13-2007 06:17 AM
Re: Swlist Access for a Regular User
I appreciate the help and advice,
Tom
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-13-2007 06:29 AM
06-13-2007 06:29 AM
Re: Swlist Access for a Regular User
Regards, Kaps
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-13-2007 06:54 AM
06-13-2007 06:54 AM
Re: Swlist Access for a Regular User
http://itrc.hp.com/service/cki/docDisplay.do?docId=pdb_na-hpsbux0105_150-1
It is possible to restore the ability to
perform swlist commands to specific
individual users or groups. For example,
to give user "dave" on remote host
"admin1" the ability to run "swlist"
against the local system, execute the
command:
# swacl -l root -M user:dave@admin1:r
Bob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-13-2007 04:04 PM
06-13-2007 04:04 PM
Re: Swlist Access for a Regular User
By default I can do it on my system.
Does your swlist have the SUID bit set?
-r-sr-xr-x
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-13-2007 04:05 PM
06-13-2007 04:05 PM
Re: Swlist Access for a Regular User
By default I can do it on my system.
Does your swlist have the SUID bit set?
-r-sr-xr-x
(I guess not, I get a different error for that.)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-13-2007 05:41 PM
06-13-2007 05:41 PM
Re: Swlist Access for a Regular User
The swacl man page documents how to open certain capabilities for specified users.
Bob