Re: noob PATH question

From: Bill Waddington (william.waddington_at_beezmo.com)
Date: 06/30/05


Date: Wed, 29 Jun 2005 16:29:38 -0700

On Wed, 29 Jun 2005 16:08:19 -0700, Bill Waddington
<william.waddington@beezmo.com> wrote:

>I'm an old guy with a really embarassing newbie question:
>
>Per advice on blastwave.org I am trying to set PATH globally
>by providing PATH and SUPATH in /etc/default/login and
>/etc/default/su.
>
>What I find is that these seem to apply to root logins and
>user su, but _not_ to a user login. Im running SNV_16 and JDS,
>bash for root and users.
>
>Is there really one (or two) place(s) to set PATH, or does it
>move depending on user and shell? In the past I have always
>just fiddled PATH on the fly. I know I can diddle /etc/profile
>and my .profile, but I would like to find a single location and
>be done with it.

Hmmm. I must have had things totally borked yesterday. Today
/etc/default/login is behaving more like advertised, although
someone is tacking /bin:/usr/ucb to the end of paths I set there.

/bin and /usr/ucb are getting added to root and user logins, but
vanish w/su from user or root.

Pardon the noise,
Bill

-- 
William D Waddington
william.waddington@beezmo.com
"Even bugs...are unexpected signposts on
the long road of creativity..." - Ken Burtch


Relevant Pages

  • Re: unable to do su from user to become super user
    ... >> system boots fine multiuser and I can login as root no problem. ... I've been with -CURRENT for years at home and have had no real problems. ...
    (freebsd-questions)
  • Re: questions regarding sh shell
    ... root uses csh on my FreeBSD 5.4-STABLE. ... doing things the way I am used to under bash. ... My systems have csh as root shell, ...
    (comp.unix.bsd.freebsd.misc)
  • Re: root /etc/csh
    ... I would prefer to have bash also when working as root. ... Unfortunately, sudo -i is not a substitute for su -l, as sudo tries to be more ... $ echo $MAIL ...
    (freebsd-questions)
  • Re: questions regarding sh shell
    ... > Giorgos Keramidas wrote: ... > Especially as I already have bash installed. ... > things when I got stuck with my shell, and I did the same while I used csh. ... > Besides, for what I am using root, sh is quite adequate. ...
    (comp.unix.bsd.freebsd.misc)
  • Re: bash as login shell
    ... > I would like to change the login shell to bash for both root and my ... but no explicit choice for bash occurs in the drop down list on ... > account login seems to proceed normally to a functioning bash shell. ... For the root user, yes. ...
    (comp.unix.sco.misc)