setting PATH for users logging in via TELNET?

Hi,

I have users that connect to a Solaris9 machine via telnet, only when they run certain commands they get 'command not found'. However, the commands work ok when they login via an Exceed session.

I can only assume that it is because when they are coming in via telnet the shell they enter doesn't have the correct PATH set. When they login thru Exceed they have a PATH set by the .bashrc file.

Is there somewhere i can set PATH so that no matter how they login (or which shell they use) they will avoid these 'command not found errors'.

cheers,

mark.

PS. Is /etc/profile the place to do this?

[643 byte] By [mark-w] at [2007-11-26 10:49:09]
# 1

I think you should set PATH at .profile of user that you want somthing like below

PATH=${PATH}:/usr/opt/SUNWmd/sbin

if you install patch from EISCD ( internal cd from sun) you may have .profile-EIS that will link to profile too , You can add that line in profile file.

Cheer,

sontasj@gablecom at 2007-7-7 3:01:40 > top of Java-index,Solaris Operating System,Solaris Essentials - General Technical Questions...