Hello List,
I see that installing mysql in Centos 6.x creates a mysql user with a login shell of /bin/bash. Is a default password also installed?
I certainly hope not, but it makes me nervous.
Hello Steve,
On Tue, 2012-06-05 at 10:57 -0400, Steve Clark wrote:
I see that installing mysql in Centos 6.x creates a mysql user with a login shell of /bin/bash. Is a default password also installed?
I certainly hope not, but it makes me nervous.
See for yourself:
# grep mysql /etc/shadow mysql:!!:15404::::::
Regards, Leonard.
On 06/05/2012 11:13 AM, Leonard den Ottolander wrote:
See for yourself:
# grep mysql /etc/shadow mysql:!!:15404::::::
Ah - good, from man 5 shadow...
encrypted password Refer to crypt(3) for details on how this string is interpreted.
If the password field contains some string that is not a valid result of crypt(3), for instance ! or *, the user will not be able to use a unix password to log in (but the user may log in the system by other means).
This field may be empty, in which case no passwords are required to authenticate as the specified login name. However, some applications which read the /etc/shadow file may decide not to permit any access at all if the password field is empty.
A password field which starts with a exclamation mark means that the password is locked. The remaining characters on the line represent the password field before the password was locked.