Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
root cannot open firefox ???
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
padoor
Advocate
Advocate


Joined: 30 Dec 2005
Posts: 4185
Location: india

PostPosted: Mon Jun 27, 2011 5:04 am    Post subject: root cannot open firefox ??? Reply with quote

Code:
localhost ramaswamy # firefox-bin
g_dbus_connection_real_closed: Remote peer vanished with error: Underlying GIOStream returned 0 bytes on an async read (g-io-error-quark, 0). Exiting.
Terminated
localhost ramaswamy #

ramaswamy@localhost ~ $ firefox-bin
Failed to open VDPAU backend libvdpau_nvidia.so: cannot open shared object file: No such file or directory
Failed to open VDPAU backend libvdpau_nvidia.so: cannot open shared object file: No such file or directory
Failed to open VDPAU backend libvdpau_nvidia.so: cannot open shared object file: No such file or directory


Code:
ramaswamy@localhost ~ $ firefox
Failed to open VDPAU backend libvdpau_nvidia.so: cannot open shared object file: No such file or directory
Failed to open VDPAU backend libvdpau_nvidia.so: cannot open shared object file: No such file or directory
Failed to open VDPAU backend libvdpau_nvidia.so: cannot open shared object file: No such file or directory

localhost ramaswamy # firefox
g_dbus_connection_real_closed: Remote peer vanished with error: Underlying GIOStream returned 0 bytes on an async read (g-io-error-quark, 0). Exiting.
Terminated
localhost ramaswamy #
Code:


both bin and compiled firefox behave the sameway
what is wrong?

_________________
reach out a little bit more to catch it (DON'T BELIEVE the advocate part under my user name)
Back to top
View user's profile Send private message
audiodef
Watchman
Watchman


Joined: 06 Jul 2005
Posts: 6640
Location: The soundosphere

PostPosted: Mon Jun 27, 2011 2:34 pm    Post subject: Reply with quote

If Firefox runs as a regular user, check /etc/group and see what your regular user belongs to. Add root to those groups. I'm guessing you need to add root to the video group.
_________________
decibel Linux: https://decibellinux.org
Github: https://github.com/Gentoo-Music-and-Audio-Technology
Facebook: https://www.facebook.com/decibellinux
Discord: https://discord.gg/73XV24dNPN
Back to top
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 21867

PostPosted: Mon Jun 27, 2011 10:02 pm    Post subject: Reply with quote

Given the extensive attack surface that Firefox represents, I would think that failure to start Firefox as root would constitute a security feature, not a bug. :)

Why are you trying to run Firefox as root?
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 8291
Location: Saint Amant, Acadiana

PostPosted: Mon Jun 27, 2011 11:13 pm    Post subject: Reply with quote

What Hu said, Firefox is a network/internet GUI application, root has no business with it. Root is a local housekeeping account, root does not make remote connections, it even does not run X.
_________________
My Gentoo installation notes.
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
salahx
Guru
Guru


Joined: 12 Mar 2005
Posts: 534

PostPosted: Tue Jun 28, 2011 3:17 am    Post subject: Reply with quote

Basically this error means B-bus abruptly dropped the connection - it'll do this if there a protocol violation (illegal UTF-8, malformed command, etc). In particular: No one except the user may connect to their session bus - not even root. Try clearing DBUS_SESSION_BUS_ADDRESS with
Code:
unset DBUS_SESSION_BUS_ADDRESS


However as other as said - running Firefox (and especially Flash) as root is about as good idea and sampling the contents of unlabeled medicine bottle to see what each ones does so you can relabel them later....
Back to top
View user's profile Send private message
padoor
Advocate
Advocate


Joined: 30 Dec 2005
Posts: 4185
Location: india

PostPosted: Tue Jun 28, 2011 4:22 am    Post subject: Reply with quote

i understand the security part of the X vlc etc.
opera runs fine as root.
for managing my usb drive files i need to login as root
command line operation of moving /copying files to and from usb drives is difficult as they have windows files
at the time if i have to look in the email or something i use a browser.

apart from that the user invoked firefox also shows some errors

Code:
Failed to open VDPAU backend libvdpau_nvidia.so: cannot open shared object file: No such file or directory


from menu click the firefox icon firefox comes up without fail
as yet no trouble has been found in firefox operations.
_________________
reach out a little bit more to catch it (DON'T BELIEVE the advocate part under my user name)
Back to top
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 21867

PostPosted: Wed Jun 29, 2011 1:40 am    Post subject: Reply with quote

padoor wrote:
opera runs fine as root.
Many things run fine as root, but that does not mean you should run them as root!
padoor wrote:
for managing my usb drive files i need to login as root
This is wrong in two senses. First, it is wrong in that there is no need for you to run every single process as root just because you want a root privileged shell to manipulate the USB drive. Second, it is wrong in that you could configure the system not to require root privilege to manipulate the USB drive.
Back to top
View user's profile Send private message
salahx
Guru
Guru


Joined: 12 Mar 2005
Posts: 534

PostPosted: Wed Jun 29, 2011 3:44 pm    Post subject: Reply with quote

The "Failed to open VDPAU backend libvdpau_nvidia.so: cannot open shared object file: No such file or directory" is actually from Flash player, not Firefox
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum