Aug. 7th, 2015

oio11: (Default)

su authentication failure, sudo missing


After removing the vim-minimal package, because it was conflicting with the GUI Vim I was trying to install, sudo has disappeared, and su is giving an authentication failure.

[portOdin@localhost ~]$ su Password:  su: Authentication failure   [portOdin@localhost ~]$ sudo bash: sudo: command not found... Ok, if anyone ends up in a similar situation, you can use pkexec yum install sudo.  pkexec will let you enter your password in your OS's GUI.
pkexec allows an authorized user to execute PROGRAM as another user. If username is not specified, then the program will be executed as the administrative super user, root.


http://askubuntu.com/questions/434525/can-sudo-be-reinstalled-after-being-removed

http://unix.stackexchange.com/questions/152525/su-authentication-failure-sudo-missing


Can sudo be reinstalled after being removed?

.. 
pkexec apt-get install <appname> 

From man pkexec:

  pkexec allows an authorized user to execute PROGRAM as another user.  If   username is not specified, then the program will be executed as the    administrative super user, root. 

So, I suppose that pkexec apt-get install sudo should work as well.


Edit: now I can confirm: yes, sudo can be installed using using pkexec apt-get install sudo:

reinstall sudo

(click to enlarge)

..
http://askubuntu.com/questions/434525/can-sudo-be-reinstalled-after-being-removed


oio11: (Default)

pkexec

pkexec — Execute a command as another user

 

October 2025

S M T W T F S
   1234
567891011
12131415161718
19202122 232425
262728293031 

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Nov. 3rd, 2025 03:44 pm
Powered by Dreamwidth Studios