Re: $PATH and su to root
Todd Gruhn <[email protected]> Sun, 5 Jul 2026 03:55:04 -0400
| Newsgroups | gmane.os.netbsd.general |
|---|---|
| Message-ID | <CA+9Akf_J9tq+fVvrLSFmW+0W55h779ZYzUPZqccpXKNwrwtSTQ@mail.gmail.com> |
>> 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 <[email protected]> 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?? >