sadmac | .wub 34 | 02:55 |
---|---|---|
ion | wubwubwubwubwubwubwubwubwubwubwubwubwubwub | 02:57 |
tgm4883 | I'm trying to find if it's possible to have upstart run a job as another user. It would be a non-interactive job. I've found a post that mentions it is going to be in an upcoming version, but I can't find anything else about it, and I'm not sure where I can subscribe to so I see when this functionality exists | 20:27 |
ion | Use su for now. | 20:28 |
tgm4883 | from what I've read, su won't work as it needs an interactive console | 20:29 |
tgm4883 | correction, consolekit. We actually used to use su, but it caused issues with that and shutdown | 20:33 |
JanC | tgm4883: I don't know why 'su' shouldn't work | 21:45 |
JanC | maybe it needs some options in some environments? | 21:48 |
superm1 | tgm4883 asked me to pop over here about su. we ran into problems with su in the job that it left an interactive consolekit session open | 21:50 |
superm1 | so if someone tried to reboot the machine it seemed like people were still logged in and there was a warning every time to reboot | 21:51 |
tgm4883 | JanC, ^ | 21:52 |
JanC | IMO that would be a bug in 'su' (or maybe su has an option to prevent that)? | 21:59 |
JanC | (or maybe sudo is more powerful in that respect?) | 22:00 |
JanC | the 'su' manpage lists a specific option to mimic a login session, so that indicates it should not start one by default? | 22:04 |
superm1 | we were previously doing "exec /bin/su -c "/usr/bin/mythbackend $ARGS" $USER" which caused ck-list-sessions to list a mythtv session | 22:19 |
superm1 | since then we've added support to mythtv to setuid seteuid etc, but this has the side effect that core dumps can't be captured anymore | 22:19 |
superm1 | slangasek explained here: https://bugs.launchpad.net/ubuntu/+source/consolekit/+bug/445953/comments/19 | 22:20 |
Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!