- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: sd commands (except swlist) failing on permiss...
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
Discussions
Discussions
Forums
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
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
тАО07-31-2009 11:07 AM
тАО07-31-2009 11:07 AM
sd commands (except swlist) failing on permissions
Having trouble executing SD commands on one of my HP-UX systems running HP-UX 11.11. Getting the following error (using swverify in this example):
# /usr/sbin/swverify PHSS_34428
======= 07/31/09 13:32:42 EDT BEGIN swverify SESSION
(non-interactive) (jobid=zrtph0v0-3219)
* Session started for user "root@zrtph0v0".
* Beginning Selection
ERROR: "zrtph0v0:/": You do not have the required permissions to
select this target. Check permissions using the "swacl"
command or see your system administrator for assistance. Or,
to manage applications designed and packaged for nonprivileged
mode, see the "run_as_superuser" option in the "sd" man page.
* Target connection failed for "zrtph0v0:/".
ERROR: More information may be found in the daemon logfile on this
target (default location is
zrtph0v0:/var/adm/sw/swagentd.log).
* Selection had errors.
======= 07/31/09 13:32:42 EDT END swverify SESSION (non-interactive)
(jobid=zrtph0v0-3219)
I do know, from looking through log files, that at one point during an install something went wrong. From that point on, SD commands (other than swlist) seem to fail. Is there a lock file or something that is preventing me from executing SD commands ?
Any help would be greatly appreciated.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-31-2009 11:41 AM
тАО07-31-2009 11:41 AM
Re: sd commands (except swlist) failing on permissions
Did you try to restard swagent?
you may try
/usr/sbin/swagentd -r
Regards,
Sooraj U
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-31-2009 12:24 PM
тАО07-31-2009 12:24 PM
Re: sd commands (except swlist) failing on permissions
Swagentd has been restarted multiple times.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-31-2009 12:41 PM
тАО07-31-2009 12:41 PM
Re: sd commands (except swlist) failing on permissions
Have you checked networking? Some other threads:
http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1343044
http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1336598
http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1140576
http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1071134
http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=251328
http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1343466
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-31-2009 03:02 PM
тАО07-31-2009 03:02 PM
Re: sd commands (except swlist) failing on permissions
Thanks for your replies. I went through all of the links you supplied and none of them apply. I need to repeat that I am unable to execute ANY SD commands except swlist. Even something like swverify to verify the installation of a patch fails with the previously mentioned message. I cannot execute swinstall, swacl, swverify, swcopy, etc.
This restricts my ability to install patches, or anything else for that matter. I am fairly well versed in SD commands, but am pulling my hair out on this one. Is it possible that there is a lock file, or that an INDEX file is corrupt ?
(Thanks and) Regards,
Don
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-31-2009 06:00 PM
тАО07-31-2009 06:00 PM
Re: sd commands (except swlist) failing on permissions
UNIX because I majored in cryptology...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-31-2009 07:00 PM
тАО07-31-2009 07:00 PM
Re: sd commands (except swlist) failing on permissions
If it's not swagentd or networking and swlist works, can you provide this output:
swacl -l root
Are all of the sw* executables hardlinks to the same file?
ll -i /usr/sbin/sw*
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-31-2009 09:13 PM
тАО07-31-2009 09:13 PM
Re: sd commands (except swlist) failing on permissions
I appreciate the interest in this one ... it still has me perplexed. Thank you for the suggestion of swlock, but that file does not exist. As for the output from swacl, unfortunately it reacts the same way as the other sd commands. I have included the output:
# cd /var/adm/sw/products
# ls sw*
sw* not found
# swacl -l root
#
# swacl Installed Software Access Control List
#
# For host: zrtph0v0:/
#
# Date: Sat Aug 1 00:55:51 2009
#
ERROR: You are not authorized to perform the requested operation on
the "root" ACL at "zrtph0v0:/". Depending on whether you are
attempting to list or modify the ACL, you do not have the
required "test" or "control" permission, respectively. (Use
the "id" command to find out the identity information used by
SD to determine your access permissions.)
#
As I mentioned earlier, this all seems to have stemmed from an install that went bad. I believe the system "may" have unexpectedly rebooted during an install (I cannot be sure) and this has corrupted something.
This is where my knowledge of how sd works is limited. Something is now preventing the commands to recognize that they are being executed as root.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-31-2009 09:17 PM
тАО07-31-2009 09:17 PM
Re: sd commands (except swlist) failing on permissions
# ll -i /usr/sbin/sw*
78033 -r-sr-xr-x 11 root bin 2478080 Feb 16 2007 /usr/sbin/swacl
166592 -r-xr-xr-x 1 bin bin 798720 Jun 2 2008 /usr/sbin/swagentd
78183 -r-xr-xr-x 1 bin bin 20480 Sep 7 2004 /usr/sbin/swapinfo
78025 -r-xr-xr-x 1 bin bin 28672 May 13 2004 /usr/sbin/swapon
78033 -r-sr-xr-x 11 root bin 2478080 Feb 16 2007 /usr/sbin/swask
78033 -r-sr-xr-x 11 root bin 2478080 Feb 16 2007 /usr/sbin/swconfig
78033 -r-sr-xr-x 11 root bin 2478080 Feb 16 2007 /usr/sbin/swcopy
78033 -r-sr-xr-x 11 root bin 2478080 Feb 16 2007 /usr/sbin/swinstall
78033 -r-sr-xr-x 11 root bin 2478080 Feb 16 2007 /usr/sbin/swjob
78033 -r-sr-xr-x 11 root bin 2478080 Feb 16 2007 /usr/sbin/swlist
78034 -r-sr-xr-x 2 root bin 1462272 Feb 16 2007 /usr/sbin/swmodify
78034 -r-sr-xr-x 2 root bin 1462272 Feb 16 2007 /usr/sbin/swpackage
78033 -r-sr-xr-x 11 root bin 2478080 Feb 16 2007 /usr/sbin/swreg
78033 -r-sr-xr-x 11 root bin 2478080 Feb 16 2007 /usr/sbin/swremove
78033 -r-sr-xr-x 11 root bin 2478080 Feb 16 2007 /usr/sbin/swverify
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-31-2009 10:24 PM
тАО07-31-2009 10:24 PM
Re: sd commands (except swlist) failing on permissions
How about checking file:
/var/adm/sw/security/secrets