To run the scripts in python of the web that we will see below, First we have to give permissions to the user www-data It is the user assigned to the web server; for what First we will install the apache web server as we have seen in this previous article and we will write sudo visudo in the terminal and at the end of the file We will add to www-data as sudoer, being the final result as below.
Kuendesha na hati katika Chatu ya wavuti ambayo tuta ona hapa, Kwanza tuna kutoa ruhusa kwa mtumiaji data ya www Ni mtumiaji pangiwa kwenye seva ya wavuti; Kwa nini Kwanza sisi kufunga apache wavuti seva kama tulivyoona katika makala hii awali na tunaweza Andika sudo visudo katika njia za kuondokea na katika mwisho wa faili Sisi kuongeza kwenye www-data kama sudoer, kuwa matokeo ya mwisho kama hapa chini.