View previous topic :: View next topic |
Author |
Message |
Chimpen n00b
Joined: 26 Apr 2004 Posts: 14 Location: Sweden
|
Posted: Sat May 01, 2004 7:40 pm Post subject: vsftpd and per user configuration |
|
|
Is there any way to set max clients and max clients per ip for different accounts?
And is there a complete list over what options that can be configured for each user? _________________ "Once the rockets are up, who cares where they come down? That's not my department." - Wernher von Braun |
|
Back to top |
|
|
legine Guru
Joined: 27 May 2004 Posts: 555 Location: Germany
|
Posted: Fri Jun 18, 2004 11:01 am Post subject: |
|
|
test to change the the setting in userbased configuration. I think it should work.
what you want to read is:
man vsftp.conf -> user_config_file how to change userbased setting.
Testing it will be faster then waiting for an answer
Post youre experiance here. It would interest me! |
|
Back to top |
|
|
Donkey n00b
Joined: 25 Oct 2003 Posts: 14
|
Posted: Sat Jun 19, 2004 2:06 pm Post subject: |
|
|
Right now I'm also trying to overcome this problem, but I'm also having problems. What I have done is the following:
Creating dir /etc/vsftpd_user_conf
Copying file /etc/vsftpd/vsftpd.conf to /etc/vsftpd_user_conf
Adjusting /etc/vsftpd_user_conf/vsftpd.conf to user settings and renaming it to the username.
Adding the line: user_config_dir=/etc/vsftpd_user_conf to /etc/vsftpd/vsftpd.conf.
Restarting daemon using /etc/init.d/vsftpd restart.
And it still doesn't work. When I log in with the user I have changed the settings from he still uses the general settings in /etc/vsftpd/vsftpd.conf.
Does anyone have an idea how to solve this problem?
Btw the version is 1.2.2. |
|
Back to top |
|
|
legine Guru
Joined: 27 May 2004 Posts: 555 Location: Germany
|
Posted: Sat Jun 19, 2004 6:46 pm Post subject: |
|
|
All right, i had this too. In my case vsftpd was not allowed to access the directory. Since Gentoo is quite hard set in security question I would try (for testing):
Code: |
mkdir /vsftpd
cp /etc/vsftpd_user_conf/username /vsftpd
|
restart vsftpd
If it does not work set the userright to ftp (or wathever vsftpd runs as Default is nobody i think)
hope this works |
|
Back to top |
|
|
Donkey n00b
Joined: 25 Oct 2003 Posts: 14
|
Posted: Mon Jun 21, 2004 12:51 pm Post subject: |
|
|
legine wrote: | All right, i had this too. In my case vsftpd was not allowed to access the directory. Since Gentoo is quite hard set in security question I would try (for testing):
Code: |
mkdir /vsftpd
cp /etc/vsftpd_user_conf/username /vsftpd
|
restart vsftpd
If it does not work set the userright to ftp (or wathever vsftpd runs as Default is nobody i think)
hope this works |
Ok, first of all I want to thank you for the answer because it worked perfectly for me.
But now I've got a new question. Why does this work? There is no difference in the file permissions in /etc/vsftpd_user_conf or /vsftpd. What am I missing? |
|
Back to top |
|
|
legine Guru
Joined: 27 May 2004 Posts: 555 Location: Germany
|
Posted: Mon Jun 21, 2004 5:20 pm Post subject: |
|
|
Sorry. I do not know. Maybe vsftpd is forbidden to access /etc?
I never looked at it. because I do my vsftpd configfiles all together in /vsftpd.
But I can look at it when iam back at work on wednesday. |
|
Back to top |
|
|
Donkey n00b
Joined: 25 Oct 2003 Posts: 14
|
Posted: Mon Jun 21, 2004 9:32 pm Post subject: |
|
|
legine wrote: | Sorry. I do not know. Maybe vsftpd is forbidden to access /etc?
I never looked at it. because I do my vsftpd configfiles all together in /vsftpd.
But I can look at it when iam back at work on wednesday. |
Please do. Because I find it quite irritating that I do not know why the solution works.
It just isn't logical. |
|
Back to top |
|
|
|