- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: swpackage for non-root users
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-29-2004 08:02 PM
09-29-2004 08:02 PM
How can I run swpackage command as a non-root user?.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-29-2004 08:19 PM
09-29-2004 08:19 PM
Re: swpackage for non-root users
Or you can use sudo and give permission on SD related caommand to user.
Sunil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-29-2004 08:50 PM
09-29-2004 08:50 PM
Re: swpackage for non-root users
Where can I get the sudo?.
can I know what changes need to be done through SAM?.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-29-2004 09:12 PM
09-29-2004 09:12 PM
Re: swpackage for non-root users
you can download sudo from http://software.hp.com
For sam.
login as root
start sam -r
select the user whom you want to give SD manager access
press OK
now it will show the different area's go to SD-UX select it and go to Action and enable access.
Again go to Action and save prevledge
now exit from sam
login as user
and run sam, you will get the SD-UX menu here and you can install pakage from here
sam may not be in path of user so run /usr/sbin/sam
Sunil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-29-2004 09:43 PM
09-29-2004 09:43 PM
Re: swpackage for non-root users
We can use non-root to package the file-sets with permission of same userid there.
Files created by SD have the uid and gid of the invoking user, and the mode of created files is set according to the invoking user's umask.
SD ACLs are ignored.
See swpackage.1m man page on run_as_superuser=true option.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-29-2004 10:56 PM
09-29-2004 10:56 PM
Re: swpackage for non-root users
The swacl should work:
Did you try:
#swacl -l root -M user:
Gideon
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-30-2004 03:44 AM
09-30-2004 03:44 AM
Re: swpackage for non-root users
1. enabling the permission through "sam -r" option. but it didn't work.(note: it didn't have any option for swpackage)
2. I tried running "swacl" command but that also failed.
3. I tried "-x run_as_superuser=true" but that also failed.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-30-2004 03:50 AM
09-30-2004 03:50 AM
Re: swpackage for non-root users
SWACL will work there.
user $ swacl -l root
It will prompt error ( permission error )
Do this on super user as,
root # swacl -l host -M user:
root # swacl -l root -M user:
Now you can try on acl setted user as,
user $ swacl -l root
It will work now.
It will be having access to do this. Normally it will not given there. Now you are able to create package / install there.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-08-2004 05:18 AM
11-08-2004 05:18 AM
Re: swpackage for non-root users
swacl -l root -M user:
swacl -l host -M user:
Now I am able to run the swpackage as a non-root user. But when the package is created, it is created with owner:group as root:sys. How can I change this behaviour?.
I want the package to be created in my userid:groupid permissions.
- prabu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-08-2004 07:15 AM
11-08-2004 07:15 AM
SolutionAssigning points will motivate others to respond and indicate the usefullness of an answer to others reading your threat.
The answer to your question.. i do not know why you would like the depot/sdpackage file to be owned by any other user. The files in the depot /sdpackage will become of the user/groups specified in the psf file once installed using swinstall. I only use depot files/sdpackages for installation/distribution of software to multiple servers. You do not want users to be able to edit the depotfiles.
Regards,
Gideon
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-08-2004 12:02 PM
11-08-2004 12:02 PM
Re: swpackage for non-root users
swpackage -xmedia_type=tape -s psf @ /home/user/mydepot
You can swlist that depot, or swcopy it to a directory depot for remote installs.
You can also look at the SD docs for "non privledged user"
http://www.software.hp.com/products/SD_AT_HP/information_library.html
A graphical tool for swpackage is available at:
http://software.hp.com/portal/swdepot/displayProductInfo.do?productNumber=SwPkgBuilder