1

It happens that I must install new programs while logged in as a standard user who is not a sudoer. Then I must log in as another user from the GNOME login display which is somewhat cumbersome.

Is there another way to do it?

If I'm logged in as a standard user not in the sudoer group, it seems impossible to make sudo commands. I tried with pkexec and everything, but the only way I can do sudo is to log in as the sudo user.

3
  • 1
    You have to add that user to the sudo group so it can run root commands, or switch to sudo user with su - username. Feb 4, 2017 at 21:16
  • 2
    Are you saying that you are trying to admin your system from a non-admin account? If so, why?
    – user535733
    Feb 4, 2017 at 21:17
  • 1
    GUI prompt's (pkexec) can handle selecting another account, if terminal is imperative maybe your best bet is @albertj answer.
    – dgonzalez
    Feb 4, 2017 at 22:03

1 Answer 1

6

If you don't mind using the command line then it is easy. For example, let's say you have the users Jane and Jim on your computer. Jane has sudo rights, and Jim has not. You are currently logged in as Jim, using the desktop environment.

Open a terminal and type :

su - jane
sudo apt-get update
sudo apt-get install some-program another-program
exit
0

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .