If your application is hijacked by a malicious person or bot at the other end of the coection, how much of your system do you want them to have access to?
If you want your entire system to be compromised, run the application as root.
If you want your entire /home/YOU directory to be compromised, including your shell access, email cache, browser history, favorite website passwords, contact database, and personal files, then run the application as yourself.
If you want merely your server's /var/APPLICATION_DATA directory to be compromised, create a 'system user' (see man adduser) without shell, and with strict limits on what it can run and access. Let that system user run your application.
Best practice is for server applications to run as a system user. You communicate with the server application using a separate client application, The client run on your screen, using your login, and communicates with the server using sockets or dbus.
- - , .
برچسب:
نویسنده: استخدام کار