Page MenuHomeVyOS Platform

login: removing and re-adding a user keeps the home directory but UID will change, thus SSH keys no longer work
Closed, ResolvedPublicBUG

Description

[email protected]:/home$ ls -al
total 16
drwxr-xr-x 1 root root  4096 Dec 29 09:23 .
drwxr-xr-x 1 root root  4096 Dec 29 09:27 ..
drwxr-xr-x 4 1002 users 4096 Dec 29 09:23 cpo
drwxr-xr-x 3 vyos users 4096 Dec 29 09:26 vyos
[email protected]:/home$ id
uid=1004(cpo) gid=100(users) groups=100(users),4(adm),6(disk),27(sudo),30(dip),102(vyattacfg),114(_kea),116(frrvty),117(frr)

After deleting the cpo user account and working with the "new" added vyos account, I can see that after rebooting in the previously saved configuration (which had the cpo user but not vyos will re-add the cpo user but keep the old homedir with its previous owner UID.

Details

Difficulty level
Unknown (require assessment)
Version
1.4.0-rc1
Why the issue appeared?
Will be filled on close
Is it a breaking change?
Perfectly compatible
Issue type
Bug (incorrect behavior)