VLC is a costless in addition to opened upward source cross-platform multimedia thespian in addition to framework that plays most multimedia files likewise equally DVDs, Audio CDs, VCDs, in addition to diverse streaming protocols. It is i of the most used in addition to pop Media thespian for Linux users.Very tardily to install equally it’s available via close whatsoever Linux distro’s repo. However, inward instance you lot role Linux equally rootage user similar me, (or you’re a swain Kali Linux user) in addition to thus you lot lead maintain already seen this mistake “VLC is non supposed to last run equally root. Sorry“. This postal service volition larn through the steps required to run vlc as rootage inward Linux (any Linux to last precise).
In instance you lot don’t lead maintain VLC installed, you lot tin role the next command:
apt-get install vlc
But when you lot endeavor to run VLC as root, you lot volition run into the next error:
VLC running equally rootage mistake - Click to expand
VLC running equally rootage mistake - Click to expand
VLC is non supposed to last run equally root. Sorry.
If you lot ask to role real-time priorities and/or privileged TCP ports
you lot tin role vlc-wrapper (make certain it is Set-UID rootage in addition to cannot last run past times non-trusted users first).
Fixing “VLC is non supposed to last run equally root. Sorry” error.
Though it is non advisable to run the applications equally root, but at that topographic point is a vogue to practise that. First of all, lead maintain a backup:
root@kali: # cp /usr/bin/vlc /usr/bin/vlc-backup
Now opened upward vlc binary using hexeditor:
root@kali: # hexeditor /usr/bin/vlc
This volition opened upward VLC binary inward hexeditor. Press CTRL+W to opened upward search window. Select “search for text string” in addition to press enter.
Type inward geteuid and press Enter.
Now Press Tab key on your keyboard. This switches you lot to ASCII side of hexeditor.
Replace geteuid with getppid as shown inward the icon below:
Press Ctrl + X to move saving changes. Save equally /usr/bin/vlc.
To revert your changes, you lot merely ask to restore the backup created earlier:
root@kali: # cp /usr/bin/vlc-backup /usr/bin/vlc
Pretty easy.







