IRC chat logs for #ltsp on (webchat)

Channel log from 29 May 2016   (all times are UTC)

00:10ogra_ has left IRC (ogra_!, Ping timeout: 272 seconds)
00:10ogra_ has joined IRC (ogra_!
00:16vagrantc has left IRC (vagrantc!~vagrant@unaffiliated/vagrantc, Ping timeout: 258 seconds)
00:17vagrantc has joined IRC (vagrantc!~vagrant@unaffiliated/vagrantc)
03:50vagrantc has left IRC (vagrantc!~vagrant@unaffiliated/vagrantc, Quit: leaving)
06:52ricotz has joined IRC (ricotz!~ricotz@ubuntu/member/ricotz)
09:43Phantomas has joined IRC (Phantomas!~ftsamis@ubuntu/member/phantomas)
14:19GodFather has joined IRC (GodFather!~rcc@2600:1007:b004:b0ec:8505:c112:ea94:dc9c)
14:28GodFather has left IRC (GodFather!~rcc@2600:1007:b004:b0ec:8505:c112:ea94:dc9c, Quit: Ex-Chat)
14:29GodFather has joined IRC (GodFather!~rcc@2600:1007:b004:b0ec:8505:c112:ea94:dc9c)
14:30GodFather has left IRC (GodFather!~rcc@2600:1007:b004:b0ec:8505:c112:ea94:dc9c, Remote host closed the connection)
14:32GodFather has joined IRC (GodFather!~rcc@2600:1007:b004:b0ec:e89f:19ab:ad95:c468)
14:59vagrantc has joined IRC (vagrantc!~vagrant@unaffiliated/vagrantc)
15:29GodFather has left IRC (GodFather!~rcc@2600:1007:b004:b0ec:e89f:19ab:ad95:c468, Ping timeout: 250 seconds)
Huh. Found out a problem with python.
In C, when you call setuid or setgid, you simply pass the uidnum or gidnum, and it's done.
Which means, you can setuid or gid to a number that doesn't have a corresponding /etc/passwd or /etc/group entry
Which is what we want, because we need to setuid to the user for the ssh tunnel before we can bring over the passwd and group entries.
however, python insists that uid or gid *have* passwd and group entries.
So I'll have to write a python module that doesn't do the check.
Nothing is easy, said the elephant to his mistress the mouse.
you can always use check_call
setuid isn't an external program, it's a library routine.
18:08vagrantc has left IRC (vagrantc!~vagrant@unaffiliated/vagrantc, Quit: leaving)
18:09Phantomas1 has joined IRC (Phantomas1!~ftsamis@ubuntu/member/phantomas)
18:10Phantomas has left IRC (Phantomas!~ftsamis@ubuntu/member/phantomas, Ping timeout: 276 seconds)
18:31ricotz has left IRC (ricotz!~ricotz@ubuntu/member/ricotz, Quit: Leaving)
19:08Phantomas1 has left IRC (Phantomas1!~ftsamis@ubuntu/member/phantomas)
20:04vagrantc has joined IRC (vagrantc!~vagrant@unaffiliated/vagrantc)
Ah, the problem's not in setuid
it's in nss.
ssh won't start without uid and gid entries.
chown also takes uids - I sometimes have to fix stuff that way when the LDAP and /etc/passwd pick the same ID for different users
(useradd and adduser do totally different things... and I usually end up using the wrong one by mistake -_-)
21:21GodFather has joined IRC (GodFather!~rcc@2600:1007:b017:7d10:d143:ed66:df2:587c)
23:11GodFather has left IRC (GodFather!~rcc@2600:1007:b017:7d10:d143:ed66:df2:587c, Ping timeout: 260 seconds)