View Full Version : Virtual ftp users
mudder-board
20th November 2006, 00:05
I used http://www.howtoforge.com/proftpd_mysql_virtual_hosting
Everything went great, I made a few changes for instance, the doc root. I don't keep user doc roots in the home directory, well anyway I pointed it to /var/www/directory. The user logs in fine but can't transfer files, is this just because its in var/www ? Any suggestions are appreciated.
falko
20th November 2006, 14:50
I think it's a problem with the permissions. Please compare the permissions with the ones of the previous directory.
Also, what are the exact error messages?
mudder-board
21st November 2006, 04:30
The directory is in /var/www both have the same permissions
drwxr-xr-x
Feed back from my ftp client
27 Entering Passive Mode (xx,xx,xx,xx,xx,xx).
STOR custsup.jpg
Connect socket #2428 to xx.xx.xx.xx, port 33991...
550 custsup.jpg: Permission denied
custsup.jpg - 0 bytes transferred
Transfer time: 00:00:02
PASV
27 Entering Passive Mode (xx,xx,xx,xx,xx,xx).
LIST
Connect socket #2544 to xx.xx.xx.xx, port 33992...
150 Opening ASCII mode data connection for file list
226 Transfer complete.
Transferred 1,647 bytes in 0.015 seconds
But nothing actually transfers. Do you think its a directory issue or user permission
falko
22nd November 2006, 16:36
The directory is in /var/www both have the same permissions
drwxr-xr-x
And by which user and group is it owned?
mudder-board
23rd November 2006, 04:26
I followed the "How to" to the letter, only changing the path to the directory that the user had permission to use. So the group is ftpgroup and proftpd is a user, then I added another user to the group.
falko
24th November 2006, 16:13
What are the outputs of ls -la /home and ls -la /var/www?
mudder-board
25th November 2006, 00:54
ls -la /home
total 20
drwxrwsr-x 5 root staff 4096 2006-11-19 12:55 .
drwxr-xr-x 22 root root 4096 2006-10-25 18:58 ..
drwxr-xr-x 2 user1 user1 4096 2006-10-20 18:00 user1
drwxr-xr-x 2 ftp nogroup 4096 2006-10-15 18:13 ftp
drwxr-xr-x 2 user2 user2 4096 2006-11-21 19:39 user2
ls -la /var/www
total 28
drwxr-xr-x 7 root root 4096 2006-11-21 19:38 .
drwxr-xr-x 14 root root 4096 2006-10-15 17:54 ..
drwxr-xr-x 3 user2 user2 4096 2006-11-21 19:39 site1
drwxr-xr-x 4 user2 user2 4096 2006-11-19 10:08 site2
drwxr-xr-x 6 root root 4096 2006-11-19 18:24 site3
lrwxrwxrwx 1 root root 21 2006-11-13 17:44 phpmyadmin -> /usr/share/
phpmyadmin
drwxr-xr-x 2 www-data www-data 4096 2006-10-17 19:50 .ssh
drwxr-xr-x 2 root root 4096 2006-10-15 18:20 webalizer
falko
25th November 2006, 15:54
You can try this:
chgrp staff /var/www
chmod 2775 /var/www
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.