Wrong home folder permisions after changing ssh username
I first created a ssh user and then changed the username.
when I login to the shell my home directory is:
/var/www/clients/client[n]/web[n]/home/new_username
but I can't write in this directory:
cd .. ls -l
shows:
drwxr-x--- 2 web2 client5 4096 May 25 12:42 old_username drwxr-x--- 2 root client5 4096 May 25 12:43 new_username
repeating this shows another result of the bug:
the contents of /etc/passwd is one step behind; showing the details of the user created before.
opening and saving the user without modification fixes the contents of /etc/passwd.
but the folder permissions remain wrong.
I believe the expected behavior would be that ISPConfig renames the folder when an existing username changes or does not allow to change the username.