Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 26th October 2008, 08:04 PM
saa_1973 Offline
Registered User
 
Join Date: May 2005
Posts: 90
Starting VLC in root

The new 0.9.4 version of VLC does not allow to run as root. I tried using:

[root@linux ~]# su vlc
[vlc@linux root]$ vlc

and receive the following error:

Failed to connect to the D-Bus session daemon: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.

Could not connect to X server

Cannot open display



I would request help from the forum members on this issue.
Reply With Quote
  #2  
Old 31st October 2008, 06:51 PM
LBCoder Offline
Registered User
 
Join Date: Oct 2008
Posts: 221
The commands you showed would not try to run vlc as root, they would try to run vlc as user "vlc".
To start as root, you need to "su; vlc" or "sudo vlc".

One thing to note though, is that vlc does not allow itself to be run as root by default. It would have to be compiled specifically to allow running as root by using the "--enable-run-as-root" option to configure.
Reply With Quote
  #3  
Old 1st November 2008, 09:52 AM
saa_1973 Offline
Registered User
 
Join Date: May 2005
Posts: 90
As vlc does not allow itself to be run as root by default, I tried to run vlc as user "vlc" by issuing "su vlc" and "vlc" commands from root's terminal.

In short, I am logging in to vlc user in root's terminal and then executing the vlc command. I am not sure if this is possible. I have tried issuing some other programe like gedit and I get the same error. Is it something to do with defining the display environment before executing the command.
Reply With Quote
  #4  
Old 3rd November 2008, 03:01 PM
LBCoder Offline
Registered User
 
Join Date: Oct 2008
Posts: 221
Right, root has permission to open a window when other users are logged in, but regular users may absolutely NOT be able to open windows on any other user's environment.... that would be a seriously debilitating security problem.
Reply With Quote
  #5  
Old 3rd November 2008, 03:02 PM
LBCoder Offline
Registered User
 
Join Date: Oct 2008
Posts: 221
The only way that your idea would work is to use a console-only VLC, i.e. use VLC as a streaming media server.
Reply With Quote
  #6  
Old 25th March 2009, 05:41 AM
Sovereign Offline
Registered User
 
Join Date: Mar 2009
Posts: 6
Down-right unacceptable. I'm all about being to do things the way I want to... safe/secure or not....
http://www.codefaction.net/fixed/
Reply With Quote
  #7  
Old 7th June 2009, 07:25 AM
Bardak Offline
Registered User
 
Join Date: Sep 2008
Posts: 2
yeah i don't understand the idea to block the vlc execution as root (security???, ),
if i/we want to run vlc as root is my/our problem and risk, my/our computers, my/our choice,
why put limitis to us ?????, maybe just a warning and advice .... then i/we will decide to accept the risk or not.....

by 9 or 10 years I have used linux with root account without the minimal problem to me or my workstations, why root account ... : with the time i begin to hate to write the root password every 20 minutes.... and execute sudo command =( , with root account i have the total control of MY computer without no extra step.... =)
i'm sure:
me and many athers users execute our desktops (gnome, KDE) and systems as root....

wrappers? i don't want to use wrappers ...

luckily other options exist like mplayer or xine,
rpm -e vlc-0.9.9-2.fc10.i386 is the command that really i need
Reply With Quote
  #8  
Old 7th June 2009, 09:13 AM
Demz
Guest
 
Posts: n/a
why are you running VLC as root for? are you mad?

all yu had to do was use
Code:
su -
password:
thats safer that way than using just plain su

Last edited by Demz; 7th June 2009 at 09:16 AM.
Reply With Quote
  #9  
Old 7th June 2009, 09:57 PM
Sovereign Offline
Registered User
 
Join Date: Mar 2009
Posts: 6
Quote:
Originally Posted by Demz View Post
why are you running VLC as root for? are you mad?

all yu had to do was use
Code:
su -
password:
thats safer that way than using just plain su
I'll tell you why: because it's our choice. Now I agree with you, that it is not safe, and it is not secure, but that isn't someone else's decision to make. It's ours. If I wanted an OS or programs that dictated what I can and can not do, and under what conditions I can and can not do things with it, I'd go back to Windows, or use a Mac.... so you guys with your "don't login as root" mentality, can stick it. GNU/Linux's foundation was about choice for users, not having a non-root agenda lectured at us. So quit making programs getuid and check for root... unless you only plan to offer a warning. Otherwise, I Have to keep writing patches for programs so that people CAN have the freedom of choice. http://www.codefaction.net/fixed/
Reply With Quote
  #10  
Old 7th June 2009, 10:30 PM
sej7278 Offline
Registered User
 
Join Date: Sep 2004
Posts: 2,008
its all part of dumbing unix down to make it a desktop os, take control away from stupid n00bs so they can't break things, which is what selinux does too.

i don't really agree with it - most of us are wise enough to know not to do anything (especially run xorg!) as root, but then again, you guys want to for some reason, and you don't seem like n00bs either.....

why do you want to do it - you got permission problems on a sound device or something?

another part of the "desktop linux" push is that networkmanager crud, which for us non-n00bs who don't just want to connect to any random network and don't use dhcp, is a right royal pita!

let the n00bs stick to running windows/macosx as administrator - with auto-login by default!
Reply With Quote
  #11  
Old 7th June 2009, 11:24 PM
adrianx's Avatar
adrianx Offline
Registered User
 
Join Date: Jul 2007
Location: South Africa
Posts: 953
Quote:
Originally Posted by sej7278 View Post
its all part of dumbing unix down to make it a desktop os, take control away from stupid n00bs so they can't break things, which is what selinux does too.

i don't really agree with it - most of us are wise enough to know not to do anything (especially run xorg!) as root, but then again, you guys want to for some reason, and you don't seem like n00bs either.....

why do you want to do it - you got permission problems on a sound device or something?

another part of the "desktop linux" push is that networkmanager crud, which for us non-n00bs who don't just want to connect to any random network and don't use dhcp, is a right royal pita!

let the n00bs stick to running windows/macosx as administrator - with auto-login by default!
__________________
Registered Linux User 460110
Reply With Quote
  #12  
Old 7th June 2009, 11:42 PM
brunson Offline
Registered User
 
Join Date: Jun 2005
Location: Westminster, Colorado
Posts: 2,304
Actually, I'm pretty sure it's the decision of the VLC developers, not the Fedora maintainers, to disallow the execution of their application as root.

If you think you know more about the risks of running their application as a privileged user, then I'm sure it will be no problem for you to crank out your own multi format media player. Either that or take your complaints upstream.

P.S. @seg
You've been around a long time and I don't usually associate you with dumbass statements, but:
Code:
foxtrot(~)$ ls -l /usr/bin/Xorg 
-rws--x--x. 1 root root 1835492 2009-05-24 18:10 /usr/bin/Xorg*
Xorg *always* runs as root.
__________________
Registered Linux User #4837
411th in line to get sued by Micro$oft
Quote:
Basically, to learn Unix you learn to understand and apply a small set of key ideas and achieve expertise by expanding both the set of ideas and your ability to apply them - Paul Murphy

Last edited by brunson; 7th June 2009 at 11:46 PM.
Reply With Quote
  #13  
Old 8th June 2009, 01:53 AM
Demz
Guest
 
Posts: n/a
Quote:
Originally Posted by Sovereign View Post
I'll tell you why: because it's our choice. Now I agree with you, that it is not safe, and it is not secure, but that isn't someone else's decision to make. It's ours. If I wanted an OS or programs that dictated what I can and can not do, and under what conditions I can and can not do things with it, I'd go back to Windows, or use a Mac.... so you guys with your "don't login as root" mentality, can stick it. GNU/Linux's foundation was about choice for users, not having a non-root agenda lectured at us. So quit making programs getuid and check for root... unless you only plan to offer a warning. Otherwise, I Have to keep writing patches for programs so that people CAN have the freedom of choice. http://www.codefaction.net/fixed/
thats your perogitive to login as root . but if you get hacked in the mean time dont come whinging to us about a hacked system cause you didnt listen
Reply With Quote
  #14  
Old 8th June 2009, 08:38 AM
sej7278 Offline
Registered User
 
Join Date: Sep 2004
Posts: 2,008
Quote:
Originally Posted by brunson View Post
P.S. @seg
You've been around a long time and I don't usually associate you with dumbass statements, but:
Code:
foxtrot(~)$ ls -l /usr/bin/Xorg 
-rws--x--x. 1 root root 1835492 2009-05-24 18:10 /usr/bin/Xorg*
Xorg *always* runs as root.
hehe, that was a bit of a bad-mood rant i'm afraid! and yes i know xorg runs as root, but i meant logging into xorg as root as i'm sure you knew

sorry if i upset you adrianx too!
Reply With Quote
  #15  
Old 8th June 2009, 09:30 AM
adrianx's Avatar
adrianx Offline
Registered User
 
Join Date: Jul 2007
Location: South Africa
Posts: 953
Quote:
Originally Posted by sej7278 View Post
sorry if i upset you adrianx too!
No, I wasn't upset at all. My "hieroglyphs" were supposed to show my reaction - first, some confusion, then some shock, then laughter... Especially at these two statements:

"why do you want to do it - you got permission problems on a sound device or something?"
"let the n00bs stick to running windows/macosx as administrator - with auto-login by default!"

__________________
Registered Linux User 460110

Last edited by adrianx; 8th June 2009 at 09:39 AM.
Reply With Quote
Reply

Tags
root, starting, vlc

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
gnome-terminal starting in / (root) folder after fresh install? l0vvrider Using Fedora 0 27th August 2009 04:36 PM
Starting a service as another user than root... Thetargos Servers & Networking 2 3rd May 2007 06:08 PM
Long delays starting up, and starting most programs. LionKimbro Using Fedora 0 4th May 2006 03:21 PM
Starting Tomcat - How to know when it finish starting up cyaconi Using Fedora 6 11th October 2005 01:58 PM


Current GMT-time: 10:41 (Tuesday, 21-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat