:: Re: [DNG] automount, mount, and USB…
Αρχική Σελίδα
Delete this message
Reply to this message
Συντάκτης: Rainer Weikusat
Ημερομηνία:  
Προς: dng
Αντικείμενο: 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