Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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.

share|improve this question
up vote 3 down vote accepted

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

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.