Not Trusted System
To check whether an HP-UX system is trusted or not, you may run the below command:
# /usr/lbin/getprdef -r
System is not trusted.
The output of the above command shows that the system is not a trusted system. Here, I have run the above commands on HP-UX 11.31 system. If an HP-UX system is not trusted then you can’t implement some specific securities on the system like password policy etc.
Trusted System
There are many ways to check an HP-UX system is trusted or not, some are given below:
- If an HP-UX system is trusted then you will get the output like shown below for the above command.
# /usr/lbin/getprdef -r
NO, 0, 8, 182, 196, -1, 7, YES, YES, NO, NO, NO, YES, 3, 10, 2, 0 - Check the system and see if it has a /tcb directory then the system is trusted.
# ll /tcb total 0 drwxrwx--x 3 root sys 96 Aug 25 11:41 files
- Check the second field in the /etc/passwd file, it should be an * for a trusted system.
# cat /etc/passwd root:*:0:3::/:/sbin/sh daemon:*:1:5::/:/sbin/sh bin:*:2:2::/usr/bin:/sbin/sh
Last Updated: September 01, 2020