Unix/Linux Go Back    


HP-UX HP-UX (Hewlett Packard UniX) is Hewlett-Packard's proprietary implementation of the Unix operating system, based on System V.

From a C++ application how to find if a hpux host is in standard mode or trusted mode

HP-UX


Tags
standard mode, trusted mode

Reply    
 
Thread Tools Search this Thread Display Modes
    #1  
Old Unix and Linux 05-26-2017
einsteinBrain einsteinBrain is offline
Registered User
 
Join Date: Dec 2010
Last Activity: 29 May 2017, 11:32 PM EDT
Posts: 17
Thanks: 10
Thanked 0 Times in 0 Posts
HP From a C++ application how to find if a hpux host is in standard mode or trusted mode

is there a way for my C++ application to find out which mode the hpux OS is running in?

standard mode or trusted mode.
Sponsored Links
    #2  
Old Unix and Linux 05-26-2017
jim mcnamara jim mcnamara is offline Forum Staff  
...@...
 
Join Date: Feb 2004
Last Activity: 24 September 2017, 2:29 PM EDT
Location: NM
Posts: 11,184
Thanks: 561
Thanked 1,094 Times in 1,010 Posts

Code:
/usr/lbin/getprpw -l

can be called from the standard library
Code:
system()


Code:
/.secure/etc/passwd

exists on trusted systems. You can test existence with
Code:
access()

You did not
mention your OS version - so there may be a better approach for it.
The Following User Says Thank You to jim mcnamara For This Useful Post:
einsteinBrain (05-27-2017)
Sponsored Links
    #3  
Old Unix and Linux 05-27-2017
einsteinBrain einsteinBrain is offline
Registered User
 
Join Date: Dec 2010
Last Activity: 29 May 2017, 11:32 PM EDT
Posts: 17
Thanks: 10
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by jim mcnamara View Post
Code:
/usr/lbin/getprpw -l

can be called from the standard library
Code:
system()


Code:
/.secure/etc/passwd

exists on trusted systems. You can test existence with
Code:
access()

You did not
mention your OS version - so there may be a better approach for it.
Thanks jim, I am using 1131 version. Is there a possibility for /.secure/etc/passwd existence when the hpux is converted to standard mode?
    #4  
Old Unix and Linux 05-27-2017
vbe's Unix or Linux Image
vbe vbe is offline Forum Staff  
Moderator
 
Join Date: Sep 2005
Last Activity: 24 September 2017, 4:26 PM EDT
Location: Switzerland - GE
Posts: 6,456
Thanks: 284
Thanked 549 Times in 511 Posts
Not sure because I did once only back more than 15 years... Are you wondering if you could have reminiscence of the tree structure though you have the crypted password in /etc/passwd ? you could have a situation in between ( was an option at one time...) to have password removed and replaced by * and put in /etc/shadow but you cant call that trusted...
Sponsored Links
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Linux More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
DNS service is in maintenance mode. How to bring it back to online mode? vamshigvk475 Solaris 2 10-23-2012 12:19 AM
How to configure the host to dhcp mode papertiger Solaris 1 08-30-2011 05:11 AM
What is the difference between single line mode and multiline mode in Regular expressions? chidhu.anu UNIX for Advanced & Expert Users 3 07-02-2011 12:47 AM
how to distinguish standard system mode or trust system mode Perderabo HP-UX 0 02-07-2009 11:59 PM
PAM Vs Trusted mode in HP-UX wilsonchan1000 UNIX for Dummies Questions & Answers 0 07-26-2004 06:58 AM



All times are GMT -4. The time now is 06:47 PM.