- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: getprpw no output
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
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
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-25-2011 06:09 AM
07-25-2011 06:09 AM
Hi,
With a trusted system, I have no output with the command getprpw.
Any suggestion?
Thank's
Solved! Go to Solution.
- Tags:
- getprpw
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-25-2011 08:57 AM
07-25-2011 08:57 AM
Re: getprpw no output
Hi:
Echoing the return code would be very informative:
0 = success
1 = user not privileged
2 = incorrect usage
3 = cannot find the password file
4 = system is not trusted
Otherwise:
If so, what do these show?
# whereis getprpw
# file <path_to_getprpw>
# ls -l <path_to_getprpw>
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-26-2011 01:42 AM
07-26-2011 01:42 AM
Re: getprpw no output
Hi:
# /usr/lbin/getprpw -l root
getprpw displays the user's protected password database settings. This command is available only to the superuser in a trusted system.
# ll -R /tcb/files/auth
# man getprpw
rgs,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-26-2011 06:41 AM
07-26-2011 06:41 AM
Re: getprpw no output
Hi,
echo $?:
126
whereis getprpw:
getprpw: /usr/lbin/getprpw /usr/share/man/man1m.Z/getprpw.1m
-r-xr-xr-x 1 bin bin 0 Jul 19 15:58 /usr/lbin/getprpw
file /usr/lbin/getprpw
/usr/lbin/getprpw: empty
this command worked before.
I don't know why it's empty.
Regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-26-2011 07:09 AM - edited 07-26-2011 07:19 AM
07-26-2011 07:09 AM - edited 07-26-2011 07:19 AM
Re: getprpw no output
You did not show us the output of "# ls -l <path_to_getprpw>" but I expect it would have said 0 bytes. It's gone missing and you need to restore it from backup or copy it from another, similar server (i.e. same version of HP-UX, roughly the same patch level, etc.)
Correction: I should have said "I missed seeing the ls -l output". Not sure how I missed that!
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-26-2011 07:11 AM
07-26-2011 07:11 AM
Solution
@bouserg wrote:-r-xr-xr-x 1 bin bin 0 Jul 19 15:58 /usr/lbin/getprpw
Hi (again):
And there is the reason for the lack of any output :-)
Someone (as root) or some process running as root, has truncated this binary on July 19. If you have another server with the same, copy it in from there. Otherwise you could look to reinstalling it from either a patch or a fileset. To find where is comes from, do:
# swlist -l file|grep getprpw
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-26-2011 07:32 AM
07-26-2011 07:32 AM
Re: getprpw no output
thank's for your help.
I'll copy it from another server.
Regards
@James R. Ferguson wrote:
@bouserg wrote:-r-xr-xr-x 1 bin bin 0 Jul 19 15:58 /usr/lbin/getprpw
Hi (again):
And there is the reason for the lack of any output :-)
Someone (as root) or some process running as root, has truncated this binary on July 19. If you have another server with the same, copy it in from there. Otherwise you could look to reinstalling it from either a patch or a fileset. To find where is comes from, do:
# swlist -l file|grep getprpw
Regards!
...JRF...
@James R. Ferguson wrote:
@bouserg wrote:-r-xr-xr-x 1 bin bin 0 Jul 19 15:58 /usr/lbin/getprpw
Hi (again):
And there is the reason for the lack of any output :-)
Someone (as root) or some process running as root, has truncated this binary on July 19. If you have another server with the same, copy it in from there. Otherwise you could look to reinstalling it from either a patch or a fileset. To find where is comes from, do:
# swlist -l file|grep getprpw
Regards!
...JRF...