Clicking Shell User > Options Tab Causes Unrequested Save
HOW TO REPRODUCE
Login to the back-end as the administrator (admin). Do:
Command Line > Shell-User > Add new Shell-User
Select from the Site drop-down a site. Enter Username Enter Password Enter Repeat Password Select from the Chroot Shell drop-down the entry Jailkit Paste a public key into the SSH-RSA Public Key textarea field
Click the Options tab (do not click Save)
After clicking the Options tab, the shell user is unexpectedly saved and the /etc/passwd file is updated.
WHY THIS IS A PROBLEM
The default values under the Options tab are:
Web Username: Web Group: Shell: /bin/bash Dir: /var/www/clients//
For example:
Web Username: web23 Web Group: client10 Shell: /bin/bash Dir: /var/www/clients/client10/web23
I've created the user client10 (uid: 5028) that has client10 as its primary group and /var/www/clients/client10 as the home directory. So, I want to set the options above as:
Web Username: client10 Web Group: client10 Shell: /bin/bash Dir: /var/www/clients/client10
WORKAROUND
I am not sure if the workaround of manually changing the /etc/password contents as shown below is sufficient:
client10jailuser:x:5027:5011::/var/www/clients/client10/web23/./home/toolssteve:/usr/sbin/jk_chrootsh
to:
client10jailuser:x:5028:5011::/var/www/clients/client10/./home/toolssteve:/usr/sbin/jk_chrootsh
Note above: I changed 5027 -> 5028, and I changed the home directory path.
REQUESTED FIX
Please do not automatically save a Shell-User when the Options tab is clicked.