It is currently Mon, 30 Mar 2020 23:06:50 GMT

Author Message
 Not reading /etc/profile or .profile
I just got an RS6000 Model 140,
with AIX 4.3.2.

The default shell is 'ksh'.

However, ksh is not reading either
/etc/profile, or .profile.

Is there something I need to do
to make a login shell read the
profile files?


 Fri, 07 Sep 2001 03:00:00 GMT   
 Not reading /etc/profile or .profile
Hello Rumi,

I assume, your RS6000 is configured with CDE login?
Then a file called "~/.dtprofile" is called during login.
It holds a line "DTSOURCEPROFILE=FALSE/TRUE" at the end.
If this variable is set to TRUE, the ~/.profile is sourced too.

The /etc/profile is called by command line login only.

The machines, I am responsible for, have an executable
"/etc/dt/config/Xsession.d/profile" with the following lines:
#! /bin/ksh
for PROFILE in /etc/profile.*
   if test -x $PROFILE
      echo "--- sourcing $PROFILE ..."
      . $PROFILE
We have one /etc/profile.system for system adjustments like HOSTNAME
variable, PS1 prompt variable, and so on...
Further on we have a /etc/profile.blah for every application called blah,
which sets initial PATH for that application, and son on...

That works fine for us, and application administration is dead easy.


Rumi schrieb in Nachricht <>...

 Fri, 07 Sep 2001 03:00:00 GMT   
 Not reading /etc/profile or .profile
That's very unusual.  Is that happening to an ordinary user?  Are your
"r" for world?
Norman Levin
vm/dynAmIX inc.

 Fri, 07 Sep 2001 03:00:00 GMT   
 Not reading /etc/profile or .profile
Set sourceprofile=true in .dtprofile file in your home directory.

 Mon, 10 Sep 2001 03:00:00 GMT   
 Not reading /etc/profile or .profile
It's not clear whether this is for xterms or a console login.

If it's for an xterm make sure it is a login xterm.


"The best defense against logic is ignorance."

 Tue, 11 Sep 2001 03:00:00 GMT   
   [ 5 post ] 

Similar Threads

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

2. root can not edit /etc/hosts or /etc/profile, can not create directory

3. /etc/profile not read by CDE?

4. Why bash not reading /etc/profile on login?

5. /etc/profile or $HOME/profile

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

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

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

9. getting xdm to read /etc/profile and /etc/environment

10. root can not edit /etc/profile or /etc/hosts or make directory

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software