cmdtool doesn't source /.profile or /etc/profile

cmdtool doesn't source /.profile or /etc/profile

Post by Mike Flahert » Wed, 05 May 1999 04:00:00



When I bring up a cmdtool (solaris 2.6) via an X interface on my NT4.0
desktop, I am greeted with a "#" prompt which means that my .profile hasn't
run.  This means that when I login, I have to ". /.profile" and ".
/etc/profile".  However, everything works fine if I am actually working at
the machine.

Any thoughts??

Thanks,
Mike
Westwood, MA

 
 
 

cmdtool doesn't source /.profile or /etc/profile

Post by Joe Durusa » Wed, 05 May 1999 04:00:00


I'm not sure, but it sounds like you are logging in and then starting
cmdtool.  Under those circumstances, cmdtool is not a login shell, and
therefore does not source your .profile.  

Speaking only for myself,

Joe Durusau


> When I bring up a cmdtool (solaris 2.6) via an X interface on my NT4.0
> desktop, I am greeted with a "#" prompt which means that my .profile hasn't
> run.  This means that when I login, I have to ". /.profile" and ".
> /etc/profile".  However, everything works fine if I am actually working at
> the machine.

> Any thoughts??

> Thanks,
> Mike
> Westwood, MA


 
 
 

1. Telnet login doesn't run /etc/profile or $HOME/.profile

Hi,

A minor but irritating problem I'm having with my system (Linux-FT 1.1,
kernel 1.2.13, Pentium 90). When logging in from a remote machine by
telnet (e.g. MS-telnet in Windoze for workgroups), the telnet correctly
logs the user in, complete with starting the right shell etc, but doesn't
run /etc/profile or $HOME/.profile, so the paths, prompts and environment
variables don't get set correctly.

I'm a bit puzzled by telnet logins : they don't seem to be handled by a
getty, so I presume the telnet daemon is responsible for negotiating the
login. So, is this a problem with telnet daemon configuration, or a
compile option, or just not possible ? The telnet and telnetd man pages
are very sparse and don't say anything about this. I also couldn't find
anything in the NET-HOWTO or network configuration guide.

Any advice very gratefully received,

Steve

-----------------------------------------------------------------------------
| Steve Mottram                                                             |
|                                                                           |
| University Department of Anaesthesia  |    Internal Phone : LRI 5694      |
| Leicester Royal Infirmary             |    Phone  :  +44 (0)116 258 5291  |
| Leicester LE1 5WW                     |    Fax    :  +44 (0)116 285 4487  |

|---------------------------------------------------------------------------|
| Witty bit deleted due to budget cuts.                                     |
|---------------------------------------------------------------------------|

2. problem connecting a digital LA-75

3. Konsole doesn't source /etc/profile

4. Floating point exceptions

5. KDE won't start if my .profile or /etc/profile has stty commands

6. International unix?

7. "Screen" prgram: New shells won't read /etc/profile or ~/.profile?

8. : Networked logins

9. ksh not reading /.profile or /etc/profile

10. /etc/profile or $HOME/profile

11. /etc/profile doesn't get read

12. Not reading /etc/profile or .profile

13. rsh xterm -ls -e command doesn't see /etc/profile