LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Can't make vsftp works on Ubuntu - Users can't login (https://www.linuxquestions.org/questions/linux-server-73/cant-make-vsftp-works-on-ubuntu-users-cant-login-790362/)

bathory 02-21-2010 01:16 PM

You have to check if /bin/false exists in /etc/shells as a valid shell.
Also check logs for hints.

cianoz 02-21-2010 02:15 PM

OK, after googling a little more and making some more tries i think i finally got everything working like expected!
Here is my final steps.

AFAIK the reason why "abuser" couldn't login was that "/bin/false" was not listed in "/etc/shells". Then i added it there, tried to login again and... yeah! abuser has finally been able to do the login!

The second and last step was to change his groups membership, assigning only "rubriche_ro" as primary group and removing any other secondary group. This way he doesn't have write access to /var/www/ftp/ (where only the owner "abadmin" and the group "ftpusers" have write access)

I really hope to not encounter any other unexpected surprise. Basing me on what i see at the moment everything seems to work well.

There's only still one thing that i can't make to work as i would: everything works only if i set "userlist_enable=NO" (disabled). This is somehow a limitation, because i can't define which users have to be ftp users. At the moment any user of the system is a potential ftp user.

cianoz 02-21-2010 02:17 PM

Quote:

Originally Posted by bathory (Post 3871673)
You have to check if /bin/false exists in /etc/shells as a valid shell.
Also check logs for hints.

You posted just seconds before my last post!
As you can see it was exactly one of the things to check!

bathory 02-21-2010 04:17 PM

Quote:

There's only still one thing that i can't make to work as i would: everything works only if i set "userlist_enable=NO" (disabled). This is somehow a limitation, because i can't define which users have to be ftp users. At the moment any user of the system is a potential ftp user.
You have to use:
Code:

userlist_deny=no
userlist_enable=yes
userlist_file=userlist_file=/etc/vsftpd_user_list

Regards


All times are GMT -5. The time now is 09:14 AM.