Alrighty. I was just starting to configure my new Debian box, adding users etc but i hit a bit of a wall.
I'm using vsftpd and it's configured to chroot local users to their home directories.
For some reason it works perfectly for my own account (stebbiv) but for other accounts it's not the same. They have can't access their home directory but they can access the public_html directory within it (a public directory).
Here are some examples of login attempts
Code:
mjallhvit:~ stebbiv$ ftp ftp://stebbiv@hostname/
Connected to hostname.
220 (vsFTPd 2.0.5)
331 Please specify the password.
Password:
230 Login successful.
Remote system type is UNIX.
Using binary mode to transfer files.
200 Switching to Binary mode.
ftp> ls
229 Entering Extended Passive Mode (|||56330|)
150 Here comes the directory listing.
drwxr-xr-x 2 1000 1000 4096 Aug 16 02:59 www
226 Directory send OK.
ftp> exit
221 Goodbye.
As you can see, my user account can connect to the machine and it shows a bit of a directory listing as well. Everything is okay with that.
Code:
mjallhvit:~ stebbiv$ ftp ftp://maggielvar@hostname
Connected to hostname.
220 (vsFTPd 2.0.5)
331 Please specify the password.
Password:
230 Login successful.
Remote system type is UNIX.
Using binary mode to transfer files.
200 Switching to Binary mode.
550 Failed to change directory.
221 Goodbye.
Here, maggielvar connects to the machine and logs in like he should but he's thrown out with a 550 error for some reason.
Code:
mjallhvit:~ stebbiv$ ftp ftp://maggielvar@hostname/public_html/
Connected to hostname.
220 (vsFTPd 2.0.5)
331 Please specify the password.
Password:
230 Login successful.
Remote system type is UNIX.
Using binary mode to transfer files.
200 Switching to Binary mode.
250 Directory successfully changed.
ftp> ls
229 Entering Extended Passive Mode (|||17755|)
150 Here comes the directory listing.
226 Directory send OK.
ftp> exit
221 Goodbye.
Now, maggielvar attempts to access his public_html directory, he logs in and can see an empty directory listing.
So is this a permission problem or is there anything wrong about my configuration?
Both the config file and the permissions seem to be okay at least.