On Fri, 22 Nov 2002, Michael Schwendt wrote: > > On Fri, 22 Nov 2002 10:35:22 -0800 (PST), Oisin C. Feeley wrote: > > > You're right about "/sbin" not being in root's default PATH > > [root@psyche] echo $PATH > > /usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin:/home/ofeeley/bin > > > > I added it in myself. I'd forgotten. Sorry. > > Really? From /etc/profile: > > # Path manipulation > if [ id -u = 0 ]; then > pathmunge /sbin > pathmunge /usr/sbin > pathmunge /usr/local/sbin > fi > > So, log-in as root with either "su -", "su -l root" or "su --login > root", and you will get superuser's $PATH. Ah. Is there anything terribly insecure about adding a "PATH=$PATH:/sbin" to /root/.bashrc ? This adds the "/sbin" to root's path even when just doing a "su root". The reason I had done this was that "su - root" changes the current working directory as well as the envirnoment variables and I didn't want that behaviour. Oisin Feeley -- Psyche-list mailing list Psyche-list@redhat.com https://listman.redhat.com/mailman/listinfo/psyche-list