Q&A for How to Become Root in Linux

Return to Full Article

Search
Add New Question
  • Question
    How can I make a user a superuser?
    Community Answer
    Community Answer
    Type in "sudo usermod -aG sudo " replacing the username of the user you want to grant superuser access.
  • Question
    How do we log in as a root in Method 3? I have my admin account and my guest account. Do I have to log as a root in terminal first?
    Community Answer
    Community Answer
    Yes. The root account must be unlocked first if you're using Ubuntu. Follow the instructions in method two. If you're not using Ubuntu, check your distribution's documentation.
  • Question
    What is the tilde used for?
    Community Answer
    Community Answer
    It designates a home folder (typically aliased to the current user's home folder).
  • Question
    What do I do when it says I'm, "not allowed to execute," when I type in my password after using, "sudo passwd root?"
    Community Answer
    Community Answer
    Being a normal user, you cannot change the password of a root using a 'passwd' command, even though you are using sudo and having superuser access.You need to break the password at the grub prompt or, if you are using Ubuntu 16.04, you could do the changes in the recovery mode.
  • Question
    What would I do as a root to install an app?
    Pingu
    Pingu
    Top Answerer
    You would usually use your system's package manager. In Ubuntu and Debian, that's APT, and you would type a command like "sudo apt-get install nameOfTheProgramHere". Other distributions use Yum, PacMan, or some other package manager. If the package manager doesn't provide the package you want, you can compile a program from source. This is often done by writing "./configure", then "make", then "sudo make install", but this can differ and you should follow the instructions on its website. Note that programs compiled from source can be hard to update or uninstall.
  • Question
    What should I do if I get the message "passwd: Authentication token lock busy passwd: password unchanged?"
    Community Answer
    Community Answer
    Reboot the computer. Some other process is using files that password needs to operate.
  • Question
    I cannot gain access to root using all of the method above, I'm using Ubuntu 20.
    Nithik R
    Nithik R
    Community Answer
    You need to set the password for the root first by "sudo passwd root", enter your password once and then root's new password twice. Then type in "su -" and enter the password you just set. Another way of gaining root access is "sudo su" but this time enter your password instead of the root's.
Ask a Question
200 characters left
Include your email address to get a message when this question is answered.
Submit

Return to Full Article

You Might Also Like

Install Google Chrome Using Terminal on Linux
Linux How to Mount Drive Mount Drives on Linux: Command Line & GUI
Can Linux Run ExeCan Linux Run .exe Files? How to Run Windows Software on Linux
Use Wine on Linux Install and Use Wine on Linux
Take a Screenshot in LinuxTake a Screenshot in Linux
Tar a Directory Tar a Directory and Subdirectories in Linux
Execute INSTALL.sh Files in Linux Using Terminal Run an INSTALL.sh Script on Linux in 4 Easy Steps
Install DebianEasy Debian Linux Installation Tutorial
Run Files in LinuxRun Files in Linux
Boot Linux from a USB on Windows 10 Run Linus from a USB: Making a Bootable Stick and Installing
Add or Change the Default Gateway in LinuxAdd or Change the Default Gateway in Linux
Execute .RUN Files in LinuxExecute .RUN Files in Linux
Create an ISO File in LinuxCreate an ISO File in Linux
Install Puppy Linux Install Puppy Linux on a USB Drive or PC