:: Re: [DNG] automount, mount, and USB…
Top Pagina
Delete this message
Reply to this message
Auteur: Rainer Weikusat
Datum:  
Aan: dng
Onderwerp: Re: [DNG] automount, mount, and USB sticks
Hendrik Boom <hendrik@???> writes:
> On Thu, Jul 30, 2015 at 10:28:30AM +0100, Rainer Weikusat wrote:


[sudo/ PATH]

>> Also, the Debian default configuration
>> contains a
>>
>> Defaults        secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"

>>
>> which means the user PATH won't be passed on unless someone explicitly
>> choses to enable it.
>
> So defining this secure_path means it's the PATH to be used for sudo?
> and if it's not defined it defaults to PATH? Is it the same for su?


According to the su man page,

    The value of $PATH is reset to /bin:/usr/bin for normal users,
    or /sbin:/bin:/usr/sbin:/usr/bin for the superuser. This may be
    changed with the ENV_PATH and ENV_SUPATH definitions in
    /etc/login.defs.


> And where is this defined?


/etc/sudoers