<div dir="ltr"><span style="font-size:12.8px">Well, that - like I wrote - works. But I do not want to run as root because this causes </span><span style="font-size:12.8px">preserve-environment</span><span style="font-size:12.8px"> not to use the actual users environment for import, but root's environment. And as soon as I su to any of the allowd users within schroot, I get the same error.</span><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">Cheers,</div><div style="font-size:12.8px">Marcel</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Aug 31, 2016 at 10:15 PM, Geert Stappers <span dir="ltr"><<a href="mailto:stappers@stappers.nl" target="_blank">stappers@stappers.nl</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">On Wed, Aug 31, 2016 at 01:48:05PM +0200, Marcel L. wrote:<br>
> I have configured schroot to run ubuntu xenial in schroot on my debian host<br>
> (strech/sid)<br>
><br>
> With the current setup everything works fine as long as I am root. That is,<br>
> as root (or with sudo), I can do schroot -c xenial and after that run xterm<br>
> for instance.<br>
><br>
> But doing the same as a non-root user gives me the following after doing<br>
> schroot -c xenial:<br>
><br>
> <<<br>
> To run a command as administrator (user "root"), use "sudo <command>".<br>
> See "man sudo_root" for details.<br>
><br>
> Failed to import environment: Process org.freedesktop.systemd1 exited with<br>
> stat<br>
> <<<br>
><br>
> Here is my configuration from schroot.conf:<br>
><br>
> [xenial]<br>
> description=Ubuntu xenial<br>
> type=directory<br>
> directory=/srv/chroot/xenial<br>
> users=marcel<br>
> root-users=marcel<br>
> groups=marcel,root,lpadmin<br>
> root-groups=root,marcel<br>
> profile=desktop<br>
> personality=linux<br>
> preserve-environment=true<br>
><br>
><br>
> To just see what works I played around with groups and users, but nothing<br>
> solved the problem.. Maybe this is a PAM issue?<br>
><br>
> Since I run Gnome, I also uncommented the line for gdm3 and added<br>
><br>
> /var/run/dbus/ /var/run/dbus/ none rw,bind 0 0 # Gnome<br>
> likes this.<br>
><br>
> to /etc/schroot/desktop/fstab<br>
><br>
> What am I missing or doing wrong? I would be happy about any help on this.<br>
<br>
<br>
</div></div>Replace<br>
<br>
schroot -c xenial:<br>
<br>
you mentioned above with<br>
<br>
sudo schroot -c xenial<br>
<br>
<br>
and please report back.<br>
<br>
<br>
> Cheers,<br>
> Marcel<br>
<br>
Groeten<br>
<span class="HOEnZb"><font color="#888888">Geert Stappers<br>
--<br>
Leven en laten leven<br>
</font></span></blockquote></div><br></div>