Run VLC using root account
Hi Guys
I m facing a problem while run vlc using root account , when i run vlc nothing is happened and the following message is display 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 first and cannot be run by non-trusted users first). so i want to know is there is any trick to run vlc using root account all reply is appreciated thanks in advance Best Regard Ashish Sood |
The only way around this which I'm familiar with is recompiling. Pass the --enable-run-as-root flag to ./configure and vlc should be able to run as root.
|
But i does not install VLC using tarball, i install it using rpm and i m using fedora 10 so i there is any way to run vlc as root.
Thanks For reply Maligree |
Quote:
Why do you want to run it in root account? Just run it as user. |
Quote:
|
guys i actually use to login using root account instead non privelage user account , that why i want to know .
Thanks for reply |
Well, you already got your answer in the second post. You'll have to remove your existing package and install vlc from source with the appropriate parameters.
Please don't go onto the internet as root, as such irresponsible behaviour puts the rest of us at risk. Regards, |
If you're going to sign in as root all the time you might as well go back to windows.
|
Everywhere i'v read about this topic theres always a bunch of people blabbering on about privaleges. This person got his answer, so why all the crap about what he should and should not do, after all its his machine, isn't linux meant to be about freedom and choice , im sure he has already acknowledged the risks of using his machine with the root account and doesn't want it most of this crap.
People should post like maligree, with the actual answer! |
Sorry to post to a partly old thread, but this is a good solution to this problem (and no, I'm not spamming the forums): http://www.codefaction.net/fixed/
It has the modified VLC source code to strip the checking for root... it has the binary precompiled (i386 arch) and a patch if you want to apply it to the vlc developers code directly. Thanks. |
Quote:
|
Quote:
putting the rest of you at risk is a risk I am willing to take ;) --------------------------------- also: before doing these steps you may have to purge your existing vlc installation (apt-get purge vlc) wget -c http://download.videolan.org/pub/vid...0.9.9a.tar.bz2 tar -xvf vlc-0.9.9a.tar.bz2 cd vlc-0.9.9a apt-get build-dep vlc ./configure --enable-run-as-root make make install ------------------------------ start it from command line, (simply type vlc or /usr/local/bin/vlc) it may give you an error about libvlc.so, if it does run: apt-get install libvlc-dev libvlc2 and just like magic, vlc is workings in root. compiling takes forever though -_- ... |
Quote:
Logically speaking, Linux should warn you of hazards whenever you plug in your ethernet cable. |
Quote:
|
If you are running KDE, the simple thing to do would be to...
1) Click your KDE Start Menu. 2) Applications/Multimedia/Video folder (If running PClinux, Kick off menu) 3) Right click VLC and "edit item" (KDE Menu Editor) 4) Second last option on right side (check box "Run as different user") 5) Enter a profile user name on your computer other then root. 6) Exit and save changes. I'm no computer linux guru, but this was easy to do and it WORKS! |
more on running vlc as root
Hi All
Well this works but no sound... "If you are running KDE, the simple thing to do would be to... 1) Click your KDE Start Menu. 2) Applications/Multimedia/Video folder (If running PClinux, Kick off menu) 3) Right click VLC and "edit item" (KDE Menu Editor) 4) Second last option on right side (check box "Run as different user") 5) Enter a profile user name on your computer other then root. 6) Exit and save changes." So the permissions of the lowly user are not good enough to have access to the sound system. So: [as root - open terminal window] cd /dev chmod 666 dsp vlc now has sound when run as a 'user'. |
I know this thread is over 2 years old, but I am posting because it is the first thread that comes up on a google search for "run vlc player as root".
I just wanted to post a simpler way to run vlc as root without recompiling the source. You can open up the binary for ubunt it is found in /usr/bin/vlc, then find the string that matches "geteuid" and replace it with "getppid". It's simple, quick, fast and works on the original binary, so there should be no issues. It also works with various other programs. |
Saying
Quote:
As said before: root is for system maintenance. |
Quote:
;) |
Quote:
There is no danger of liability on the developers as the issues are well known, why must people keep warning a person who already knows the warning. Just think of those people as being unwise or downright stupid and keep it moving. You can say things a million times but not everyone is going to choose to run their distro as you do. |
I think using vlc-wrapper would do.
|
Quote:
Quote:
I couldn't care less about your system, but what I care about are my systems, those systems that are brute-force attacked, DDOSed or simply receive spam mails from compromised systems. With your behavior you are potentially harming our machines, that is why we have to repeat this over and over again. Did you consider that as part of the risks you claim to have understood? I couldn't care less about your system, but you should, because your system may not only harm our machines, it may harm you directly, in person. Explain to the police that the copyrighted material hosted on your machines does not come from you. Or the snuff videos, childporn or whatever illegal content you may think of. Did you consider that as part of the risks you claim to have understood? Quote:
Quote:
Quote:
|
Sorry TobiSGD but one with experience running the whole GUI as root would disagree and I'm aware of all that you mean. The only difference is probably just the machine in concern. For normal user desktops running your GUI as root or just a normal user is not really different when it comes to security risks. For capable users, things like 'su' and 'sudo' are just things that slows them down. It's not about being lazy or not. It's just about being practical.
|
May I just ask what exactly it is that you do that you have to do that needs the whole GUI running as root?
|
Quote:
People should know to have data-backups, make restore points, not use the same passwords over and over again. Basic security and data protection issues. At what point do we say they take the responsibility? Whether people choose to do things out of laziness or lack of will-power, there comes a point that you give them the responsibility. These programs themselves tell the users about the dangers and try to prevent them from running as root, just like packs of cigarettes tell you the dangers of cancer, but it seems like there are some people who want to take their outrage at the lack of good sense and make some type of prohibition and become the Mayor Bloomberg of linux use. I get it, some people are offended that such people would take such risks, but once you know they have been informed, then the rest is on them. It is their computers, their data, their computing life, let them live it. |
Quote:
We don't allow drunk drivers, not because they may damage their own health or their own cars, but because they may harm others with that behavior. So why should we allow people to pose a risk on us in other areas? That doesn't really make sense. |
Quote:
There actually wasn't really a reason or specific sets of tasks that I chose to run as root by default. I got used to running systems with full control and I am in control of my system so why would I have to be careful then. The first GUI system I had - Slackware with GUI 9.1 (KDE), I always ran as root and never had a problem with it. Knowing myself I do often encounter tasks which needs superuser accesses. Well I don't really want to be specific in saying what they are. One thing is when I'm still building my system at least after a lightweight desktop like XFCE4 is already running. Running as root in GUI is also better if you're doing low-level development/debugging tasks. I also choose my favorite editor sometimes when editing root-owned files. In general I just didn't want to bother myself with unnecessary efforts of elevating tasks with su or sudo every time you needed them. P.S. I'm not sure how a GUI app could run with sudo. I don't like the idea. I believe it would cause to allocate more memory for the sake of the app's runtime enironment. I haven't explored much that yet but so far I see it as a hack. |
Quote:
Quote:
Quote:
Quote:
Quote:
Sorry I have to say that, but if you were working for me as a system admin with this attitude you wouldn't work for me anymore. |
Quote:
Quote:
Quote:
Anyhow this just boils down as a matter of personal philosophy but you saying that: Quote:
|
Quote:
Quote:
Quote:
Quote:
Quote:
Just for educational purpose, for anyone who is interested in what I am speaking about in my conservativeness ;) : http://en.wikipedia.org/wiki/Princip...east_privilege |
Quote:
Quote:
Quote:
Quote:
Quote:
|
Quote:
Quote:
By the way, I don't have to prove you wrong, usually the burden of proof is on the one who makes the claims. |
Quote:
Quote:
|
Quote:
Quote:
Quote:
|
Quote:
Quote:
Quote:
The thing is that there are situations where being careful is not necessary, and there are also situations where being hacked as a normal user is just as damaging as being hacked as root. |
Quote:
Quote:
Or do you start the browser as unprivileged user using one of the "hacks"? Quote:
|
Quote:
Quote:
Quote:
Quote:
Quote:
|
Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
|
Quote:
In turn I'll just point out completely avoidable risks. Cause and effect. |
Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
|
You have valid points when you compile your software yourself with an eye to security checks and hardening the system. This will in fact to some extent minimize the risks of possible attacks for your system. It is harder to break into your system, but not impossible, so you could get even better security with building another wall with running your system as user with the least necessary privileges.
As I see it we both have a different approach to security (although I still would not call insisting on the principles I pointed to earlier conservative) and we both have valid points in our approach. So discussing this endlessly will not bring any of us any further. Let me go back to my sentence that initially started the discussion between us: Quote:
Quote:
|
run vlc player as root
Quote:
Great POST |
Run VLC as root
Hope this could help you out.
|
Quote:
Quote:
|
Quote:
Kind of like... Quote:
I agree with Randicus - this is idiotic advice and the reason given in the article for running something as root is simply wrong, incorrect, stupid, moronic even... might even be considered a malicious posting! Please do not post wrong, incorrect and harmful information as "helpful", it helps no one and only poisons the knowledge pool. |
so you use a hex editor to edit the binary
not good then you play a vid ( as root ) not that good then THAT VIDEO ( being a nicly hacked one calls curl to grab a file AS ROOT!!!! now THAT IS VERY VERY BAD!!!!! you just instilled a Trojan by playing a video AS ROOT that is very BAD and you are a "Bleeped bleep" for doing it Having your credit card stolen from the keyloger YOU LET BE INSTALLED is the least of your problems |
Quote:
If you are going to install a VLC build that allows running on root anyway, just compile it with --enable-run-as-root. |
Quote:
And the guy probably thought of donwloading the file to be viewed locally and played it with VLC as root. He also happens to be too unfortunate for having a vulnerable VLC version with vulnerable blob-parsing libraries - with vulnerable builds that the exploit despite being generic was luckily able to compromise his system. He also happens to have a very outdated system not having any kind of kernel-level protection - even commonly default ones like PaX/NX and ASLR. |
resolve root run vlc
This is what worked for me. No compilation required.
VLC is not supposed to be run as root. Sorry. – Solution Anyways, i installed vlc using following command ; # aptitude install vlc And tried to run vlc as root i got error on my terminal ; # 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). This error says straight forward vlc can not be run as root privileged user. What to do now? Don’t be panic. Here is the hacked solution # vi /usr/bin/vlc search for geteuid and replace it with getppid Save file & Exit. Now it should work, try to run it again or sed -i 's/geteuid/getppid/' /usr/bin/vlc |
All times are GMT -5. The time now is 01:18 AM. |