SUMMARY ps -ef shows "not sourcing .profile"/QUESTION: Setting variable for all users.

From: Mark Fergusson (mferg@hal.ddntl.didata.co.za)
Date: Fri May 15 1998 - 07:40:36 CDT


Thanks for the replies. I've included the mail from Andrew Chan which
gives some other options.

The general response is that .dtprofile must be edited setting
DTSOURCEPROFILE=true.

This however did not solve my problem. Linking my .profile to
.bash_profile as suggested by Andrew prevented my CDE from logging in
for that user ?

Question:
Where can I set a variable so that it applies to all users, especially
scripts run in rc2.d etc.
I'd rather set it in one place and know it has been set and will apply,
then edit different users profiles. I tried setting it in
/etc/default/login but this didn't seem to work ?

Thanks in advance.

--
_____________________________________________
Mark Fergusson: mferg@hal.ddntl.didata.co.za
Dimension Data:
PO Box 236, Pavillion, 3611, South Africa
(+27)-204-8424 (Work)
(+27)-204-8590 (Fax)
082-771-8519 (Cell)

attached mail follows:


Your problem is probably due to using bash as your shell and using .profile
instead of .bash_profile. If this is the case, you have a few choices.

1. link .profile to .bash_profile. I don't think this will affect regular bash
sessions, and the .bash_profile will be sourced before dtsession is started.

2. You can modify /usr/dt/bin/Xsession. Look around line #645.

3. Put the following in your .dtprofile
        . ${HOME}/.profile

Hope this helps
Andrew

> Date: Thu, 14 May 1998 16:38:41 -0400
> From: Mark Fergusson <mferg@hal.ddntl.didata.co.za>
> To: sun-managers@ra.mcs.anl.gov
> Subject: ps -ef shows "not sourcing .profile"
>
> Hello,
>
> Using Sun Solaris 2.5.1.
>
> I have a problem where a variable that I've assigned in my .profile does
>
> not set when I open a terminal on the machines CDE
> desktop.(DTSOURCEPROFILE=true)
> echo $VARIABLE gives a blank line.
>
> However, if I telnet to the machine, the varaiable is set.
> echo $VARIABLE gives
> MYVARIABLE
>
> Could this be related to:
>
> If I do a ps -ef I get:
> /usr/local/bin/bash -c echo 'not sourcing /export/home/spectrum/.profile
>
> (see / <unable to read the rest>
>
> Any comments will be appreciated. Thanks in advance.
>
> --
> _____________________________________________
> Mark Fergusson: mferg@hal.ddntl.didata.co.za
> Dimension Data:
> PO Box 236, Pavillion, 3611, South Africa
> (+27)-204-8424 (Work)
> (+27)-204-8590 (Fax)
> 082-771-8519 (Cell)
>
>

=-=~=-=~=-=~=-=~=-=~=-=~=-=~=-=~=-=~=-=~=-=~=-=~=-=~=-=~=-=~=-=~=-=~=-=
Andrew Chan Home Work
E-Mail: achan@wilma.net.metrotor.on.ca achan@net.metrotor.on.ca
Phone: (416) 929-8794 (416) 392-8755
Fax: (416) 968-7948 (416) 392-4501
=-=~=-=~=-=~=-=~=-=~=-=~=-=~=-=~=-=~=-=~=-=~=-=~=-=~=-=~=-=~=-=~=-=~=-=



This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:12:40 CDT