[Ubuntu-x-swat] [Bug 1562219] Re: xinit will not work as non-root.
I've tried for an hour, but can't seem to get any fix working. Highly frustrating as I just switched my laptop from Debian to Ubuntu, and now I have to spend time switching it back again. Comment #16 seems to misunderstand the bug. Likewise the workaround in comment #12 might possibly work for some people, but there appear to be several of us who rely on running X as a non-root user. This is not something that I would have expected to be broken. Is there any update on this? It's been a while since anyone commented on it, and the bug doesn't appear to be assigned to anyone. -- You received this bug notification because you are a member of Ubuntu-X, which is subscribed to xinit in Ubuntu. https://bugs.launchpad.net/bugs/1562219 Title: xinit will not work as non-root. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/xinit/+bug/1562219/+subscriptions ___ Mailing list: https://launchpad.net/~ubuntu-x-swat Post to : ubuntu-x-swat@lists.launchpad.net Unsubscribe : https://launchpad.net/~ubuntu-x-swat More help : https://help.launchpad.net/ListHelp
[Ubuntu-x-swat] [Bug 1562219] Re: xinit will not work as non-root.
try sudo stratx -- You received this bug notification because you are a member of Ubuntu-X, which is subscribed to xinit in Ubuntu. https://bugs.launchpad.net/bugs/1562219 Title: xinit will not work as non-root. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/xinit/+bug/1562219/+subscriptions ___ Mailing list: https://launchpad.net/~ubuntu-x-swat Post to : ubuntu-x-swat@lists.launchpad.net Unsubscribe : https://launchpad.net/~ubuntu-x-swat More help : https://help.launchpad.net/ListHelp
[Ubuntu-x-swat] [Bug 1562219] Re: xinit will not work as non-root.
The workaround is not working :( - $ sudo setfacl -m u:kodi:rw /dev/tty0 /dev/tty7 setfacl: Option -m: Invalid argument near character 3 $ sudo chmod 0660 /dev/tty* $ $ startx ... Fatal server error: (EE) parse_vt_settings: Cannot open /dev/tty0 (No such file or directory) ... Any ideas? -- You received this bug notification because you are a member of Ubuntu-X, which is subscribed to xinit in Ubuntu. https://bugs.launchpad.net/bugs/1562219 Title: xinit will not work as non-root. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/xinit/+bug/1562219/+subscriptions ___ Mailing list: https://launchpad.net/~ubuntu-x-swat Post to : ubuntu-x-swat@lists.launchpad.net Unsubscribe : https://launchpad.net/~ubuntu-x-swat More help : https://help.launchpad.net/ListHelp
[Ubuntu-x-swat] [Bug 1562219] Re: xinit will not work as non-root.
I don't know if it is real workaround but if you want to avoid running X as root you can 1. Go to one of tty1-tty6 and login as a normal user 2. run the server in the same tty you logged in, e.g. for tty6: xinit /usr/bin/openbox -- :1 vt6 Tested on ubuntu mate 16.04. -- You received this bug notification because you are a member of Ubuntu-X, which is subscribed to xinit in Ubuntu. https://bugs.launchpad.net/bugs/1562219 Title: xinit will not work as non-root. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/xinit/+bug/1562219/+subscriptions ___ Mailing list: https://launchpad.net/~ubuntu-x-swat Post to : ubuntu-x-swat@lists.launchpad.net Unsubscribe : https://launchpad.net/~ubuntu-x-swat More help : https://help.launchpad.net/ListHelp
[Ubuntu-x-swat] [Bug 1562219] Re: xinit will not work as non-root.
another workaround: setfacl -m u:kodi:rw /dev/tty0 /dev/tty7 -- You received this bug notification because you are a member of Ubuntu-X, which is subscribed to xinit in Ubuntu. https://bugs.launchpad.net/bugs/1562219 Title: xinit will not work as non-root. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/xinit/+bug/1562219/+subscriptions ___ Mailing list: https://launchpad.net/~ubuntu-x-swat Post to : ubuntu-x-swat@lists.launchpad.net Unsubscribe : https://launchpad.net/~ubuntu-x-swat More help : https://help.launchpad.net/ListHelp
[Ubuntu-x-swat] [Bug 1562219] Re: xinit will not work as non-root.
I found a simple solution for this issue. Start x server as root and then start windows manager as regular user. 1. sudo Xorg & 2. export DISPLAY=:0.0 3. bash .xinitrc -- You received this bug notification because you are a member of Ubuntu-X, which is subscribed to xinit in Ubuntu. https://bugs.launchpad.net/bugs/1562219 Title: xinit will not work as non-root. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/xinit/+bug/1562219/+subscriptions ___ Mailing list: https://launchpad.net/~ubuntu-x-swat Post to : ubuntu-x-swat@lists.launchpad.net Unsubscribe : https://launchpad.net/~ubuntu-x-swat More help : https://help.launchpad.net/ListHelp
[Ubuntu-x-swat] [Bug 1562219] Re: xinit will not work as non-root.
Never mind: if I am reading correctly it seems those commits I mentioned in #10 are already included upstream and in Ubuntu as well. -- You received this bug notification because you are a member of Ubuntu-X, which is subscribed to xinit in Ubuntu. https://bugs.launchpad.net/bugs/1562219 Title: xinit will not work as non-root. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/xinit/+bug/1562219/+subscriptions ___ Mailing list: https://launchpad.net/~ubuntu-x-swat Post to : ubuntu-x-swat@lists.launchpad.net Unsubscribe : https://launchpad.net/~ubuntu-x-swat More help : https://help.launchpad.net/ListHelp
[Ubuntu-x-swat] [Bug 1562219] Re: xinit will not work as non-root.
Two relevant-looking Fedora patches which I haven't tried yet: http://pkgs.fedoraproject.org/cgit/rpms/xorg-x11-server.git/commit/?h=f22=943ff7334233f04fc2311945822cac537673a493 http://pkgs.fedoraproject.org/cgit/rpms/xorg-x11-server.git/commit/?h=f22=9d0fee062d4fbc0bee08db4fb8461c3d7f9ee0f5 related to this bug https://bugzilla.redhat.com/show_bug.cgi?id=1203780 ** Bug watch added: Red Hat Bugzilla #1203780 https://bugzilla.redhat.com/show_bug.cgi?id=1203780 -- You received this bug notification because you are a member of Ubuntu-X, which is subscribed to xinit in Ubuntu. https://bugs.launchpad.net/bugs/1562219 Title: xinit will not work as non-root. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/xinit/+bug/1562219/+subscriptions ___ Mailing list: https://launchpad.net/~ubuntu-x-swat Post to : ubuntu-x-swat@lists.launchpad.net Unsubscribe : https://launchpad.net/~ubuntu-x-swat More help : https://help.launchpad.net/ListHelp
[Ubuntu-x-swat] [Bug 1562219] Re: xinit will not work as non-root.
None of workarounds worked for me. Omg, is there a single thing which 14.04 → 16.04 upgrade didn't break? Sad to see that distro widely recommended for newbies slowly drowns under a bunch of architectural, planning, and software problems, which are hard to fight even for long time users. Perhaps since now we should recommend Fedora instead. -- You received this bug notification because you are a member of Ubuntu-X, which is subscribed to xinit in Ubuntu. https://bugs.launchpad.net/bugs/1562219 Title: xinit will not work as non-root. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/xinit/+bug/1562219/+subscriptions ___ Mailing list: https://launchpad.net/~ubuntu-x-swat Post to : ubuntu-x-swat@lists.launchpad.net Unsubscribe : https://launchpad.net/~ubuntu-x-swat More help : https://help.launchpad.net/ListHelp
[Ubuntu-x-swat] [Bug 1562219] Re: xinit will not work as non-root.
Hi again. Seems that my case is connected to my NVIDIA card and this bug: https://bugs.launchpad.net/ubuntu/+source/xorg-server/+bug/1525735 The following solved my problem: sudo apt install xserver-xorg-legacy In /etc/X11/Xwrapper.config I replaced allowed_users=console with allowed_users=anybody -- You received this bug notification because you are a member of Ubuntu-X, which is subscribed to xinit in Ubuntu. https://bugs.launchpad.net/bugs/1562219 Title: xinit will not work as non-root. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/xinit/+bug/1562219/+subscriptions ___ Mailing list: https://launchpad.net/~ubuntu-x-swat Post to : ubuntu-x-swat@lists.launchpad.net Unsubscribe : https://launchpad.net/~ubuntu-x-swat More help : https://help.launchpad.net/ListHelp
[Ubuntu-x-swat] [Bug 1562219] Re: xinit will not work as non-root.
I am affected by the same bug, although the X error message is slightly different ("parse_vt_settings: Cannot open /dev/tty0" instead of "xf86OpenConsole: " ...) In /etc/X11/Xwrapper.config I have tried to replaced allowed_users=console with allowed_users=anybody and in this file I also tried the option need_root_rights = yes but both attempts had no visible consequences. I have looked at the workaround for koda posted above, but I am unable to extract the bits that may make it help in my case. Perhaps someone can give suggestions to me based on the posted workaround. The program I want to run in its own Xserver is a game, so all the systemd stuff in the workaround is not that relevant to me. Although my knowledge of X is very limited, I'd love to contribute with some testing as far as I can go. Thanks for your time and efforts /Mikkel. mikr@scrat:~/bin$ xinit /home/mikr/bin/WoWrun64 -- :1 -br X.Org X Server 1.18.3 Release Date: 2016-04-04 X Protocol Version 11, Revision 0 Build Operating System: Linux 3.13.0-86-generic x86_64 Ubuntu Current Operating System: Linux scrat 4.4.0-24-generic #43-Ubuntu SMP Wed Jun 8 19:27:37 UTC 2016 x86_64 Kernel command line: BOOT_IMAGE=/boot/vmlinuz-4.4.0-24-generic root=UUID=1346e355-5120-4563-9e27-28d965d357f4 ro quiet splash Build Date: 18 May 2016 01:07:07AM xorg-server 2:1.18.3-1ubuntu2.2 (For technical support please see http://www.ubuntu.com/support) Current version of pixman: 0.33.6 Before reporting problems, check http://wiki.x.org to make sure that you have the latest version. Markers: (--) probed, (**) from config file, (==) default setting, (++) from command line, (!!) notice, (II) informational, (WW) warning, (EE) error, (NI) not implemented, (??) unknown. (==) Log file: "/home/mikr/.local/share/xorg/Xorg.1.log", Time: Fri Jun 24 19:10:21 2016 (==) Using system config directory "/usr/share/X11/xorg.conf.d" (EE) Fatal server error: (EE) parse_vt_settings: Cannot open /dev/tty0 (No such file or directory) (EE) (EE) Please consult the The X.Org Foundation support at http://wiki.x.org for help. (EE) Please also check the log file at "/home/mikr/.local/share/xorg/Xorg.1.log" for additional information. (EE) (EE) Server terminated with error (1). Closing log file. xinit: giving up xinit: unable to connect to X server: Connection refused xinit: server error ** Attachment added: "bug.apport output" https://bugs.launchpad.net/ubuntu/+source/xinit/+bug/1562219/+attachment/4689882/+files/bug.apport -- You received this bug notification because you are a member of Ubuntu-X, which is subscribed to xinit in Ubuntu. https://bugs.launchpad.net/bugs/1562219 Title: xinit will not work as non-root. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/xinit/+bug/1562219/+subscriptions ___ Mailing list: https://launchpad.net/~ubuntu-x-swat Post to : ubuntu-x-swat@lists.launchpad.net Unsubscribe : https://launchpad.net/~ubuntu-x-swat More help : https://help.launchpad.net/ListHelp
[Ubuntu-x-swat] [Bug 1562219] Re: xinit will not work as non-root.
** Changed in: xinit (Ubuntu) Importance: Undecided => High -- You received this bug notification because you are a member of Ubuntu-X, which is subscribed to xinit in Ubuntu. https://bugs.launchpad.net/bugs/1562219 Title: xinit will not work as non-root. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/xinit/+bug/1562219/+subscriptions ___ Mailing list: https://launchpad.net/~ubuntu-x-swat Post to : ubuntu-x-swat@lists.launchpad.net Unsubscribe : https://launchpad.net/~ubuntu-x-swat More help : https://help.launchpad.net/ListHelp
[Ubuntu-x-swat] [Bug 1562219] Re: xinit will not work as non-root.
There is a workaround. See: http://kodi.wiki/view/HOW-TO:Autostart_Kodi_for_Linux Specifically: 5 Add a new systemd script And everything under it. -- You received this bug notification because you are a member of Ubuntu-X, which is subscribed to xinit in Ubuntu. https://bugs.launchpad.net/bugs/1562219 Title: xinit will not work as non-root. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/xinit/+bug/1562219/+subscriptions ___ Mailing list: https://launchpad.net/~ubuntu-x-swat Post to : ubuntu-x-swat@lists.launchpad.net Unsubscribe : https://launchpad.net/~ubuntu-x-swat More help : https://help.launchpad.net/ListHelp
[Ubuntu-x-swat] [Bug 1562219] Re: xinit will not work as non-root.
I'm having the same problem. Is their any fix yet available ? -- You received this bug notification because you are a member of Ubuntu-X, which is subscribed to xinit in Ubuntu. https://bugs.launchpad.net/bugs/1562219 Title: xinit will not work as non-root. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/xinit/+bug/1562219/+subscriptions ___ Mailing list: https://launchpad.net/~ubuntu-x-swat Post to : ubuntu-x-swat@lists.launchpad.net Unsubscribe : https://launchpad.net/~ubuntu-x-swat More help : https://help.launchpad.net/ListHelp
[Ubuntu-x-swat] [Bug 1562219] Re: xinit will not work as non-root.
«sudo chmod 0660 /dev/tty*» worked for me until reboot. Changing permission in udev rules for tty to 0660 from 0620 could be a temporary fix. -- You received this bug notification because you are a member of Ubuntu-X, which is subscribed to xinit in Ubuntu. https://bugs.launchpad.net/bugs/1562219 Title: xinit will not work as non-root. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/xinit/+bug/1562219/+subscriptions ___ Mailing list: https://launchpad.net/~ubuntu-x-swat Post to : ubuntu-x-swat@lists.launchpad.net Unsubscribe : https://launchpad.net/~ubuntu-x-swat More help : https://help.launchpad.net/ListHelp
[Ubuntu-x-swat] [Bug 1562219] Re: xinit will not work as non-root.
Status changed to 'Confirmed' because the bug affects multiple users. ** Changed in: xinit (Ubuntu) Status: New => Confirmed -- You received this bug notification because you are a member of Ubuntu-X, which is subscribed to xinit in Ubuntu. https://bugs.launchpad.net/bugs/1562219 Title: xinit will not work as non-root. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/xinit/+bug/1562219/+subscriptions ___ Mailing list: https://launchpad.net/~ubuntu-x-swat Post to : ubuntu-x-swat@lists.launchpad.net Unsubscribe : https://launchpad.net/~ubuntu-x-swat More help : https://help.launchpad.net/ListHelp
[Ubuntu-x-swat] [Bug 1562219] Re: xinit will not work as non-root.
Any update on this? -- You received this bug notification because you are a member of Ubuntu-X, which is subscribed to xinit in Ubuntu. https://bugs.launchpad.net/bugs/1562219 Title: xinit will not work as non-root. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/xinit/+bug/1562219/+subscriptions ___ Mailing list: https://launchpad.net/~ubuntu-x-swat Post to : ubuntu-x-swat@lists.launchpad.net Unsubscribe : https://launchpad.net/~ubuntu-x-swat More help : https://help.launchpad.net/ListHelp