Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
vsftpd and per user configuration
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
Chimpen
n00b
n00b


Joined: 26 Apr 2004
Posts: 14
Location: Sweden

PostPosted: Sat May 01, 2004 7:40 pm    Post subject: vsftpd and per user configuration Reply with quote

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
View user's profile Send private message
legine
Guru
Guru


Joined: 27 May 2004
Posts: 555
Location: Germany

PostPosted: Fri Jun 18, 2004 11:01 am    Post subject: Reply with quote

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
View user's profile Send private message
Donkey
n00b
n00b


Joined: 25 Oct 2003
Posts: 14

PostPosted: Sat Jun 19, 2004 2:06 pm    Post subject: Reply with quote

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
View user's profile Send private message
legine
Guru
Guru


Joined: 27 May 2004
Posts: 555
Location: Germany

PostPosted: Sat Jun 19, 2004 6:46 pm    Post subject: Reply with quote

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
View user's profile Send private message
Donkey
n00b
n00b


Joined: 25 Oct 2003
Posts: 14

PostPosted: Mon Jun 21, 2004 12:51 pm    Post subject: Reply with quote

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
View user's profile Send private message
legine
Guru
Guru


Joined: 27 May 2004
Posts: 555
Location: Germany

PostPosted: Mon Jun 21, 2004 5:20 pm    Post subject: Reply with quote

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
View user's profile Send private message
Donkey
n00b
n00b


Joined: 25 Oct 2003
Posts: 14

PostPosted: Mon Jun 21, 2004 9:32 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum