I have some questions about Linux security:
Running a process as root is a big mistake (root has too much power + a program get too much permissions in the system). I always ran processes as a user (I just used
chownto have access to special files and to be able to run them). Is that a better, than running a process/daemon/program as root?
What if I use
sudo suand then start a process, is it equal to the security of running process as user? Or instead is it the same as running a process as root?
- Should I install software as root? Or maybe as a regular user?
- What about editing configuration files, should I do it as root or maybe, as I did before, with
sudo sufrom my regular unprivileged user account?