sudo - visudo nopasswd is not working for wget to execute shell_exec -


i have added below line in /etc/ visudo in bottom before (defaults passprompt="password:" line). all=(root) nopasswd:/usr/bin/wget

when ever try wget command, asking passowrd. can download files after use sudo command only. can download files without sudo command need use command in shell_exec php file.

the following works give users right execure /usr/bin/wget

all all=/usr/bin/wget,  nopasswd: 

you can use

sudo wget google.com 

without being asked password


Comments

Popular posts from this blog

php - Calling a template part from a post -

Firefox SVG shape not printing when it has stroke -

How to mention the localhost in android -