Archive for June, 2012

If you installed Google Chrome and you can not run it on the root account, receiving messages like the following:

Google Chrome can not be run as root
Please start Google Chrome as a normal user. To run as root, you must specify an alternate –user-data-dir for storage of profile information

Image

[polish version]
Przeglądarki Google Chrome nie możesz uruchamiać jako użytkownik root.
Uruchom aplikację Google Chrome jako zwykły użytkownik. Uruchamianie jako użytkownik root wymaga podania alternatywnego katalogu –user-data-dir do przechowywania danych profilu.

Image


Here is a solution:

  • [optional]
    root@localhost > xhost +

    Turns off acccess control (all remote hosts will have access to X server).
    T
    o turn access control back on type xhost –
  • root@localhost > vim /usr/bin/google-chrome
    Edit in any text editor Google Chrome configuration file and find line
    exec -a “$0″ “$HERE/chrome” “$@”
    and type at the end of line -user-data-dir
    so edited line should look like this:
    exec -a “$0” “$HERE/chrome” “$@” -user-data-dir


Now you should be able to run Google Chrome with root rights. Of course, for safety reasons I would advise careful with too frequent use of applications in this way.

Advertisements