How to set PATH variable for all HP-UX users when they login using ssh?

Hello friends,

I need to set PATH variable for all HP-UX users. I tried to implement it using /etc/profile and /etc/sshrc both none of them work.

I don't see sshrc file anywhere.

Please advise!
TIA

/etc/profile is a script file, what's in it and what you did to it may be relevant.

Changes would not be seen until they logout and log back in.

Also, depending on how they login, /etc/profile and other normal login files may not be used. What are they doing?

Thank you Corona688,

I did logout and login again. Users login using ssh (as I mentioned in subject line) to login.

It is working on other OS's (I used /etc/profile many times on Solaris) but not working on HP-UX (this is first time I'm doing) . Just wondering if I need to enable anything so that it gets run when users login?

Logging in how? just 'ssh username@host' or 'ssh username@host command-to-run'? The latter bypasses logins.

Also, what is their shell? If they use csh/tcsh, that's not actually a Bourne shell and cannot use the standard /etc/profile, since that's a Bourne shell script. It has its own special ones.

in your .ssh directory, create a file called environment...
Here is mine:

ant:/home/vbe/.ssh $ ll env*;more environment
-rw-rw-r--   1 vbe        bin            193 Jun  7  2013 environment
# Set up the shell environment:
        TMOUT=0
# Set up the shell variables:
        EDITOR=vi

        #ENV=$HOME/.kshrc
        ENV=$HOME/.profile
HISTFILE=$HOME/.sh_history
#HISTSIZE=18432

The file should contain only variables, anything else will void its usage...