Linux Ask!

Linux Ask! is a Q & A web site specific for Linux related questions. Questions are collected, answered and audited by experienced Linux users.

How to simulate login as root using sudo command

Answer:

While this is a bad idea, but can be quite handy as you don't need to type sudo all the times

# sudo -i
[sudo] password for john:

root@/:~
  1. How do I run a root command on Linux?
  2. Reset MySQL root password
  3. Why can’t I telnet into my Linux box as root?
  4. Add a user that can gain root privileges in Ubuntu
  5. How to check failed login attempt in Ubuntu

Leave a Reply

(required)

(required)

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>