Run scripts without sudo

Added by Andreas - 3 months ago

Hy

I have several scripts that are execute after booting the sytem. How can I launch
a pixy script without sudo?

Andy


Replies (5)

RE: Run scripts without sudo - Added by Edward Getz 3 months ago

Hello Andreas,
I'm not sure what your pixy script does. Can you describe?

Edward

RE: Run scripts without sudo - Added by Andreas - 3 months ago

for example the helo_pixy script. I can only run this with sudo.
It's also described in the Wiki

cd /pixy/build/hello_pixy
sudo ./hello_pixy

Andy

RE: Run scripts without sudo - Added by Jesse French 3 months ago

Hi Andy,
Sorry, I was confused. The programs that use Pixy need to run as root because of the device permissions for Pixy. Setting device permissions varies between Linux versions. You can modify the "udev" rules on your system and see if that gives you non-root permission.

https://www.linux.com/news/udev-introduction-device-management-modern-linux-system

Hope this helps!

Jesse

RE: Run scripts without sudo - Added by Andreas - 3 months ago

thx jesse

I did now add the pixy folder to the visudo so that all user have permission to run any script without sudo.

andy

RE: Run scripts without sudo - Added by Edward Getz 2 months ago

That's another good solution. Thanks for sharing!

Edward

(1-5/5)