Ftp login for users fail: Invalid shell: '/dev/null'

SYSTEM INFORMATION
OS type and version ubuntu 22.04
Webmin version 2.021
Virtualmin version 7.7
Related packages pro-ftp

we want to use one domain just for ftp. users can’t login as they get

2023-08-02 08:45:59,772 v054 proftpd[1878] ftp.example.com (exmple.com(IP)): USER ftp1@ftp.example.com (Login failed): Invalid shell: ‘/dev/null’

this is with the default proftp configuration, although it might have brought over from ubuntu 18.04 as we did an inplace upgrade some time…

that seems to answer the question, check the user your logging in with has a valid shell & adjust it as required

1 Like

this user was created by virtualmin, so, what would be a valid shell here? and why was it set this way?

also: there are two entries per user?

Look in webmin rather than virtualmin system->users i think is where it’s located edit the user (ignore the warning) and from there you will be able to see what shell is allocated to the user(s) from there you can edit it to a usable shell for your purposes. But using one domain why are you doing that ? This may cause you problems with permissions

thanks, please let the devs answer this one. I know that I can edit the shell for the user, the question remains, why /dev/null is set when creating a user and not /bin/false.

Doesn’t happen for me but yes your right let the devs answer it

ok, even stranger, when bacth creating ftp users (.csv import) the shell is set to /bin/false as it should be

You can change defaults using in System Customization ⇾ Custom Shells page.

Defaults will be applied automatically when creating a user using Edit Users: Create User page. Although, you can always change it any time new user is created under Other user permissions accordion (on mentioned page).

ah! there it is. virtualmin has far, far too many places for settings. I tried four before givng up ;/

1 Like

You’re right. It all got split up because there are so many configurable settings and the pages were overwhelming, but now the menus are overwhelming. We have to simplify the product, but every time we try people yell loud about removing features or making things no longer configurable that previously were.

hehe… I feel you. keep on! :slight_smile:

Any way to add a top level filter to all menu text that either links to the actual menu or displays the menu location?

cpanel the same, I have to use search to find things

You can already search for everything in the magic search box, including this.

Screenshot from 2023-08-02 17-30-44

Though I think currently it’s still buggy and doesn’t search through all of Webmin, only Virtualmin, when you’re in the Virtualmin tab, and vice-versa. But, still, it finds this, if you search for shell or shells.

1 Like

LOL, I’ve looked at those menus for years and never noticed that.
I guess its one of those can’t see the forest for the trees moments.

I believe the search box is in the wrong place, but Ilia disagrees. We argue about it now and then.

Some things I don’t notice because they are the same colour as the backgrounds. I added colour to the buttons in the Usermin Filters so I could spot them easier. It makes them easier for me to distinguish them from informational or heading text.

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.