How to run vlc player as root without compiling again

Vlc player exits with an error if you try to run it from terminal as root. However, there is a trick to run vlc player as root (without recompiling). The credit of the post goes to Net_Spy ( The steps are as follows.

Step-1: Open a hex editor preferably ghex/khex. If u didn’t have one then download ghex editor from here and install (after resolving dependencies).
Step-2: Now open vlc binary (by default /usr/bin/vlc) into the hex editor, make a backup before that.
Step-3: Now search for the following string


Step-4: Edit the string as follows


Step-4: click on Save

That’s all. Thanks 🙂