Who the fuck is debian-sys-maint?

Debian macht sich hervorragend als Web- und Mailserver. Schau auch in den " Tipps und Tricks"-Bereich.
Antworten
Benutzeravatar
acron
Beiträge: 147
Registriert: 03.05.2002 13:31:40
Wohnort: Aachen

Who the fuck is debian-sys-maint?

Beitrag von acron » 11.10.2002 15:47:46

Hi Debianer,
ich habe gerade den mysql-server installiert und bin irritiert, dass es ausser dem root- user noch einen zweiten 8O namens "debian-sys-maint" gibt.

Code: Alles auswählen

mysql> SELECT User, Password, Reload_priv, Shutdown_priv FROM user;
+------------------+------------------+-------------+---------------+
| User             | Password         | Reload_priv | Shutdown_priv |
+------------------+------------------+-------------+---------------+
| root             | 1c21de704663028e | Y           | Y             |
| root             | 1c21de704663028e | Y           | Y             |
|                  |                  | N           | N             |
|                  |                  | N           | N             |
| debian-sys-maint | 66073694263e4786 | Y           | Y             |
+------------------+------------------+-------------+---------------+
5 rows in set (0.01 sec)
der user hat Reload_priv Shutdown_priv rechte und auch ein Passwort. Weiß jemand wozu der gut ist, warum er im Gegensatz zu root zu Beginn bereits ein Passwort hat und wie sein passwort ist?

Grüße Acron

Benutzeravatar
pdreker
Beiträge: 8298
Registriert: 29.07.2002 21:53:30
Lizenz eigener Beiträge: MIT Lizenz
Wohnort: Nürnberg

Beitrag von pdreker » 11.10.2002 17:33:39

* MYSQL WON'T START?:
=====================
You may never ever delete the special "debian-sys-maint" user. This user
together with the credentials in /etc/mysql/debian.cnf are used by the
init scripts to stop the server as they would require knowledge of the
mysql root users password else.
So gefunden in /usr/share/doc/mysql-server/README.Debian

Patrick
Definitely not a bot...
Jabber: pdreker@debianforum.de

Benutzeravatar
feltel
Webmaster
Beiträge: 10368
Registriert: 20.12.2001 13:08:23
Lizenz eigener Beiträge: MIT Lizenz
Wohnort: Leipzig, Germany
Kontaktdaten:

Beitrag von feltel » 11.10.2002 17:34:33

Schau mal in /usr/share/doc/mysql-server/README.Debian. Das bring Licht ins Dunkle 8)

Benutzeravatar
acron
Beiträge: 147
Registriert: 03.05.2002 13:31:40
Wohnort: Aachen

Beitrag von acron » 14.10.2002 10:35:59

danke für die Antworten,
besonders @pdreker,

genau das wollte ich wissen :)
zu meiner Ehrenrettung, muss ich aber sagen, dass das in meiner README nicht steht (siehe unten) 8O

Code: Alles auswählen

dude:/usr/share/doc/mysql-server# less README.Debian 
* INNOBASE:
===========
To enable innobase support take a look at the example configs in
/usr/share/doc/mysql-server/examples. You have to specify at least 
some of those variables. Take a look at /var/log/mysql/mysql.err and 
of course the docs.

* PASSWORDS:
============
It is strongly recommended to set a password for the mysql root user 
(which is NOT the same as the "normal" root user) with the command:
 /usr/bin/mysqladmin -u root password 'new-password'

If you are tired to type the password in every time or want to automate
your scripts you can store it in the file /root/.my.cnf. It should be 
chmod 0600 (-rw------- root root .my.cnf) to ensure that nobody else can
read it. Every other configuration parameter can be stored there, too.
You will find an example below and more information in the MySQL manual 
in /usr/share/doc/mysql-doc or www.mysql.com.

ATTENTION: It is necessary, that this file always contains a "user" line 
whereever there is a "password" line, else, the Debian maintenance scripts,
that use /etc/mysql/debian.cnf, will use the username "debian-sys-maint" but 
the password that is in root's .my.cnf. Also note, that every change you make
in the /root/.my.cnf will affect the mysql cron script, too.

        # an example of /root/.my.cnf
        [mysql]
        user            = root
        password        = <secret>

        [mysqladmin]
        user            = root
        password        = <secret> 
        
(END) 
Weiß jemand auch ob man sich mit dem user an phpmyadmin anmelden kann und mysql beenden kann? Ich weiß leider dass passwort nicht :? , sonst hätte ich's selber probiert...

Grüße Acron

Benutzeravatar
acron
Beiträge: 147
Registriert: 03.05.2002 13:31:40
Wohnort: Aachen

Beitrag von acron » 14.10.2002 10:41:34

Weiß jemand auch ob man sich mit dem user an phpmyadmin anmelden kann und mysql beenden kann? Ich weiß leider dass passwort nicht , sonst hätte ich's selber probiert...
hab's dass Passwort gerade doch gefunden..., man kann sich tatsächlich damit einloggen, aber man kann die mysql damit nicht stoppen (von phpmyadmin aus)... :)

Grüße Acron

Antworten