Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
2.2
-
None
Description
incorrect checks on user account
regex needs to be updated
5762 | 2:2 | reserved | uucp:x:10:14:Unix-to-Unix CoPy system:/etc/uucp:/bin/bash | ||||||||||
5762 | 2:2 | reserved | mysql:x:60:107:MySQL database admin:/var/lib/mysql:/bin/false 2009-07-27 19:07:58 |
5762 | 2:2 | reserved | utils.pm:run_ssh_command(6811) | SSH command executed on vcl-vm1: cat /etc/passwd, returning (0, output) 2009-07-27 19:07:58 |
5762 | 2:2 | reserved | utils.pm:add_user(3098) | added user account admin to vcl-vm1 |
VCL thinks that the user has been added because of the last line in the file (mysql user account) which matches the regexp in the _is_user_added subroutine in utils.pm. Later, when VCL attempts to change the password of the non-existent admin user, it fails. The regexp could be modified to look for the string "$user" at the beginning of each line instead.
Toks