Does anyone know, if it's possible to change the name of debian-sys-maint MySQL user without getting trouble on upgrades? Of course I found out it is defined together with the password in the configuration files.
--
To UNSUBSCRIBE, email to debian-isp-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: B1BFF9C1-4D1D-4837-B1F7-7393CC4DE6AC@bachsau.com">http://lists.debian.org/B1BFF9C1-4D1D-4837-B1F7-7393CC4DE6AC@bachsau.com
08-03-2011, 01:33 PM
Ron
Changing MySQL debian-sys-maint
On 8/3/11 3:19PM, Bachsau NetWorX wrote:
> Does anyone know, if it's possible to change the name of debian-sys-maint MySQL user without getting trouble on upgrades? Of course I found out it is defined together with the password in the configuration files.
>
>
Not having tried this, I would think the generated /etc/mysql/debian.cnf
is used by any other package and not the user debian-sys-maint itself.
I'd think its possible, but perhaps there are people who have already tried.
Regards,
Ron Ursem
Debian System Administrator
--
To UNSUBSCRIBE, email to debian-isp-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 4E394E27.2040801@rondie.nl">http://lists.debian.org/4E394E27.2040801@rondie.nl
08-03-2011, 04:35 PM
Laurence Southon
Changing MySQL debian-sys-maint
On 03/08/11 14:19, Bachsau NetWorX wrote:
> Does anyone know, if it's possible to change the name of debian-sys-maint MySQL user without getting trouble on upgrades? Of course I found out it is defined together with the password in the configuration files.
Yes, you can. Indeed you have to when setting up replication as the
password held in the database must match the passwd in
/etc/mysql/debian.cnf, as it gets used for various tasks on start up.
So you need to change it in both those places.
Regards,
LS
--
Laurence Southon
Tiger Computing, Bexley
www.tiger-computing.co.uk
--
To UNSUBSCRIBE, email to debian-isp-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 4E3978E5.6020003@southon.uk.net">http://lists.debian.org/4E3978E5.6020003@southon.uk.net
08-04-2011, 02:40 AM
Bachsau WebWorX
Changing MySQL debian-sys-maint
When setting up replication you'll have to change the password, not
username. I'm talking about changing the username, as I want phpMyAdmin
for my customers but don't want anyone brute-forcing it. Having a
well-known root account makes me nervous.
Am 03.08.2011 18:35, schrieb Laurence Southon:
On 03/08/11 14:19, Bachsau NetWorX wrote:
Does anyone know, if it's possible to change the name of debian-sys-maint MySQL user without getting trouble on upgrades? Of course I found out it is defined together with the password in the configuration files.
Yes, you can. Indeed you have to when setting up replication as the
password held in the database must match the passwd in
/etc/mysql/debian.cnf, as it gets used for various tasks on start up.
So you need to change it in both those places.
Regards,
LS
--
To UNSUBSCRIBE, email to debian-isp-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 4E3A06A0.8030002@bachsau.com">http://lists.debian.org/4E3A06A0.8030002@bachsau.com
08-04-2011, 08:31 AM
Laurence Southon
Changing MySQL debian-sys-maint
On 04/08/11 03:40, Bachsau WebWorX wrote:
> I'm talking about changing the username
Sorry, answered the wrong question!
The username is not hard coded in the debian-start script, or the mysql
script in /etc/logrotate.d.
My reading of the mysql-server postinst script at
/var/lib/dpkg/info/mysql-server-5.0.postinst is that the username amd
password in /etc/mysql/debian.cnf do not get replaced if the file exists
and the contents are correct. That section of the script is the same for
mysql-server-5.1.
So it *looks like* you could change that username, though whether
preservation will still be true for future upgardes is another question.
Regards,
LS
--
Laurence Southon
Tiger Computing, Bexley
www.tiger-computing.co.uk
--
To UNSUBSCRIBE, email to debian-isp-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 4E3A58E1.2000406@southon.uk.net">http://lists.debian.org/4E3A58E1.2000406@southon.uk.net
08-04-2011, 11:17 AM
Bachsau WebWorX
Changing MySQL debian-sys-maint
Hmm, I just tried. It works, but a sys-maint-user gets recreated by
debconf even though it's not used, which makes it useless. I tried to
delete it, and even deleted /etc/mysql/debian.cnf just to see what
happens. Guess what? It still gets recreated. Reading through the
postinst-scripts I found out this is done by MySQL-Queries, but how is
it able to create a user without having a working root-login?
Am 04.08.2011 10:31, schrieb Laurence Southon:
On 04/08/11 03:40, Bachsau WebWorX wrote:
I'm talking about changing the username
Sorry, answered the wrong question!
The username is not hard coded in the debian-start script, or the mysql
script in /etc/logrotate.d.
My reading of the mysql-server postinst script at
/var/lib/dpkg/info/mysql-server-5.0.postinst is that the username amd
password in /etc/mysql/debian.cnf do not get replaced if the file exists
and the contents are correct. That section of the script is the same for
mysql-server-5.1.
So it *looks like* you could change that username, though whether
preservation will still be true for future upgardes is another question.
Regards,
LS
--
To UNSUBSCRIBE, email to debian-isp-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 4E3A7FB2.2090505@bachsau.com">http://lists.debian.org/4E3A7FB2.2090505@bachsau.com
08-05-2011, 02:53 AM
Dan Wallis
Changing MySQL debian-sys-maint
2011/8/4 Bachsau WebWorX <webmaster@bachsau.com>:
> but how is it able to create a user without having a working root-login?
Without having read the code, this may be one option:
http://dev.mysql.com/doc/refman/5.0/en/resetting-permissions.html
--
To UNSUBSCRIBE, email to debian-isp-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: CAPeNp_nFspP_9fgwRqc8iLEzk6A9WLXgXC9TWh8dY5GhOd-w8Q@mail.gmail.com">http://lists.debian.org/CAPeNp_nFspP_9fgwRqc8iLEzk6A9WLXgXC9TWh8dY5GhOd-w8Q@mail.gmail.com
08-05-2011, 06:02 AM
Thomas Goirand
Changing MySQL debian-sys-maint
On 08/04/2011 10:40 AM, Bachsau WebWorX wrote:
> When setting up replication you'll have to change the password, not
> username. I'm talking about changing the username, as I want phpMyAdmin
> for my customers but don't want anyone brute-forcing it. Having a
> well-known root account makes me nervous.
In that case, you have to put in place something like fail2ban or
similar, or password protect the PHPMyAdmin access. Trying to remove the
debian-sys-maint user will only bring you troubles, and wont be a
protection against bad customers.
Thomas Goirand (zigo)
--
To UNSUBSCRIBE, email to debian-isp-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 4E3B8771.1080800@goirand.fr">http://lists.debian.org/4E3B8771.1080800@goirand.fr