-
Notifications
You must be signed in to change notification settings - Fork 158
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
check_user parsing problem #20
Comments
Hmm, I cannot reproduce this problem. Could you send the whole passwd file as a private message to see if I have the same problem? Thanks! |
It's some weird message you get when /etc/hosts doesn't have the alias that is hostname. In other words you're fine if
Here's what I quickly hacked together today:
It makes sense to have |
Thanks, I'll integrate this! |
Integrated in f4dc4ba |
cool, thanks... I am not sure though about the actual cause for the bug. Either way, check_user should guard against this anyhow. |
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
The text was updated successfully, but these errors were encountered: