HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   HOWTO-Related Questions (http://www.howtoforge.com/forums/forumdisplay.php?f=2)
-   -   Virtual Hosting With Proftpd And MySQL (Incl. Quota) On Debian Etch (http://www.howtoforge.com/forums/showthread.php?t=14336)

Spreech 28th July 2007 23:20

Virtual Hosting With Proftpd And MySQL (Incl. Quota) On Debian Etch
 
Hi @ all,

first of all I want to say a big THANKS to the author of the HOW TO!
It is really great!

I have on question.

I have done the following instructions:

groupadd -g 2001 ftpgroup
useradd -u 2001 -s /bin/false -d /bin/null -c "proftpd user" -g ftpgroup ftpuser

And I have also added the testuser into the database.

But now I mentioned that it is possible to login for users who are not in the group 2001, too.

Is that normal?
If this is normal, how can I get it, that not every user can login via ftp?

Thanks a lot in advance for your help.

Manuel

falko 29th July 2007 14:38

Quote:

Originally Posted by Spreech
But now I mentioned that it is possible to login for users who are not in the group 2001, too.

Is that normal?
If this is normal, how can I get it, that not every user can login via ftp?

This setup is about virtual users, not system users. Virtual users aren't members of any group.

Spreech 29th July 2007 15:19

Thanks for your reply Falko.

Do you know if there is any option to disable login for some users?

My idea is to grant only members of the mysql database access to ftp.

Manuel

falko 30th July 2007 17:21

Quote:

Originally Posted by Spreech
Do you know if there is any option to disable login for some users?

Yes, give your system users a shell that is not listed in /etc/shells (e.g. /bin/false).

Spreech 31st July 2007 19:21

thanks for your reply falko.

I found another solution:

you can add the following line into the proftpd.conf file:

<Limit LOGIN>

AllowUser ftpuser

AllowGroup ftpgroup

DenyAll

</Limit>

Regards

Manuel


All times are GMT +2. The time now is 03:56.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.