Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 16 Dec 1998 05:52:12 +0000
From:      Brad Waite <brad@wcubed.net>
To:        questions@FreeBSD.ORG
Subject:   Re: Environment..
Message-ID:  <3676E81C.FD9A2D71@wcubed.net>
References:  <36768CF3.8D07950E@wcubed.net>

next in thread | previous in thread | raw e-mail | index | archive | help
Well, apparently not many people care, but in case someone else is
having the same problems I did today, I figured I'd post this.  (Too bad
you can't post directly to the archives.)

Solution:  From /etc, type "cap_mkdb login.conf"

How I arrived there:  Examined su.c, found the login capabilities
functions, hacked together a quick tester program, and found that no
changes to the /etc/login.conf were being passed to the getcap(3)
functions.  I tried "cap_mkdb /etc/login.conf" like the file sez (as I'd
done 2 or 3 times before), but it no worky.  Tried it from /etc and
voila!

-Brad

Brad Waite wrote:
> 
> I asked about this a few hours ago, but didn't get a response, so I'm
> guessing I wasn't making myself clear enough. (Or I had my from: set
> wrong.)
> 
> Okay, I just installed 3.0 on my new server and everything's working
> fine except the environment, specifically the PATH, for the root user.
> 
> $ su -
> Password:
> # echo $PATH
> /root/bin:/bin:/usr/bin:/usr/local/bin
> 
> which is the path set for class 'default'.  When I change the path in
> the 'default' class, and re-su, root's path changes with it.
> 
> However, the root entry in the login.conf looks like this:
> 
> root:\
>         :ignorenologin:\
>         :tc=default:\
>         :path=/usr/bin /bin /usr/sbin /sbin /usr/local/bin
> /usr/X11R6/bin:
> 
> Why does it ignore the 'root' class in the login.conf?  The man page for
> login.conf says that it should only use the default class if a 'root'
> class isn't specified.  I even manually put root in the root class via
> chsh, but the chsh man page says class is currently not used.
> 
> Incidentally, it works just fine on my 2.2.8 machine.
> 
> Help!
> 
> -Brad
> 
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-questions" in the body of the message

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3676E81C.FD9A2D71>