Results 1 to 5 of 5

Thread: How login being root ?

  1. #1
    Join Date
    Jul 2020
    Beans
    118

    How login being root ?

    I has software that need login being root to be installed.
    How login being root ?

  2. #2
    Join Date
    Feb 2014
    Beans
    202

  3. #3
    Join Date
    Aug 2017
    Beans
    72

    Re: How login being root ?

    Consistent with the linked thread, you're premise is faulty. You don't need to (and shouldn't) log in as root to install software.

    The usual (and correct) method is simple: sudo apt install <commandname>.

    Sudo = root authority. Requires your password. Only works if you are member of the sudo group, which is the important thing.

  4. #4
    Join Date
    Jul 2020
    Beans
    118

    Re: How login being root ?

    "Sudo = root authority. Requires your password. Only works if you are member of the sudo group, which is the important thing."
    How add my username in sudo group ?

  5. #5
    Join Date
    May 2013
    Location
    Galiza
    Beans
    2,626
    Distro
    Ubuntu

    Re: How login being root ?

    Quote Originally Posted by aug7744 View Post
    How add my username in sudo group ?
    You don't need to do that. The first configured user in the installation process is automatically in the group. Likewise, that user's password is the one you need for "sudo".

    Do you need to add another user to sudoers? I don't think so but you tell us... IMO, this question betrays a false assumption that somehow you need to login as root. The Ubuntu's security model is explained here: https://help.ubuntu.com/community/RootSudo

    Quoting:

    By default, the root account password is locked in Ubuntu. This means that you cannot login as root directly or use the su command to become the root user. However, since the root account physically exists it is still possible to run programs with root-level privileges. This is where sudo comes in - it allows authorized users (normally "Administrative" users; for further information please refer to AddUsersHowto) to run certain programs as root without having to know the root password.
    This means that in the terminal you should use sudo for commands that require root privileges; simply prepend sudo to all the commands you need to run as root. For more extensive usage examples, please see below. Similarly, when you run GUI programs that require root privileges (e.g. the network configuration applet), use graphical sudo and you will also be prompted for a password (more below). Just remember, when sudo asks for a password, it needs YOUR USER password, and not the root account password.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •