Fixing “Authentication is needed to run /usr/bin/dropbox as the super user” error in Linux

Following is a screenshot of the problem. 

Screenshot on

Screenshot on “Authentication is needed to run /usr/bin/dropbox as the super use”

Fixing this problem is easy. Find where your dropbox executable is using the following command.

 Bash |  copy code |? 
which dropbox

In my case it is /bin/dropbox. Open the file as root using a text editor. Then find the following lines.

 Python |  copy code |? 
PARENT_DIR = os.path.expanduser("/var/lib/dropbox")
DROPBOXD_PATH = "%s/.dropbox-dist/dropboxd" % PARENT_DIR

You’ll notice that DROPBOXD_PATH is incorrect due to PARENT_DIR pointing to an invalid dropbox installation location. Now all you have to is to point PARENT_DIR to the correct place. Since my dropbox installation is in ~/.dropbox-dist/ and I am the only user in the system using dropbox, I edited the entry as follows. Edit the entry as it suits for you.

 Python |  copy code |? 
PARENT_DIR = os.path.expanduser("~")

Now save the file and try running the dropbox start -i using your user account (not root). It will work without any problems.

Share Button

49 thoughts on “Fixing “Authentication is needed to run /usr/bin/dropbox as the super user” error in Linux

  1. Thank you for the solution. But something is puzzeling me: What happend? How could that problem so suddenly appear after so many months. I did not change anything on my computers configuration. I am running Dropbox on Debian on two computers having the same configuration. Only one is affected. The other one runs Dropbox fine having “PARENT_DIR = os.path.expanduser(“/var/lib/dropbox”)” written in the file.

  2. Thanks for the fix! Like you, I changed the line to “PARENT_DIR = os.path.expanduser(“~”)”. But unlike you, I have no idea why this worked. How is a user supposed to know what the “correct place” is?

  3. Thank you very much for this excellent fix – I just followed the instructions above and it worked. Like the other commentors I am peturbed at how this random problem seems to have suddenly arisen, and wonder if it had something to do with an outage of Dropbox that affected a lot of people in early January 2014.

      • Thank you again! I had to rediscover and reapply your excellent solution after having upgraded Ubuntu to 14.04, and it has worked yet again. I shall now bookmark this page for future reference.

  4. Pingback: Dropbox authentification | God only knows good vibrations

  5. I confirm the bug=734628 proposal solution works.
    ~# rm -r /var/lib/dropbox/.dropbox-dist
    ~# dpkg-reconfigure nautilus-dropbox
    ~$ dropbox start -i
    Starting Dropbox…Dropbox isn’t running!

  6. For me just purging dropbox packages and reinstaling them worked on LinuxMint Debian XFCE, doing probably the same thing as what Guido Bozzetto post suggests (removing system-wide configuartion files and intalling default ones). In my case (I use dropbox-thunar package for thunar integration) it was like this:

    $ apt-get search dropbox
    p caja-dropbox – Dropbox integration for Caja
    p caja-dropbox:i386 – Dropbox integration for Caja
    p dropbox – Easily share and sync files across compute
    v dropbox:i386 –
    p libnet-dropbox-api-perl – Perl module providing a dropbox API interf
    i A nautilus-dropbox – Dropbox integration for Nautilus
    p nautilus-dropbox:i386 – Dropbox integration for Nautilus
    p nemo-dropbox – Dropbox integration for Nemo
    p nemo-dropbox:i386 – Dropbox integration for Nemo
    i thunar-dropbox – Easily share and sync files across compute

    $ sudo apt-get purge thunar-dropbox nautilus-dropbox

    Then I installed back thunar-dropbox by double-clicking downloaded package thunar-dropbox_1.2.0_amd64.deb (not in the repos, it reinstaled also nautilus-dropbox as dependency, redownloading dropbox binaries from the net).

  7. can’t open the file using gedit.
    I’m new to Ubuntu, when I typed “which dropbox” in the Ter, “usr/bin/dropbox” appeared in the next line. But when I continued to type “sudo gedit/usr/bin/dropbox”, command not found, neither do “sudo gedit/bin/dropbox”
    Did I miss something or do something wrong? Pls help

      • Hi, Ishan.
        Thanks for your help. The command worked, but here is another problem :-(
        The file opened by gedit is empty, there is no lines in it.

        • Seems like there’s a problem in the command you are trying to execute. To be more specific it should be in the file path you are providing (/usr/bin/dropbox). Because how the sudo__gedit__/usr/bin/dropbox command works is that if there is a file in the path /usr/bin/dropbox, it’ll open it via gedit. But if there’s no file in that path, it’ll create a new file (which has no content, thus empty just like in your case) and open it.

          So please check the file path again.

          • I removed and reinstalled the dropbox. Same file path, but only this time the command opened the right file.
            I changed the line “PARENT_DIR = os.path.expanduser(“/var/lib/dropbox”)” to “PARENT_DIR = os.path.expanduser(“~”)”, and saved it.
            OMG, the problem is still there when I trid to open dropbox.
            Any ideas?
            BTW, what does “dropbox start-i” mean? I simply just clicked the icon on the left launcher

  8. I did not have success with the fix you outlined. I wrote to Dropbox support and this was the reply (April 2, 2014). It worked for me in Ubuntu 12.04 LTS.

    Hi Donald,

    Thank you contacting Dropbox Support!

    Below are the steps for the basic reinstall. Did you follow these steps exactly when you reinstalled Dropbox on your computer? Would you mind trying these again?

    First, make sure you save and quit ALL programs that access files in the Dropbox folder.

    Here are the steps:

    Run the following commands in your terminal:

    $ dropbox stop
    $ dropbox status # Should report “not running”
    $ mv -v ~/.dropbox-dist/ ~/dropbox-dist.old
    $ mv -v ~/.dropbox ~/dropbox.old
    $ mv -v ~/.dropbox-master ~/dropbox-master.old

    This will move the old Dropbox application settings folders so they’re visible in your home directory. Feel free to delete them after Dropbox starts successfully.

    In order to re-install the Dropbox application, run these commands in terminal:

    If your machine is 32-bit:

    $ cd ~ && wget -O – “″ | tar xzf -

    If your machine is 64-bit:

    $ cd ~ && wget -O – “″ | tar xzf -

    Next, run the Dropbox daemon from the newly created .dropbox-dist folder.

    $ ~/.dropbox-dist/dropboxd

    Installation information is also available here:

    At this point Dropbox will ask for your account information and you will be good to go!

    If you have any further questions, please let me know.


  9. The above fix did not work for me however the following did.

    In terminal:
    sudo rm -rf /var/lib/dropbox/.dropbox-dist
    dropbox start -i

  10. After upgrading to Ubuntu 14.04 LTS I had the same problem! “Authentication is needed to run /usr/bin/dropbox as the super user”.
    I got fooled around by many other sites mentioning dozen of reliefs. No one working properly for my case.
    I followed step by step the instructions given by Ishan and now Dropbox works perfectly!
    Thanks a lot Ishan! God bless you!

  11. Hi,
    I tried that.. but didn’t work for me. I could change the parent directory in the dropbox file. And after that I’m opening the dropbox normally using icon.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>