Virtual ftp users

Discussion in 'HOWTO-Related Questions' started by mudder-board, Nov 19, 2006.

  1. mudder-board

    mudder-board New Member

    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.
     
  2. falko

    falko Super Moderator ISPConfig Developer

    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?
     
  3. mudder-board

    mudder-board New Member

    The directory is in /var/www both have the same permissions
    Code:
    drwxr-xr-x
    Feed back from my ftp client
    Code:
    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
     
  4. falko

    falko Super Moderator ISPConfig Developer

    And by which user and group is it owned?
     
  5. mudder-board

    mudder-board New Member

    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.
     
  6. falko

    falko Super Moderator ISPConfig Developer

    What are the outputs of
    Code:
    ls -la /home
    and
    Code:
    ls -la /var/www
    ?
     
  7. mudder-board

    mudder-board New Member

    ls -la /home
    Code:
    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
    Code:
    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
     
  8. falko

    falko Super Moderator ISPConfig Developer

    You can try this:
    Code:
    chgrp staff /var/www
    chmod 2775 /var/www
     

Share This Page