7

How do I create a user with root privileges in Debian? Maybe it sounds a bit silly, but I don't think I need user directories, only some rights to run services (mainly web server, mysql, etc.). I just don't want to run everything under root account.

Thank you.

user38484
  • 313
  • 2
  • 5
  • 10

2 Answers2

3

Sudo is the best way, because you can limit users to only being able to run a few commands

Giving a user rights to run everything is easy, add a line like this to /etc/sudoers:

fred ALL=(ALL) ALL

You can also limit fred to only certain stuff: fred ALL = /usr/local/restart_www

mfarver
  • 2,576
  • 14
  • 16