Thursday, May 2, 2024
 Popular · Latest · Hot · Upcoming
9
rated 0 times [  9] [ 0]  / answers: 1 / hits: 21143  / 1 Year ago, wed, may 31, 2023, 5:37:51

I'm trying to use Vlc with sudo but it doesn't work.



This is the error:



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


Can you help me here?



Edit:
I am adding a reason after reading comments.




I just want to give one reason: I am using mac + ubuntu and my movies collection are in mac boot disk. which is shown as read only form ubuntu(I don't know why) and I cant run chmod on files. I can access Movies,Documents files using nautilus with sudo. But to play these files I need VLC with sudo. I think it's a good reason.



More From » sudo

 Answers
5

You will be able to run VLC as root by modifying the VLC binary, located in /usr/bin



First, you'll need a hex-editor, like Bless :



sudo apt-get install bless


Then, you'll open the VLC binary with the hex-editor :



sudo bless /usr/bin/vlc


Search and change the geteuid string by getppid, save and exit.



You can now launch VLC as root.


[#27194] Thursday, June 1, 2023, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
afisird

Total Points: 193
Total Questions: 112
Total Answers: 111

Location: Angola
Member since Mon, Jul 12, 2021
3 Years ago
afisird questions
Wed, Jul 27, 22, 03:53, 2 Years ago
Sun, Mar 12, 23, 18:05, 1 Year ago
Sun, Dec 11, 22, 01:19, 1 Year ago
;