:: Re: [DNG] visudo not installed or i…
Inizio della pagina
Delete this message
Reply to this message
Autore: Rainer Weikusat
Data:  
To: dng
Oggetto: Re: [DNG] visudo not installed or installable? Experience on new install
Dan Purgert via Dng <dng@???> writes:
> On Apr 28, 2025, 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.
>
> It does. You just did 'su' without the '-l' switch.


As this is probably less confusing: Environment variables and other
inherited settings are usually set by a shell 'profile' file which will
only be processed by login shells. Because of this, when using `su` to
become a different user, it's usually a good idea to use

su -

or

su -l

as this tells the shell it starts that it's a login shell.