removing mysql with apt doesn't delete user mysql
Bug #753605 reported by
Enrique
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
mysql-5.1 (Ubuntu) |
Opinion
|
Undecided
|
Unassigned |
Bug Description
I installed mysql-5.1 and later on I wanted to remove it. When I purged it, the mysql user is still in my /etc/passwd. I think that the user has to be removed, to leave the system in the same status as before.
It can be reproduced with the following commands:
apt-get install mysql-server
apt-get purge libdbd-mysql-perl libdbi-perl libhtml-
After that, the user mysql appears at the end of /etc/passwd, which shouldn't.
Also, the group mysql should be removed, if contains no other users.
I am using Ubuntu 10.04 TLS
Regards
To post a comment you must log in.
From a security point of vue, removing a user isn't a good idea. There could be files in the filesystem that are leftover with the mysql user UID, and if the mysql user is deleted, the UID may be reassigned, rendering those files visible to the new user.