Upgrade deletes user name
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
base-passwd (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
Description: Ubuntu 22.04 LTS
Release: 22.04
I have a user account called rod
I created it from a root terminal with adduser rod && usermod -u 49 rod
When I upgraded from 20 to 21 the user was deleted
The /home/rod files were intact.
To recover the user I had to delete rod from /etc/group
adduser rod && usermod -u 49 rod
When I upgraded from 21 to 22 the account was deleted
The /home/rod files were intact.
To recover the user I had to delete rod from /etc/group
adduser rod && usermod -u 49 rod
There is no justification for an upgrade to delete a user.
The purpose of "usermod -u 49 rod" is so that user rod does not show on the login screen.
I suspect this is the reasoning behind removing the user.
ProblemType: Bug
DistroRelease: Ubuntu 22.04
Package: ubuntu-
ProcVersionSign
Uname: Linux 5.15.0-39-generic x86_64
NonfreeKernelMo
ApportVersion: 2.20.11-0ubuntu82.1
Architecture: amd64
CasperMD5CheckR
CrashDB: ubuntu
CurrentDesktop: ubuntu:GNOME
Date: Tue Jun 21 04:30:29 2022
PackageArchitec
SourcePackage: ubuntu-
Symptom: dist-upgrade
UpgradeStatus: Upgraded to jammy on 2022-06-17 (2 days ago)
VarLogDistupgra
Hmm, I am not sure why this is happening, but yes I would also guess it's because you set your UID to 49, which is in the "system" (i.e. non-human) UID range [1].
In any case, ubuntu- release- upgrader is not doing this. Rather, it would likely be caused by a specific package upgrade.
[1] https:/ /systemd. io/UIDS- GIDS/