Operating System - HP-UX
1753359 Members
6522 Online
108792 Solutions
New Discussion юеВ

How to detect HPUX mode in "C" program

 
sadat
Advisor

How to detect HPUX mode in "C" program

What is the best way to detect whthere the system is in normal, shadow or trusted mode? Reading the "root" user entry from "/etc/passwd" and seeing if the password field contains a "*" or "x" or password may not help, as someone can copy the root password in "/etc/passwd" from "/etc/shadow"

Thanks in advance.
2 REPLIES 2
Safarali
Valued Contributor

Re: How to detect HPUX mode in "C" program

Hi Sadat
even though you copied passwd entry from shadow file it will not work in trusted system


Regards
Safar
sadat
Advisor

Re: How to detect HPUX mode in "C" program

Sorry..i was not clear..i will copy the password in "/etc/passwd" file from "/etc/shadow" or "/tcb/..." depending on the mode.