

Then search for geteuid string and replace it with getppid, save the file and exit. $ sudo sed -i 's/geteuid/getppid/' /usr/bin/vlcĪlternatively, edit the VLC binary file using a hex-editor such as bless, hexeditor. In this command, ‘ s/geteuid/getppid/‘ ( regexp=geteuid, replacement=getppid) does the magic. Run the sed command below to make changes in the VLC binary file, it will replace the geteuid variable (which determines the effective user ID of the calling process) with getppid (which will determine the parent process ID of the calling process). 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)." If you are running your Linux system as root, for example Kali Linux, you’ll get the error below when you try to run VLC.

Installing VLC is so easy, it is available in official repositories of mainstream Linux distros, just run the following command on your respective Linux distribution. Note: There is a reason why VLC won’t run in a root account (or can’t be run as root), so because the root account is for system maintenance only, not for everyday activities. In this article, we will show you a simple hack that will enable you to run VLC media player as root user in Linux. Suggested Read: 10 Best Open Source Media Players for Linux

Additionally, VLC supports various streaming protocols enabling users to stream content over a network. Some of its notable features include support for almost all (if not most) multimedia files, it also supports Audio CDs, VCDs, and DVDs. It is a very popular (and possibly the most used) media player out there. VLC is a free and open source cross-platform multimedia player, encoder and streamer that works.
