Tvel / VsftpdWeb

VsftpdWeb is a simple web interface for vsftpd ftp server.
http://velkoff.net/vsftpdweb/
Other
39 stars 23 forks source link

Directory exists and still tries to create it #4

Closed bogdanr closed 10 years ago

bogdanr commented 10 years ago

Whenever an admin trues to change FTP User settings an error is produced: change_user_settings_error

Tvel commented 10 years ago

Currently when a new user is created all db operations are made and then the script tries to create new directory with the username. If the directory exists or there is no rights to make it this error is thrown. The user is created, if you back to the users page it should be there. On Jan 14, 2014 11:56 AM, "Bogdan Rădulescu" notifications@github.com wrote:

Whenever an admin trues to change FTP User settings an error is produced: [image: change_user_settings_error]https://f.cloud.github.com/assets/1079875/1909400/817c574e-7cff-11e3-8c9d-76791a598fd6.png

— Reply to this email directly or view it on GitHubhttps://github.com/Tvel/VsftpdWeb/issues/4 .

Tvel commented 10 years ago

The "if dir exists" was broken somehow and i removed it, it will be returned.

And that error page needs more work.

Tvel commented 10 years ago

It seems that the user path used to mkdir is the Default user dir(only in web): field. So if this is empty the path is wrong.

I will change that to Disk path: (the main disk).

Tvel commented 10 years ago

Fixed and tested on CentOS and Debian. If you still have the problem it is related to permissions probably.