:: Re: [DNG] visudo not installed or i…
Αρχική Σελίδα
Delete this message
Reply to this message
Συντάκτης: fsmithred
Ημερομηνία:  
Προς: dng
Αντικείμενο: Re: [DNG] visudo not installed or installable? Experience on new install
On 4/28/25 13:24, Carl Fink wrote:
> On 2025-04-28 11:10, sawbona@??? wrote:
> ...
>> The [visudo] command is part of the [sudo] package and you will find
>> it in [/usr/sbin/visudo].
>
> There lies the problem. I actualy was root, but my account (and root)
> don't have /user/sbin in the. Profile editing fixed it. Apparently the
> installer doesn't include /sbin  and /usr/sbin in the path, even for root.
>


su got moved from one package to another a few years ago and they changed
the behavior. If you just use "su" you keep the user's PATH, but if you
use "su -" you get root's path and the "command not found" errors will stop.

One way to fix it is to put the following in /etc/default/su. (see man su)

Always_set_path yes

I think you can set it in /etc/login.defs but I haven't tried that.

fsmithred