Operating System - HP-UX
1835066 Members
2350 Online
110073 Solutions
New Discussion

HP/UX 11.0 and path statement

 
Lane Frazier_1
Occasional Contributor

HP/UX 11.0 and path statement

Hello Folks,

I'm running HP/UX 11.0 with HP Openview NNM 6.1

Currently any user that logs in(always with CDE) cannot execute the ovw
command unless he first switches to the /opt/OV/bin directory where the ovw
command is.

I've been trying to make sense of all the .profile and .dtprofile .login stuff
and its all rather confusing...I'm concerned with experimenting with this
because I don't want to mess CDE up

When I log in with my (non-root) userid and do a more .profile I can see the
/opt/OV/bin in the path path...yet when I do an echo $PATH it is not there.

Is the reason for this because of .dtprofile
statement DTSOURCEPROFILE="true" is still commented out?

All I really want to do is get my users logged in throught CDE and have them be
able to start an openview (read-only) session.

I'd appreciate your help getting this done. Thanks
3 REPLIES 3
Randy Mather
Frequent Advisor

Re: HP/UX 11.0 and path statement

add the path to /etc/PATH file
Lane Frazier_1
Occasional Contributor

Re: HP/UX 11.0 and path statement

Let me see if I can try this again. Sorry I could not figure out how to reply
to my previous post.

I have some Openview files that every userid needs to have access to. For
example These files are in /opt/OV/bin

Every user uses the Posix shell and logs in with CDE. I've found that the
combination of all the .profiles/.dtprofiles along with CDE very confusing.


Simply stated I want to put these Openview files in each individual users
path without worry about messing up his CDE environment to th epoint where they
can't log in. I need a "safe" way to update the path until I can figure out
what's really happening.

A previous repley had stated to update the path in
/etc/PATH

Sounded good except that this file is read only even with the root userid. How
do I update this file...Do I have to be in single user mode to do it.


I've found making this simple change way more difficult than it needs to be.

Thanks in advance for your time.
Alan Riggs_1
Regular Advisor

Re: HP/UX 11.0 and path statement

I personally prefer editing /etc/profile. Just add the line:

PATH=$PATH:/opt/OV/bin

If you wish to edit /etc/PATH, though, simply force the write as root (use :w!
in vi).