johnman145
November 30th, 2008, 11:03 AM
I just had something weird. I installed proftpd server from the default repo, and used webmin to configure it.
Everything worken as expected and i could login with name&pass. I have 2 accounts configured and depending on what name you use, you get into your own homedirectory.
I was in shock however when i logged in through vnc on an other computer and got read access to the root of the server (yeah, /). I looked in the configuration and noticed the setting
DefaultRoot ~
and then all was okay.
But somehow on the ubuntu 8.04 this is NOT the default and i am pretty sure it was the default before (i also have an older server). Im not sure whether this is a ubuntu or proftpd thing... but im posting it here just to be sure. If you would always got into the root directory it would be even that much of a problem, but when i used filezilla ftp client, IE6 and ff it does work as expected. Only with (i think IE 7) i could see everything from the root up :confused:.
If it was up to me i would:
- make sure you always get in the same dir, no matter which client you use
- make the default that a user can only access his own dir
Everything worken as expected and i could login with name&pass. I have 2 accounts configured and depending on what name you use, you get into your own homedirectory.
I was in shock however when i logged in through vnc on an other computer and got read access to the root of the server (yeah, /). I looked in the configuration and noticed the setting
DefaultRoot ~
and then all was okay.
But somehow on the ubuntu 8.04 this is NOT the default and i am pretty sure it was the default before (i also have an older server). Im not sure whether this is a ubuntu or proftpd thing... but im posting it here just to be sure. If you would always got into the root directory it would be even that much of a problem, but when i used filezilla ftp client, IE6 and ff it does work as expected. Only with (i think IE 7) i could see everything from the root up :confused:.
If it was up to me i would:
- make sure you always get in the same dir, no matter which client you use
- make the default that a user can only access his own dir