If you are having problems trying to create a user successfully from the Virtualmin web interface, and you get an error message like this:
"Selected shell is not available for mail / FTP users"
Check the following.
Make sure that you are running Virtualmin > 3.51.
With this problem you may see on the create user form in the "Other User Permissions" section the "Login Permissions" dropbox will be blank.
You may also see something like this in the miniserv.error log:
[code:1][31/Jan/2008:16:52:31 -0600] [1.1.1.1] /unauthenticated//…/…/…/…/…/…/…/…/…/…/…/…/…/…/…/…/…/…/…/…/…/…/…/…/…/…/…/…/…/…/…/…/…/…/…/…/…/…/…/…/…/…/…/…/…/…/…/…/…/…/…/…/…/…/…/…/…/…/…/…/…/…/…/…/…/…/…/…/…/…/…/…/…/…/…/…/…/…/…/…/etc/shells : File not found
[/code:1]
Fix:
In the Virtualmin navigation, select "System Customization" > "Custom Shells".
If the table is blank, then either enter at least one custom shell setting. Or set it to "Virtualmin built-in defaults" and then save it.
This should now fix your available settings.