I am on Debian 8 and I am searching for a command in debian to use root privilege without password. I am asking because I already saw it somewhere but can't find it anymore.


The command is sudo.

Add a line such as below into /etc/sudoers


This means user sigis can now run things like the command below without requiring password.

sudo shutdown -h now
  • I accept this one but I know that I didn't install sudo and I could use root privileges – SIGIS Jul 7 '16 at 22:30
  • 1
    Then you have a chicken-and-egg problem. You'll need root privileges to install sudo. Did you install this system yourself? If so, you should have the root password. Also, at least some distros will set up a sudoers file for the person who installed the system; have you just tried to use it? Maybe it already works. – Edward Falk Jul 8 '16 at 0:34

From what I know it's

sudo -i



  • su does require a password. And sudo does on most systems every 5 minutes, too. – Mikel Jul 7 '16 at 22:11
  • 1
    weird, I must of have my account in sudoers – kommander0000 Jul 7 '16 at 22:12

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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