[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Discuss-gnuradio] pybombs gnuradio install and sudo
From: |
Marcus D Leech |
Subject: |
Re: [Discuss-gnuradio] pybombs gnuradio install and sudo |
Date: |
Mon, 22 Jul 2019 15:19:55 -0400 |
Because your PYTHONPATH and other environment variables aren’t inherited by a
sudo shell by default.
Use the -E option to sudo.
Sent from my iPhone
> On Jul 22, 2019, at 11:54 AM, Müller, Marcus (CEL) <address@hidden> wrote:
>
> Your sudo call resets the environment, and that includes things like
> PYTHONPATH, PATH and LD_LIBRARY_PATH.
>
> You need to add the right options to sudo.
>
> I'll carefully point out that the code in tuntap_pdu isn't really safe
> by any means. You generally should probably avoid running GNU Radio as
> root.
>
> The easiest whilst-still-safe way forward:
>
> just run `sudo ip tuntap add grtunnel mode tun user sumit` (assuming
> sumit is your unprivileged user) and then, run your program as normal
> user.
>
> Sadly, haven't tested that.
>
> Best regards,
> Marcus
>
>> On Mon, 2019-07-22 at 16:55 +0200, sumit kumar wrote:
>> Hi,
>> When I try to run any gnuradio program with sudo (inside pybombs
>> environment), it simply throws the error
>>
>> ImportError: No module named gnuradio
>>
>> For example when I try to run tunnel based programs, which need ioctl calls
>> and hence sudo or root.
>>
>> Without sudo it says operation not permitted and with sudo it says
>> ImportError: No module named gnuradio
>>
>> Solution ? :-/
>>
>>
>>
>>
>> _______________________________________________
>> Discuss-gnuradio mailing list
>> address@hidden
>> https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
> _______________________________________________
> Discuss-gnuradio mailing list
> address@hidden
> https://lists.gnu.org/mailman/listinfo/discuss-gnuradio