Updating a shell user's username causes new home directory to be owned by root
short description
When a shell user is created with a prefix, it creates the shell user fine.
If the user updates only the username, a bug is triggered where the new home directory is owned by the root user.
correct behaviour
Updated home directory should be owned by the shell user.
environment
Server OS: debian
Server OS version: 8
ISPConfig version: .19
STEPS TO REPRODUCE AND OUTPUT:
- log in and create a shell user.
- verify it is created (see below)
root@war:/var/www/clients/client586/web613/home# ls -la
total 12
drwxr-xr-x 3 root root 4096 Jan 4 17:45 .
drwxr-xr-x 11 web613 client586 4096 Jan 4 11:58 ..
drwxr-x--- 3 web613 client586 4096 Jan 4 17:45 fs-awwo
- edit the username field, and change the username to a new username.
- a new user home directory is created, and is owned by root and readable by other users. (a bug)
root@war:/var/www/clients/client586/web613/home# ls -la
total 16
drwxr-xr-x 4 root root 4096 Jan 4 17:47 .
drwxr-xr-x 11 web613 client586 4096 Jan 4 11:58 ..
drwxr-xr-x 3 root root 4096 Jan 4 17:47 fs-aawo
drwxr-x--- 3 web613 client586 4096 Jan 4 17:45 fs-awwo