ibook won't sleep in KDE?

Sean Kelley yellowdog-newbie@lists.terrasoftsolutions.com
Sun, 21 Sep 2003 20:58:23 -0500


/etc/profile is sourced when you login.  If you are logging in as root,
certain things will be done such as adding /sbin to your PATH.

For example, here is a sample of code from your /etc/profile:

# Path manipulation
if [ `id -u` = 0 ]; then
         pathmunge /sbin
         pathmunge /usr/sbin
         pathmunge /usr/local/sbin
fi

It is checking to see if you are ROOT by invoking id -u.  Then
it is adding those directories to your PATH.


   It also is sourced when you login as your username, but since you are 
not root
certain things are not done.

Sean


On Sunday, September 21, 2003, at 06:37  PM, Clinton C.MacDonald wrote:

> Sean:
>
> On Sunday, September 21, 2003, at 05:08  PM, Sean Kelley wrote:
>> If you forget to do a su - and instead just do an su, you can simply 
>> invoke:
>>
>> source /etc/profile
>>
>> to update your path as root.
>
> Thanks for the tip. Could you explain what it means and what it does?
>
> Thanks!
>
> Best wishes,
> Clint
>
> -- 
> Dr. Clinton C. MacDonald | <mailto:clint DOT macdonald AT sbcglobal 
> DOT net>
>
> _______________________________________________
> yellowdog-newbie mailing list
> yellowdog-newbie@lists.terrasoftsolutions.com
> http://lists.terrasoftsolutions.com/mailman/listinfo/yellowdog-newbie