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

General discussion • Problems with root privileges

$
0
0
Hello all,

I have a problem with root privileges on Raspi4.

I run my python script from raspi prompt using sudo. The script starts its execution and when it reaches a particular function it says "needs to run sudo, enter password". The script needs to be automated, typing password each time the script executes is not possible.

I have made changes in the sudoers(config file of raspi4) so that it does not ask for a password for the specified python script using the following commands in the config file.


username ALL=(ALL) NOPASSWD: ALL
username ALL=(ALL) NOPASSWD: /path/to/script

It still asks for a password.

Statistics: Posted by rajivk — Tue May 07, 2024 8:53 am



Viewing all articles
Browse latest Browse all 2493

Trending Articles