You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@brooklyn.apache.org by Zaid Mohsin <za...@cloudsoftcorp.com> on 2014/08/01 13:36:20 UTC
Debian PATH problems
Hello,
whenever I’m dealing with Debian VMs I always encounter this problem:
Note: PATH should usually contain /usr/local/sbin, /usr/sbin and /sbin
so in order to deploy on Debian machines I have to add a PATH export before doing any SSH driver installations/launches.
Can there be a permanent fix for this?
Best Regards
Re: Debian PATH problems
Posted by Zaid Mohsin <za...@cloudsoftcorp.com>.
Hi Aled,
It’s happening whenever I’m trying to invoke a /bin or /sbin utility,
I’ve encountered this in Debian 7.2 wheezy, trying now with 7.6 see if the same problem occurs.
On 1 Aug 2014, at 14:02, Aled Sage <al...@gmail.com> wrote:
> Hi Zaid,
>
> Is this happening when you run `sudo` commands, or at other times as well?
>
> Which Debian version is it?
>
> On your Debian VM, can you check if /etc/sudoers file contains the line:
> Defaults secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
> (or if there is a file in /etc/sudoers.d/ that sets secure_path).
>
> See https://wiki.debian.org/sudo, section "PATH not set".
>
> Aled
>
>
> On 01/08/2014 12:36, Zaid Mohsin wrote:
>> Hello,
>>
>> whenever I’m dealing with Debian VMs I always encounter this problem:
>>
>> Note: PATH should usually contain /usr/local/sbin, /usr/sbin and /sbin
>>
>> so in order to deploy on Debian machines I have to add a PATH export before doing any SSH driver installations/launches.
>> Can there be a permanent fix for this?
>>
>> Best Regards
>>
>>
>
Re: Debian PATH problems
Posted by Aled Sage <al...@gmail.com>.
Hi Zaid,
Is this happening when you run `sudo` commands, or at other times as well?
Which Debian version is it?
On your Debian VM, can you check if /etc/sudoers file contains the line:
Defaults
secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
(or if there is a file in /etc/sudoers.d/ that sets secure_path).
See https://wiki.debian.org/sudo, section "PATH not set".
Aled
On 01/08/2014 12:36, Zaid Mohsin wrote:
> Hello,
>
> whenever I’m dealing with Debian VMs I always encounter this problem:
>
> Note: PATH should usually contain /usr/local/sbin, /usr/sbin and /sbin
>
> so in order to deploy on Debian machines I have to add a PATH export before doing any SSH driver installations/launches.
> Can there be a permanent fix for this?
>
> Best Regards
>
>