Re: [systemd-devel] vncserver@.service

2013-01-29 Thread Reindl Harald
Am 26.01.2013 11:19, schrieb Mantas Mikulėnas: > On Sat, Jan 26, 2013 at 7:05 AM, Ian Pilcher wrote: >> On 01/23/2013 08:59 AM, Reindl Harald wrote: >>> and why do you not use the User= and Group= options? >> >> ISTR reading that runuser was added because User= and Group= don't >> actually log i

Re: [systemd-devel] vncserver@.service

2013-01-26 Thread Ian Pilcher
On 01/26/2013 04:19 AM, Mantas Mikulėnas wrote: > What do you mean by "log in" here? systemd will open a PAM session if > you set PAMName=. Honestly, I don't really know. I just have a memory of reading a Red Hat(?) bugzilla entry back when I was setting up VNC on my system. (I've since switched

Re: [systemd-devel] vncserver@.service

2013-01-26 Thread Mantas Mikulėnas
On Sat, Jan 26, 2013 at 7:05 AM, Ian Pilcher wrote: > On 01/23/2013 08:59 AM, Reindl Harald wrote: >> and why do you not use the User= and Group= options? > > ISTR reading that runuser was added because User= and Group= don't > actually log in, which is required by vncserver. What do you mean by

Re: [systemd-devel] vncserver@.service

2013-01-25 Thread Ian Pilcher
On 01/23/2013 08:59 AM, Reindl Harald wrote: > and why do you not use the User= and Group= options? ISTR reading that runuser was added because User= and Group= don't actually log in, which is required by vncserver. -- Ian

Re: [systemd-devel] vncserver@.service

2013-01-23 Thread Antonio
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 It is precisely that which Colin said me: http://lists.freedesktop.org/archives/systemd-devel/2013-January/008349.html :) - -- Antonio Trande "Fedora Ambassador" "Fedora italian translation group" "Blogger" mail: mailto:sagit...@fedoraproject.org Hom

Re: [systemd-devel] vncserver@.service

2013-01-23 Thread Lennart Poettering
On Wed, 23.01.13 21:37, Antonio (anto.tra...@gmail.com) wrote: > > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Hi Lennart. > > >How can the same error persist if you remove the program that generates > >it out of the equation entirely? I.e. if you use User=/Group= instead of > >runuser,

Re: [systemd-devel] vncserver@.service

2013-01-23 Thread Antonio
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi Lennart. >How can the same error persist if you remove the program that generates >it out of the equation entirely? I.e. if you use User=/Group= instead of >runuser, then the least that shoild happen is that systemd now >complains, not runuser anym

Re: [systemd-devel] vncserver@.service

2013-01-23 Thread Lennart Poettering
On Wed, 23.01.13 16:29, Antonio (anto.tra...@gmail.com) wrote: > > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > - Original Message ---- > Subject: Re: [systemd-devel] vncserver@.service > Date: Wed, 23 Jan 2013 16:29:02 +0100 > From: Antonio > To

Re: [systemd-devel] vncserver@.service

2013-01-23 Thread David Strauss
On Wed, Jan 23, 2013 at 9:14 AM, Colin Guthrie wrote: > ExecStartPre=-/usr/bin/vncserver -kill %i > ExecStart=/usr/bin/vncserver %i -geometry 1024x600 -depth 24 -fp > /usr/share/X11/fonts/misc > ExecStop=/usr/bin/vncserver -kill %i The ExecStartPre should be unnecessary if this VNC server only ru

Re: [systemd-devel] vncserver@.service

2013-01-23 Thread Antonio
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 >Well, whereever that file came from, it's wrong. systemd has built in >tools to switch user and they should be used as things like runuser and >su have a tendency to create their own sessions which is often not what >you want. Well, it is exactly a c

Re: [systemd-devel] vncserver@.service

2013-01-23 Thread Colin Guthrie
'Twas brillig, and Antonio at 23/01/13 15:54 did gyre and gimble: > > > Am 23.01.2013 16:29, schrieb Antonio: and why do you not use the User= and Group= options? >>> >>> Because they are not required by instructions. > >> as also runuser, but one is native systemd the other not > > runuse

Re: [systemd-devel] vncserver@.service

2013-01-23 Thread Antonio
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Am 23.01.2013 16:29, schrieb Antonio: >>> and why do you not use the User= and Group= options? >> >> Because they are not required by instructions. > as also runuser, but one is native systemd the other not runuser is already written in the file.

Re: [systemd-devel] vncserver@.service

2013-01-23 Thread Reindl Harald
Am 23.01.2013 16:29, schrieb Antonio: >> and why do you not use the User= and Group= options? > > Because they are not required by instructions. as also runuser, but one is native systemd the other not > However I have just > tried but permission error remains. > > ... > User=antonio > Group=

Re: [systemd-devel] vncserver@.service

2013-01-23 Thread Antonio
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 - Original Message Subject: Re: [systemd-devel] vncserver@.service Date: Wed, 23 Jan 2013 16:29:02 +0100 From: Antonio To: Reindl Harald > and why do you not use the User= and Group= options? Because they are not required

Re: [systemd-devel] vncserver@.service

2013-01-23 Thread Reindl Harald
Am 23.01.2013 14:48, schrieb Antonio: > In /lib/systemd/system/vncserver@.service file, I read how to edit it > to create a 'service unit file'. > These lines > > >ExecStart=/sbin/runuser -l -c "/usr/bin/vncserver %i" > >ExecStop=/sbin/runuser -l -c "/usr/bin/vncserver -kill %i" > > conside