Operating System - HP-UX
1833445 Members
2920 Online
110052 Solutions
New Discussion

How to check if a system is trusted or not?

 
SOLVED
Go to solution
dictum9
Super Advisor

How to check if a system is trusted or not?

hp-ux 11.23 presumably

ten_points

14 REPLIES 14
A. Clay Stephenson
Acclaimed Contributor
Solution

Re: How to check if a system is trusted or not?

Check to see if you have a /tcb directory. The system does it via the iscomsec() system call which checks to see if /tcb/files/auth/system/default exists so this is really the test that you should do. Man 2 iscomsec for details.
If it ain't broke, I can fix that.
IT_2007
Honored Contributor

Re: How to check if a system is trusted or not?

check /etc/passwd for 2nd field and if it is * then it is trusted.

check /tcb/files/auth/system directory.
DCE
Honored Contributor

Re: How to check if a system is trusted or not?



If the directory /tcb exists, it is probably trusted.

also, the /etc/passwd file will not contain any encrypted passwords.

Finally, SAM auditing asecurity will not work unless the system is trusted

A. Clay Stephenson
Acclaimed Contributor

Re: How to check if a system is trusted or not?

Wrong Answer:
check /etc/passwd for 2nd field and if it is * then it is trusted

This means nothing. '*' in the passwd hash field of /etc/passwd, by convention, means that the account is locked on an untrusted system. At best '*' means that the system MIGHT be trusted.
If it ain't broke, I can fix that.
dictum9
Super Advisor

Re: How to check if a system is trusted or not?

In a nutshell

has /tcb directory = trusted


does not have /tcb directory NOT trusted

Correct?


A. Clay Stephenson
Acclaimed Contributor

Re: How to check if a system is trusted or not?

The nutshell is almost always correct; however, do the same test that the system does and check to see if /tcb/files/auth/system/default exists and you and the OS will always agree that the system is trusted or not.

Again, man 2 iscomsec and READ it this time.
If it ain't broke, I can fix that.
dictum9
Super Advisor

Re: How to check if a system is trusted or not?

OK, that's pretty straightforward.


sajeer_2
Regular Advisor

Re: How to check if a system is trusted or not?



type
/usr/lbin/getprdef -r

or

Try man iscomsec (to get further information)


sajeer
sajeer_2
Regular Advisor

Re: How to check if a system is trusted or not?

Bill Hassell
Honored Contributor

Re: How to check if a system is trusted or not?

Or with a shell command:

[ -f /tcb/files/auth/system/default ] && echo "System is Trusted" || echo "No, system is not Trusted"


Bill Hassell, sysadmin
inventsekar_1
Respected Contributor

Re: How to check if a system is trusted or not?

/usr/lbin/getprdef -r

in a not trusted system(11.11),
"System is not trusted."
in a trusted system(11.23),

#/usr/lbin/getprdef -r
NO, 0, 8, 182, 196, -1, 7, YES, YES, NO, NO, NO, YES, 3, 10, 2, 0

i tried man getpredef
no manuals.

1)then how to find out the other options for getpredef??
2.)what information is getprdef returns? what is meant by the above output?
Be Tomorrow, Today.
inventsekar_1
Respected Contributor

Re: How to check if a system is trusted or not?

Hi /etc,

if the system is already converted to trusted one,

# /usr/lbin/tsconvert
System has already been converted.

if the system is not trusted,
# /usr/lbin/tsconvert
this command will convert the system into trusted one. (be careful. it wont ask yes or no before converting)
some method is there to unconvert. i will post that soon.
Be Tomorrow, Today.
nibble
Super Advisor

Re: How to check if a system is trusted or not?

use the command "tsconvert" or verify the /etc/passwd, it should have a * in the password field if its trusted already
Jaime Bolanos Rojas.
Honored Contributor

Re: How to check if a system is trusted or not?

Simplest way to me, check for the present of a /tcb directory, if it exists, then the system should be trusted.

Regards,

Jaime.
Work hard when the need comes out.