[systemd-devel] Best way to limit per-user system-wide units

Reindl Harald h.reindl at thelounge.net
Tue Dec 13 21:53:02 UTC 2016



Am 13.12.2016 um 22:48 schrieb Samuel Williams:
> Reindl, I understand where you are coming from, but I'm not sure I
> understand what the alternative you are proposing is, are you
> suggesting I use su?

su -c "whatever" - user

at least preserves the environement

i still don't get what your (stripped and without context) example has 
to do with a systemd-unit

there are no "per-user system-wide units"

what *exact* problem are you trying to solve - don#t come with the 
solution "doing that as systemd-unit" - explain the problem what you are 
trying to solve not the solution you think is good!

> On 14 December 2016 at 10:45, Reindl Harald <h.reindl at thelounge.net> wrote:
>>
>>
>> Am 13.12.2016 um 22:40 schrieb Samuel Williams:
>>>
>>> Reindl, thanks for your ideas.
>>>
>>> So, I log in as me "bob", but I want to run a task as http, e.g. sudo
>>> -u http git checkout -f
>>>
>>> What do you propose as the alternative?
>>
>>
>> "man su" - the environment is completly different
>>
>> it's also different between "su" and "su -"
>>
>> but how is *that* a systemd-unit job and what do you think to gain when you
>> work all the time with sudo (in the worst case even without a password)
>>
>> P.S: get rid of reply-all, i donät need two copies of every list mail one
>> responds to
>>
>>
>>> On 14 December 2016 at 09:49, Reindl Harald <h.reindl at thelounge.net>
>>> wrote:
>>>>
>>>>
>>>>
>>>> Am 13.12.2016 um 21:41 schrieb Samuel Williams:
>>>>>
>>>>>
>>>>> I wanted to use systemd --user but had trouble getting it to run via
>>>>> sudo- seemed like the environment wasn't getting set up correctly. Any
>>>>> ideas?
>>>>
>>>>
>>>> get rid of sudo and re-consider everything where you are using sudo/su


More information about the systemd-devel mailing list