9

My Ubuntu 18.04 opens the modal dialog

Authentication Required

with the text "Authentication is needed to run '/bin/sh' as super user

This happens just after booting - for no reason know to me!

enter image description here

Kulfy
  • 17,696
dMatija
  • 313
  • 7
  • 23

2 Answers2

6

Do you have Dropbox installed?

If Dropbox finds files in its folder that aren't owned by your user, it will try to run a script with super user privileges to change the ownership of those files to your user.

If you click Cancel, Dropbox won't run the script but you'll continue to get the popup because it will continue to detect the problem.

If you're able to confirm it is Dropbox causing the popup, then the solution is to enter your credentials and let it run the script.

More details here.

I myself ran into this problem, but since I run Xfce the dialog has an expandable Details option that allowed me to figure out the source of the popup:

screenshot

bmaupin
  • 4,930
  • 4
    Why doesn't this window give any indication which task wants to run /bin/sh as root? This is super dangerous and could easily be malware. Kinda like: just trust the unknown and enter the password so the trojan can encrypt all your files ;-) – Markus Bawidamann May 01 '21 at 08:32
3

I also have the same issue

Since I did not want to just allow it - since I don't know what it is - I did this:

  1. Check for programs that are starting after boot by opening "Startup Applications"

    enter image description here

    And verify that only desired applications do start.

  2. If you have Dropbox (like pointet out by bmaupin) then search for files which you are not the owner of

    ls -Rl Dropbox/ |grep -vP 'YourUserName|total|Dropbox.*:|^$'
    
    this Searches for all files where the user is not YourUserName, omits Parent Directories of files and also omits empty lines
    
  3. Change the ownership of files to your user ($USER) and group

    sudo chown YourUserName:YourGroupName /path/do/file
    
Pablo Bianchi
  • 15,657
Thorsten Niehues
  • 1,277
  • 5
  • 17
  • 32
  • 1
    I would find those unreadable files this way – Pablo Bianchi May 14 '20 at 00:56
  • A good solution but a better way to search would be "find Dropbox ! -user USERNAME" because it will show the full path to the file. Although not recommended because you don't know if a file needs to be owned by some other user (but shouldn't in the Dropbox folder) you could use "sudo find Dropbox ! -user USERNAME -exec chown USERNAME:USERNAME {} ;" to find and fix all the files. – schworak May 09 '22 at 14:24