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.

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