Linux - How to run vlc player in root, Error VLC is not supposed to be run as root

How to run vlc player in root

Today I installed VLC as root and when I tried to execute or run vlc player I received error VLC is not supposed to be run as root.

Installing VLC: To install VLC, your rpmfusion repo must be configured

RPMfusion Free Release
 # yum localinstall --nogpgcheck http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm
RPMfusion NonFree Release
 # yum localinstall --nogpgcheck http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm

Install VLC Player
 # yum install vlc

After Installing VLC I was unable to start it in GUI, Then I tried executing vlc player in command mode. By the time I received below error.
 # vlc
VLC is not supposed to be run as root. Sorry.
If you need to use real-time priorities and/or privileged TCP ports
you can use vlc-wrapper (make sure it is Set-UID root and
cannot be run by non-trusted users first).


To fix it there are multiple options available,but our simple solution will be to edit the binary file. We know that it is difficult to edit binary file. So make a copy of it before editing it.

 # cp /usr/bin/vlc /usr/bin/vlc-backup

 # sed -i 's/geteuid/getppid/' /usr/bin/vlc
Now VLC media player 2.2.1 is ready to use :)

The topic on Linux - How to run vlc player in root is posted by - Math

Hope you have enjoyed, Linux - How to run vlc player in rootThanks for your time

Tech Bluff