Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 8026

Python • Re: need to run as sudo

$
0
0
OK which user are you trying to run the script as?
For that user, what does this command show?

Code:

groups
On my PiB running Bullseye I added a user "neil". To allow that user to run the script wateronce.py I added it to the relevant groups:

Code:

sudo usermod -a -G adm,dialout,cdrom,audio,video,plugdev,games,users,netdev,input,render,gpio,i2c,spi,lpadmin neil
and reboot

Statistics: Posted by neilgl — Fri Mar 07, 2025 10:36 am



Viewing all articles
Browse latest Browse all 8026

Trending Articles