LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 02-09-2009, 05:50 AM   #1
Ashish Sood
Member
 
Registered: Feb 2009
Location: Gwalior
Distribution: Fedora 22, RHEL 6,7
Posts: 180

Rep: Reputation: 15
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
 
Old 02-09-2009, 06:24 AM   #2
Maligree
Member
 
Registered: Mar 2008
Distribution: Gentoo, CentOS, Fedora, Arch
Posts: 231
Blog Entries: 1

Rep: Reputation: 42
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.
 
Old 02-09-2009, 07:11 AM   #3
Ashish Sood
Member
 
Registered: Feb 2009
Location: Gwalior
Distribution: Fedora 22, RHEL 6,7
Posts: 180

Original Poster
Rep: Reputation: 15
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
 
Old 02-09-2009, 08:16 AM   #4
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
Quote:
so i want to know is there is any trick to run vlc using root account
There is a reason why it won't run in a root account.
Why do you want to run it in root account?
Just run it as user.
 
Old 02-09-2009, 08:42 AM   #5
ErV
Senior Member
 
Registered: Mar 2007
Location: Russia
Distribution: Slackware 12.2
Posts: 1,202
Blog Entries: 3

Rep: Reputation: 62
Quote:
Originally Posted by Ashish Sood View Post
so i want to know is there is any trick to run vlc using root account
Why do you need this? Root account is for system maintenance only, not for everyday use.
 
Old 02-09-2009, 10:16 AM   #6
Ashish Sood
Member
 
Registered: Feb 2009
Location: Gwalior
Distribution: Fedora 22, RHEL 6,7
Posts: 180

Original Poster
Rep: Reputation: 15
guys i actually use to login using root account instead non privelage user account , that why i want to know .

Thanks for reply
 
Old 02-09-2009, 10:55 AM   #7
mrclisdue
Senior Member
 
Registered: Dec 2005
Distribution: Slackware
Posts: 1,134

Rep: Reputation: 277Reputation: 277Reputation: 277
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,

Last edited by mrclisdue; 02-09-2009 at 10:56 AM.
 
Old 02-09-2009, 10:58 AM   #8
ncsuapex
Member
 
Registered: Dec 2004
Location: Raleigh, NC
Distribution: CentOS 2.6.18-53.1.4.el5
Posts: 770

Rep: Reputation: 44
If you're going to sign in as root all the time you might as well go back to windows.
 
Old 02-19-2009, 09:47 AM   #9
xXCanisLupusXx
LQ Newbie
 
Registered: Jan 2009
Location: The Hell That Is England
Distribution: Ubuntu Server, OpenSolaris
Posts: 23

Rep: Reputation: 16
Thumbs down

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!
 
1 members found this post helpful.
Old 03-24-2009, 11:20 PM   #10
soveriegn
LQ Newbie
 
Registered: Mar 2009
Posts: 2

Rep: Reputation: 1
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.
 
Old 04-12-2009, 07:36 AM   #11
nevyntanis
LQ Newbie
 
Registered: Apr 2009
Posts: 2

Rep: Reputation: 0
Quote:
Originally Posted by mrclisdue View Post
Please don't go onto the internet as root, as such irresponsible behaviour puts the rest of us at risk.

Regards,
Hi, this is the second time u have said this, could u please elaborate, simply pls
 
Old 06-28-2009, 09:08 AM   #12
shell++
LQ Newbie
 
Registered: Jun 2009
Posts: 2

Rep: Reputation: 0
Quote:
Originally Posted by mrclisdue View Post
Please don't go onto the internet as root, as such irresponsible behaviour puts the rest of us at risk.
Regards,
-_- come to the dark side, run as root, you will find that you don't have to type sudo in front of anything you type, there will be no locks on the icons on your desktop, and you will notice that you have grown a full beard.

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 -_- ...
 
Old 07-07-2009, 07:58 PM   #13
Raveolution
Member
 
Registered: Mar 2004
Distribution: Fedora & CentOS
Posts: 213
Blog Entries: 2

Rep: Reputation: 26
Quote:
Originally Posted by soveriegn View Post
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.
Much thanks for this post. If I wanted an operating system to hold my hand and remind me of what is a potential security problem, I would have gotten Windows Vista.

Logically speaking, Linux should warn you of hazards whenever you plug in your ethernet cable.
 
Old 07-07-2009, 07:59 PM   #14
Raveolution
Member
 
Registered: Mar 2004
Distribution: Fedora & CentOS
Posts: 213
Blog Entries: 2

Rep: Reputation: 26
Quote:
Originally Posted by mrclisdue View Post
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,
Plugging into teh intarwebs puts the rest of us at risk. Why isn't there a warning against going online as root?
 
Old 01-05-2010, 03:21 PM   #15
Hugeman
LQ Newbie
 
Registered: Jan 2010
Posts: 1

Rep: Reputation: 0
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!
 
  


Reply

Tags
fedora


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
root account or user account arodlinux SUSE / openSUSE 3 12-23-2008 08:59 PM
fedora 10 vlc cannot run as root me_logan Linux - Software 1 12-07-2008 04:45 PM
Why is my common account can't open Terminal in XFCE4 but root account? notsay Slackware 4 08-18-2007 11:29 PM
is it legitimate and allowed and can be done to make another user account set uid and gid to null 0 to make another root account with different name and possibly not damage the debian system creating and using that new account BenJoBoy Linux - Newbie 12 01-29-2006 10:02 AM
Firefox cannot run (start and exit within 2 secs) with root account davidas Linux - Software 5 04-08-2004 01:36 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 11:41 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration