php - LAMP security - www-data sudoer -


I'm looking for a way to run some command line functions, including some pseudo commands, I reboot. I understand that giving poodo access to www data data is a security risk. Most people say that for writing a file and cron runs it every minute raises the commands.

But when I reboot, I want to reboot it.

This is the raspberry pie with some recording software, which will be controlled using web interfaces (like webmin , all routers?). Raspberry PE will sit clearly on a local network with access to download / upload information on the Internet, Raspberry Pi will have a username and password to access the web interface.

Is not it how your router works? Router's web interface basically has root access and in most cases you can set a bass script to run, of course, that I am trying to get it with Raspberry P.

Raspberry P is safe in the form of web interface, ssh log is disabled (but only log through enabled key) I www-data Can I use sudo commands?

Okay? Or can there be any problem?

You may consider running another webserver process which is available only from the local host and root PHP runs as this server will need a script such as reboot again. The user-facing web server will then use the cURL (or hopper) to access other servers.

If your user-facing server is compromised, an attacker can clearly reboot your server, but will not have access to your full file system.


Comments

Popular posts from this blog

import - Python ImportError: No module named wmi -

Editing Python Class in Shell and SQLAlchemy -

lua - HowTo create a fuel bar -