NetBSD-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: $PATH and su to root
>> You need to "su -" to "login" to root.
I did search about this -- found "su - ". Specific "su - root".
I cant recall this -- did "su" grow-up since 2005 ?
I found and fixed a spot in .mwmrc -- its more secure.
On Sat, Jul 4, 2026 at 11:53 PM x85729201kza <x85729201kza%outlook.com@localhost> wrote:
>
> You need to "su -" to "login" to root.
>
> Or source/execute your root's .{shell_init_file} (eg .kshrc, .zshrc, .tcshrc) to pick up root's path.
>
> On 5/07/2026 3:23 am, Todd Gruhn wrote:
> > Under X11 I have many dirs in $PATH.
> >
> > When I su to root, while under X11,
> > the root-window still has the previous and
> > huge $PATH.
> >
> > Ho do I reset $PATH under X11 when I su
> > to root??
>
Home |
Main Index |
Thread Index |
Old Index