Results 1 to 4 of 4

Thread: become temporary root?

  1. #1
    Join Date
    Dec 2020
    Beans
    33

    become temporary root?

    i am running Ubuntu 24.04 and have tried to open Synaptic package manager and failed at each and every attempt because it requires an administrator password which i don't have. Could someone help me please. I only want to become "root" on a temporary basis and not permanently. How could i be added to the sudoers list?

  2. #2
    Join Date
    Mar 2011
    Location
    U.K.
    Beans
    Hidden!
    Distro
    Ubuntu 22.04 Jammy Jellyfish

    Re: become temporary root?

    If in terminal you run command:

    man sudo

    you can read the option

    sudo -H

    -H, --set-home
    Request that the security policy set the HOME environment
    variable to the home directory specified by the target user's
    password database entry. Depending on the policy, this may
    be the default behavior.


    Thus run ..

    sudo -H synaptic

  3. #3
    Join Date
    Jun 2007
    Location
    Arizona U.S.A.
    Beans
    5,776

    Re: become temporary root?

    it requires an administrator password which i don't have
    If you are in the sudo group, it's just your user password that's needed - the same one you use to login to your user session.
    If you are the only user of the computer, you should already be in that group.
    You can also check with 'groups' command in the terminal. Is 'sudo' among the output results?

  4. #4
    Join Date
    Mar 2010
    Location
    USA
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: become temporary root?

    +1 ---

    If your password does not work to enable Synaptic to do anything, then you are not in the sudoers file, and you do not have the rights and privileges to elevate permissions to install system wide packages... Yes.

    That is how things are designed to work.
    Code:
    groups | grep 'sudo'
    Does that show you are in the sudo group?

    "Concurrent coexistence of Windows, Linux and UNIX..." || Ubuntu user # 33563, Linux user # 533637
    Sticky: Graphics Resolution | UbuntuForums 'system-info' Script | Posting Guidelines | Code Tags

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
  •