0

If I gain root privileges via executing "pkexec su" command, does this open the door to viruses on my laptop? Ubuntu 19.10 Thanks.

  • 2
    Running pkexec su should prompt for your password in a GUI window. That's quite a barrier for a random virus to overcome. If the virus already knows your password, then there are much easier ways for it to control your system. – user535733 Nov 25 '19 at 23:35
  • 2
    I wouldn't loose sleep over it. – WinEunuuchs2Unix Nov 26 '19 at 00:10

1 Answers1

0

Only until you close the windows where pkexec su is. Once that's closed, nothing you type could let in a virus.

K7AAY
  • 17,202
  • Can you give an example of a virus you can catch using sudo? All I've read about is with sudo apt-get which is covered here: https://askubuntu.com/questions/817993/can-i-get-a-virus-by-using-sudo-apt-get-install – WinEunuuchs2Unix Nov 26 '19 at 00:09
  • Was trying to reassure OP that once they closed the su session, security risks were back to normal. – K7AAY Nov 26 '19 at 16:40