Q&A for How to Become Root in Ubuntu

Return to Full Article

Search
Add New Question
  • Question
    I read the article and tried gksudo on Ubuntu, but it doesn't work. I learned that it is abolished by most flavors of Linux. What do I do?
    Thomas J. Jordan Sr.
    Thomas J. Jordan Sr.
    Community Answer
    gksudo won't work in a Wayland session; switch to an Xorg session and try.
  • Question
    How to administer password created by command?
    Jisjo
    Jisjo
    Community Answer
    You can create a root password by command line. In Linux root has Administrator like the Windows Operating system. Use this below command to set root password: $ sudo passwd root.
  • Question
    i did the steps for enabling and setting password for root but after typing: " sudo - " it still says su: Authentication failure. What should I do?
    Jisjo
    Jisjo
    Community Answer
    The error "su: Authentication failure" shows for an incorrect password login. Give the correct password to fix this. Also, there is no command like "sudo - ", refer to the article for correct usage.
  • Question
    When I try to save a file to the xsessions folder, it still says that I don't have the permissions necessary to save the file. How can I resolve this?
    Jisjo
    Jisjo
    Community Answer
    Check the directory permission using the "ls" command and change accordingly with the "chmod" command.
  • Question
    There is no need to use gksudo on Ubuntu. Rather, use sudo.
    Jisjo
    Jisjo
    Community Answer
    "gksudo" is for the GUI form to enter the privileged user password. If you were to use "sudo," then it will ask for the password in the CLI itself.
  • Question
    i did the steps for enabling and setting password for root but after typing: " sudo - " it still says su: Authentication failure. What should I do?
    Nithik R
    Nithik R
    Community Answer
    Looks like you have confused yourself between sudo and su. "sudo" stands for "Super-user Do" and it is used for performing administrative tasks. "su" stands for "Switch User". You can switch to super-user(also called root) by typing "sudo su" or "su -" Remember, "sudo su" is for temporary use and you need to enter your own password but for "su -" you need to enter the root password.
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

Become Root in Linux Access and Use the Root Account in Linux
Solve Incorrect Password ...Try Again Error in UbuntuSolve Incorrect Password ...Try Again Error in Ubuntu
Open the Root Terminal in Kali Linux Enable Root in Kali Linux and Open a Root Terminal
Change the Root Password in Linux Change Your Root Linux Password (Even If You Don't Know It)
Linux How to Change UserLinux: How to Change User in Terminal & GNOME
Sudo Command Not Found2 Ways to Fix the "Sudo Command Not Found" Error on Linux
Open Applications With Root Privileges on a Mac Run Apps with Root Permissions on a Mac
Run a Program from the Command Line on LinuxRun a Program from the Command Line on Linux
Access Windows Files in Ubuntu Access Windows Files in Ubuntu OS
Set Administrator Password Change the Windows Administrator Password
Set up an FTP Server in Ubuntu Linux Install and Configure an FTP Server in Ubuntu
Linux How to Add User to a GroupAdding & Managing Users in Linux Groups
Zsh: Permission Denied Fix the Zsh: Permission Denied Error on Mac
Reset Forgotten Password in LinuxReset Forgotten Password in Linux