Howto run Gajim with root privileges


Gajim 0.12.1 says that he can’t run with root privileges. This is new feature that appeared in Fedora 10. In earlier versions it was normaly running under root. Anyway let’s turn off this feature in case that you need to run Gajim under root.

Open /usr/bin/gajim with your favorite text editor, find 24th line and just comment out this part of code:

if test $(id -u) -eq 0; then
echo "You must not launch Gajim as root, it is INSECURE"
exit 1
fi

After commenting it should look like

#if test $(id -u) -eq 0; then
#	echo "You must not launch Gajim as root, it is INSECURE"
#	exit 1
#fi

Save file. Thats it.
Happy chatting :)

Be Sociable, Share!

, ,

  1. #1 by kernel_script at July 20th, 2009

    Thank you very much for this, it was very helpful to me.

(will not be published)

  1. No trackbacks yet.