[ale] PATH

James P. Kinney III jkinney at localnetsolutions.com
Fri Jan 11 21:45:40 EST 2002


This will also add the */sbin paths to every user. It would be better to
add it in the roots .csh

You could add it with some logic in /etc/profile:

if [ $USER == "root" ]; then
PATH=/sbin:/usr/sbin:/usr/local/sbin:$PATH
;
else PATH=....;
fi

Don't trust my syntax on this, but the logic will work.

On Fri, 2002-01-11 at 18:13, David Brooks wrote:
> The root user on a Solaris machine typically doesn't have bash as it's
> login shell (nor would I advise changing it from csh).
> 
> Add this line above the line that says "export LOGNAME PATH" in
> /etc/profile:
> 
> PATH=/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/usr/ccs/bin
> 
> Hope this helps.
> 
> -Dave
> 
> On Fri, 2002-01-11 at 16:56, Jim Philips wrote:
> > You export the path in your .bashrc. Then the next time you log in, it
> > will be there.
> > 
> > 
> > On Fri, 2002-01-11 at 16:48, Dean wrote:
> > > Ok . this is a solaris question.  How would I change the path for the
> > > root user so that when I boot up I get the some path without having to
> > > export it every time in the shell?  I thought it would be located in
> > > /etc/default/login . but this is the wrong place to configure it .?
> > >  
> > > Thanks in advance..
> > 
> > 
> > 
> > ---
> > This message has been sent through the ALE general discussion list.
> > See http://www.ale.org/mailing-lists.shtml for more info. Problems should be 
> > sent to listmaster at ale dot org.
> > 
> > 
> -- 
> david a. brooks
> * systems administrator
> * stayonline.net
> * voice: .. 770/933-0600 x217
> * email: .. db at stayonline.net
> * :wq!
> 
> 
> ---
> This message has been sent through the ALE general discussion list.
> See http://www.ale.org/mailing-lists.shtml for more info. Problems should be 
> sent to listmaster at ale dot org.
-- 
James P. Kinney III   \Changing the mobile computing world/
President and COO      \          one Linux user         /
Local Net Solutions,LLC \           at a time.          /
770-493-8244             \.___________________________./

GPG ID: 829C6CA7 James P. Kinney III (M.S. Physics)
<jkinney at localnetsolutions.com>
Fingerprint = 3C9E 6366 54FC A3FE BA4D 0659 6190 ADC3 829C 6CA7 



 PGP signature




More information about the Ale mailing list