Wednesday, April 16, 2014

VLC media player not running as Root user in Fedora 19?

In Fedora 19, VLC media player won't run as root user. If a user try to run VLC media player in Fedora 19 as root user, it shows following error message.

# 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).

It can be made to run as Root user by simple modification in VLC config file.
Step 1: Open Files application.
Step 2: After Files application gets open, in the side pane there will be 'Computer', click on it.
Step 3: There open bin -> usr -> vlc.
Step 4: In vlc file find geteuid and change it to getppid.

Is it safe to modify the file?
VLC by default won't open in root user. The reason behind it is security. As it is a third-party application, it is possible to download it with some malcious code. So it is not recommended to run VLC media player as root user. Linux recommends user to use normal account for everyday activity. Root user should be used only for some modifications in the system. If you are not worried about your security then go ahead and change the file.

No comments:

Post a Comment