[systemd-devel] Reason for su command to be ignored in target?

Mark Hounschell markh at compro.net
Wed Apr 17 09:16:29 PDT 2013


On 04/17/2013 10:09 AM, Andrey Borzenkov wrote:
> On Wed, Apr 17, 2013 at 5:46 PM, Mark Hounschell <markh at compro.net> wrote:
>> I have been using systemd to boot into a very basic target. That target
>> basically executes a script. In that script we execute an "su -m -c command
>> user". The last version of systemd I have where this worked is version 37.
>> I'm using opensuse dist and that was in version 12.2 from about a year ago.
>> I've upgraded to opensuse-12.3 and that systemd version is 195. The "su -m
>> -c command user" now appears to be ignored.
>>
>> I there a particular service I now need to include in my target that will
>> enable the su command to work?
>>
>
> Why do you think it is related to systemd? There were several reports
> about changed su behavior in 12.3. Does it work if you execute your
> command manually?

Well, if I include my service in the normal runlevel5 target, it works 
just fine. And yes, if I actually login after reaching my target and 
execute the same script manually, it works just fine.

Thanks
Mark


More information about the systemd-devel mailing list