sebastien/cuisine — Issue #20: check_user parsing problem
Author: mmmurf
Created: 2011-10-10 22:57:46+00:00
State: open

https://github.com/sebastien/cuisine/blob/master/src/cuisine.py#L286

The user data is being parsed as follows:

{'shell': '/home/ubuntu', 'uid': 'x', 'passwd': '!$6$ewuA3/RZ$TQX3d5Rpusb/xIeCJ7SJ9KeNsdfsafafe qzkM.4BkCm5uIWigP.1wFei0mzovOP6lEPZ2eUx/0/', 'gid': '1000', 'home': 'Ubuntu,,,', 'name': 'sudo'}

the user is ubuntu and its home directory is /home/ubuntu

the line from /etc/password is:

ubuntu:x:1000:1000:Ubuntu,,,:/home/ubuntu:/bin/bash