Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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
add comment

2 Answers

up vote 2 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
add comment

Your Answer

 
discard

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.