Re: Pls help fixing /boot/efi and GRUB
Greg Wooledge wrote:
...
> Maybe. If you haven't created an /etc/default/su file, then something
> like this:
>
> $ su
> # adduser richard
>
> may fail. You could work around it in various ways (e.g. explicitly
> typing out /usr/sbin/adduser richard).
>
> My recommendation is to create a one-line configuration file:
>
> hobbit:~$ cat /etc/default/su
> ALWAYS_SET_PATH yes
>
> That's all it takes. With this file, with this setting, "su" with no
> arguments will behave the way it's supposed to: it changes PATH without
> changing your working directory.
i've just been typing "su -" all along here and haven't run
into any problems that i've noticed. perhaps i just don't ever
rely upon PATH being something without explicitly setting it in
my profile or bashrc or script.
i don't use sudo, i just start a root shell in a particular
terminal when i start up each day and then i only do root
stuff there.
songbird
Reply to: