run vlc as root

sed -i 's/geteuid/getppid/g' /usr/bin/vlc
Enable root user to run VLC

-6
By: nadavkav
2014-11-21 17:43:59

What Others Think

Why on earth would you want to do this? One malicious video or music file and you could compromise your whole machine. (Besides on my machine /usr/bin/vlc is a binary so your command won't work).
flatcap · 269 weeks and 1 day ago
I always (15+ years) use my system as root. I never had any issues. from all the apps I use, vlc is the only app that insist on running under normal user privileges. I do not see how can a movie or a music file can compromise my system. Can you give a real example? After each upgrade of vlc I run the above command to enable vlc to run as root. (It works on the vlc binary) hope some people find it useful :-)
nadavkav · 268 weeks and 4 days ago
"I've smoked cigarettes for 15 years and I don't have any lung cancer!" 1. Running everything as root is stupid 2. Running a media player as root is stupid 3. Your method for editing the vlc binary using a string substitution is stupid 4. It was stupid to post this 5. Everyone is now stupider for having read it
malathion · 266 weeks and 2 days ago

What do you think?

Any thoughts on this command? Does it work on your machine? Can you do the same thing with only 14 characters?

You must be signed in to comment.

What's this?

commandlinefu.com is the place to record those command-line gems that you return to again and again. That way others can gain from your CLI wisdom and you from theirs too. All commands can be commented on, discussed and voted up or down.

Share Your Commands



Stay in the loop…

Follow the Tweets.

Every new command is wrapped in a tweet and posted to Twitter. Following the stream is a great way of staying abreast of the latest commands. For the more discerning, there are Twitter accounts for commands that get a minimum of 3 and 10 votes - that way only the great commands get tweeted.

» http://twitter.com/commandlinefu
» http://twitter.com/commandlinefu3
» http://twitter.com/commandlinefu10

Subscribe to the feeds.

Use your favourite RSS aggregator to stay in touch with the latest commands. There are feeds mirroring the 3 Twitter streams as well as for virtually every other subset (users, tags, functions,…):

Subscribe to the feed for: