Your message dated Fri, 16 Dec 2016 06:24:53 +0100
with message-id <[email protected]>
and subject line Re: Bug#806922: systemctl do not work for non-root
has caused the Debian Bug report #806922,
regarding systemctl do not work for non-root
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
806922: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=806922
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: systemd
Version: 215-17+deb8u3
Severity: grave


juhtolv@heresy | to 03 joulu 2015 03:52:26 | 10000 | pts/1.1
/home/juhtolv
% systemctl --user status --all
Failed to get D-Bus connection: Yhteys torjuttu


juhtolv@heresy | to 03 joulu 2015 03:57:32 | 10001 | pts/1.1
/home/juhtolv
% systemctl --user list-timers --all
Failed to get D-Bus connection: Yhteys torjuttu

"Yhteys torjuttu" is Finnish language. It means: "Connection rejected".

-- Package-specific info:

-- System Information:
Debian Release: 8.2
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'proposed-updates'), (500, 
'stable')
Architecture: i386 (i686)

Kernel: Linux 4.2.0-0.bpo.1-686-pae (SMP w/1 CPU core)
Locale: LANG=fi_FI.utf8, LC_CTYPE=fi_FI.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages systemd depends on:
ii  acl             2.2.52-2
ii  adduser         3.113+nmu3
ii  initscripts     2.88dsf-59
ii  libacl1         2.2.52-2
ii  libaudit1       1:2.4-1+b1
ii  libblkid1       2.25.2-6
ii  libc6           2.19-18+deb8u1
ii  libcap2         1:2.24-8
ii  libcap2-bin     1:2.24-8
ii  libcryptsetup4  2:1.6.6-5
ii  libgcrypt20     1.6.3-2
ii  libkmod2        18-3
ii  liblzma5        5.1.1alpha+20120614-2+b3
ii  libpam0g        1.1.8-3.1
ii  libselinux1     2.3-2
ii  libsystemd0     215-17+deb8u3
ii  mount           2.25.2-6
ii  sysv-rc         2.88dsf-59
ii  udev            215-17+deb8u3
ii  util-linux      2.25.2-6

Versions of packages systemd recommends:
ii  dbus            1.8.20-0+deb8u1
ii  libpam-systemd  215-17+deb8u3

Versions of packages systemd suggests:
ii  systemd-ui  3-2

-- Configuration Files:
/etc/systemd/timesyncd.conf changed:
[Time]
Servers=time.mikes.fi time1.mikes.fi time2.mikes.fi ntp1.inet.fi ntp2.inet.fi 
ntp3.inet.fi 0.fi.pool.ntp.org 1.fi.pool.ntp.org 2.fi.pool.ntp.org 
3.fi.pool.ntp.org fi.pool.ntp.org 0.europe.pool.ntp.org 1.europe.pool.ntp.org 
2.europe.pool.ntp.org 3.europe.pool.ntp.org europe.pool.ntp.org 
0.debian.pool.ntp.org 1.debian.pool.ntp.org 2.debian.pool.ntp.org 
3.debian.pool.ntp.org 0.pool.ntp.org 1.pool.ntp.org 2.pool.ntp.org 
3.pool.ntp.org pool.ntp.org time.nist.gov


-- no debconf information

-- 
Juhapekka "naula" Tolvanen * http colon slash slash iki dot fi slash juhtolv
"Beibi, sä et tarvii mitään muuta, jos saat suudella mun punaista suuta."
                                                             Haloo Helsinki!
"Mä aattelin, etten mä ees tarvii muuta, ku sut ja pari levyy Hüsker Düta."
                                                                    Paperi T

--- End Message ---
--- Begin Message ---
On Sun, 17 Jan 2016 02:22:28 +0200 Juhapekka Tolvanen <[email protected]>
wrote:
> On Thu, 03 Dec 2015, +13:37:53 EET (UTC +0200),
> Michael Biebl <[email protected]> pressed some keys:
> 
> > 
> > Am 03.12.2015 um 09:23 schrieb Juhapekka Tolvanen:
> > > juhtolv@heresy | to 03 joulu 2015 04:04:14 | 10002 | pts/15
> > > /home/juhtolv
> > > % ps ux|grep systemd
> > > juhtolv    829  0.0  0.2   4960  3556 ?        Ss   03:51   0:00 
> > > /lib/systemd/systemd --user
> > > juhtolv   7689  0.0  0.1   6292  2136 pts/15   S+   10:21   0:00 grep 
> > > --color=auto systemd
> > 
> > Ah, you don't have a dbus instance running for your user.
> > 
> > This is usually started when you run a graphical session, e.g. directly
> > by your session manager or by
> > /etc/X11/Xsession.d/75dbus_dbus-launch
> > 
> > So I assume that explains why it works when run under uxterm, as you had
> > a graphical X session.
> > 
> > E.g. I get:
> > 
> > $ ps ux | grep systemd
> > michael   1994  0.0  0.0  47168  5172 ?        Ss   01:59   0:00
> > /lib/systemd/systemd --user
> > michael   2044  0.0  0.0  43612  4800 ?        Ss   01:59   0:00
> > /usr/bin/dbus-daemon --session --address=systemd: --nofork --nopidfile
> > --systemd-activation
> > 
> > 
> > systemctl as unprivileged user requires a running system dbus daemon to
> > access the system instance of systemd and a user dbus daemon to access
> > the user instance of systemd.
> 
> Okay. How can I start my GNU Screen or tmux so that dbus provides
> access to systemd? BTW After sending my bugreport I switched from GNU
> Screen to tmux.
> 
> Currently I start my tmux during boot this way:
> 
> /etc/systemd/system/[email protected] :
> 
> ----- Clip here ----
> [Unit]
> Description=tmux
> After=network.target
> 
> [Service]
> #Type=simple
> Type=forking
> #Type=oneshot
> #RemainAfterExit=yes
> #User=%i
> User=%I
> #ExecStart=/usr/bin/tmux -u -2 new-session -d -x 174 -y 56 -s %u -nzsh 'exec 
> /bin/zsh -l'
> ExecStart=/bin/dash -c "${HOME}/scripts/mytmux.sh"
> #ExecStart=/bin/dash -c '${HOME}/scripts/mytmux.sh'
> ExecStop=/usr/bin/tmux kill-server
> Environment=DISPLAY=:0
> 

This is simply a misconfiguration.
You are starting a system service and you expect it to have access to
the user session. This simply doesn't work.

My suggestions would be, to start the tmux service as a systemd --user
service. This would it would have access to the dbus user service.


-- 
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?

Attachment: signature.asc
Description: OpenPGP digital signature


--- End Message ---

Reply via email to