Tips: Permiso sudo a www-data

Tengo que ejecutar un script bash en php usando la función system(), el script debe mover un archivo a una unidad NAS previamente montada via cifs. Para evitar los problemas de permisos agregué al usuario www-data en la lista de sudo y santo remedio.

sudo visudo


# User privilege specification
root ALL=(ALL) ALL
www-data  ALL=(ALL) NOPASSWD: ALL

Leave a Comment

*


NOTE - You can use these HTML tags and attributes:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="" cssfile="">

Rss Feed Tweeter button Facebook button Technorati button Reddit button Linkedin button Webonews button Delicious button Digg button Flickr button Stumbleupon button Newsvine button Youtube button