You are not logged in.

#1 2019-05-15 16:55:44

scot
Member
Registered: 2017-04-22
Posts: 5

running one appl as root Qt WARNING: wrong ownership /run/user/1000

[this post is related to, but not a continuation of, https://bbs.archlinux.org/viewtopic.php?id=224338 . Please lmk if i should "do something" to connect these two posts]

I am the only user of my laptop, which now runs arch. For the moment, I have a very bare openbox running on top of X and no other desktop environment. I do, however, have three monitors: the built-in laptop LCD, an external HDMI one and an external USB-C/displayport one. The built-in LCD is one screen in X, attached to the nvidia GPU, and the two external monitors are a second screen in X, attached to the integrated intel GPU. I think that's waaaaay more than you need to know to answer my question, but I'm not certain, so I thought it best to lay out my layout smile.

I need to run Oracle Virtualbox as root, because it seems that one needs to run as root to use VirtualBox's "raw disk" feature. (I actually am not certain that I believe this fact, which is very explicit in the manual, but dancing with udev to let virtualbox get the access it would need as me is will need some time before I can think about that without my brain exploding. So even if the "need" part is a statement about me and not about arch, it's still true that for the time being, I "need" to.....  Please help me crawl so that I have a chance to run and dance when i grow up).

When I type "xhost +; export DISPLAY=:0; virtualbox &" into an xterm window, I get the following warning:

[root@scott-dell7577 scott]# Qt WARNING: QStandardPaths: wrong ownership on runtime directory /run/user/1000, 1000 instead of 0

I learned from the post which I cite in the first sentence above that in this case (of wanting to run virtualbox as root on my normal=usersś X desktop), I should invoke virtualbox by "dbus-launch --exit-with-session virtualbox". Doing so engenders more warnings, not fewer warnings:

[root@scott-dell7577 scott]# dbus-launch --exit-with-session virtualbox
dbus[1820]: Unable to set up transient service directory: XDG_RUNTIME_DIR "/run/user/1000" is owned by uid 1000, not our uid 0
Qt WARNING: QStandardPaths: wrong ownership on runtime directory /run/user/1000, 1000 instead of 0

To my untrained eye, it looks like this is telling me to set XDG_RUNTIME_DIR to /run/user/0 before I start virtualbox. However, 1. there is no directory /run/user/0. And before I start making random directories with important sounding names like /run/user/0/systemd and giving them root privileges, I would like to ask here:

1. Do I need to care about that initial warning at all, or can i just ignore it?
2. Even if I don't need to care, I'm a caring person smile. Is there a "right" way to invoke virtualbox in this situation so that the newly installed police inside my laptop give me neither a ticket nor even a Warning?

With thanks,
scott

Last edited by scot (2019-05-15 16:57:02)

Offline

#2 2019-05-15 17:27:08

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 21,401
Website

Re: running one appl as root Qt WARNING: wrong ownership /run/user/1000

scot wrote:

I need to run Oracle Virtualbox as root...

That's a bad idea - even if you think it's temporary.

scot wrote:

... because it seems that one needs to run as root to use VirtualBox's "raw disk" feature. (I actually am not certain that I believe this fact, which is very explicit in the manual...

Nor do I believe it.  But I also cannot find any such claim in the manual.  Where are you seeing this?

scot wrote:

... but dancing with udev ...

That's also not necessary.  Simply add your user to the 'disks' group.  That's it.


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

Board footer

Powered by FluxBB