ftp user - owner - cannot download/upload

Discussion in 'Installation/Configuration' started by Fafa24, Dec 9, 2018.

  1. Fafa24

    Fafa24 New Member

    Hello

    I need your help. It's Ubuntu 18.10 server with ISPconfig 3.1. Client and website created and a ftp account. The client is client 9 and the ftp account is web12, so user ID is web12 and group ID client9. web12 and client9 is the owner of the folder web and all files within.

    The problem is: When I log in with winscp using ftp port 21 and web12 login. I can only read the files. I'm unable to upload or download. Error msg of winscp is "System error code 5, access denied".

    I also need to mention, it's a Wordpress website. There is a tmp folder and within that I can download/upload files.

    The octet for most files are 644 and folder 755. When I copy in a file to the tmp foldfer it gets octet 644.

    I think even with 644 as the owner I should be able to download files. Not?
     
  2. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    Winscp seems to be an SSH client. If you want FTP use Filezilla or command line ftp.
    Or set up ssh user and use winscp with that.
     
  3. Fafa24

    Fafa24 New Member

    Thanks for your reply. Just tried FileZilla and it doesn't work. I thin winscp is a ftp client too. Problem must be somewhere else.
     
  4. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    Are you uploading files to the websites /web directory? And with the FTP user created for just that website?
    I don't think I have ever had problems with this, if the user could log in.
     
  5. Fafa24

    Fafa24 New Member

    Yes correct, I use the ftp user created for this website. I have another website with a ftp user and there it seems to work fine. I'm not sure what is going on. My only explanation was owner or permission issue. Wnscp says "acccess denied"
     
  6. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    It would help if you can log in to our host and show
    Code:
    ls -lh
    of the /web -directory. Also
    Code:
    id web12
     
  7. Fafa24

    Fafa24 New Member

    Please see the output of the web12 folder and the web folder

    drwxr-xr-x 2 web12 client9 4.0K Aug 8 11:37 cgi-bin
    drwxr-xr-x 2 root root 4.0K Dec 10 06:26 log
    drwx--x--- 2 web12 client9 4.0K Aug 8 11:37 private
    drwxr-xr-x 2 root root 4.0K Aug 13 14:40 ssl
    drwxrwx--- 2 web12 client9 4.0K Dec 10 13:19 tmp
    drwx--x--x 11 web12 client9 4.0K Dec 9 13:51 web
    drwx--x--- 2 web12 client9 4.0K Aug 8 11:37 webdav

    drwx--x--x 11 web12 client9 4096 Dec 9 13:51 .
    drwxr-xr-x 10 root root 4096 Aug 8 11:37 ..
    drwxr-xr-x 3 web12 client9 4096 Aug 8 13:31 blogs
    drwxr-xr-x 2 web12 client9 4096 Aug 8 13:31 error
    -rw-r--r-- 1 web12 client9 418 Aug 8 13:31 index.php
    -rw-r--r-- 1 web12 client9 19550 Aug 8 13:31 license.txt
    -rw-r--r-- 1 web12 client9 94 Dec 7 15:13 phpinfo.php
    drwxr-xr-x 2 web12 client9 4096 Aug 8 13:32 provide
    -rw-r--r-- 1 web12 client9 7415 Aug 8 13:31 readme.html
    drwxr-xr-x 7 web12 client9 4096 Oct 19 10:36 shop
    drwxr-xr-x 16 web12 client9 4096 Dec 10 01:03 stats
    -rwxr--r-- 1 web12 client9 0 Dec 9 13:51 text
    drwxr-xr-x 2 web12 client9 4096 Dec 9 14:08 tmp
    -rw-r--r-- 1 web12 client9 5458 Aug 8 13:31 wp-activate.php
    drwxr-xr-x 9 web12 client9 4096 Aug 8 13:33 wp-admin
    -rw-r--r-- 1 web12 client9 364 Aug 8 13:31 wp-blog-header.php
    -rw-r--r-- 1 web12 client9 1889 Aug 8 13:31 wp-comments-post.php
    -rw-r--r-- 1 web12 client9 3120 Aug 8 13:31 wp-config.php
    -rw-r--r-- 1 web12 client9 2764 Aug 8 13:31 wp-config-sample.php
    drwxr-xr-x 9 web12 client9 4096 Aug 8 13:34 wp-content
    -rw-r--r-- 1 web12 client9 3669 Aug 8 13:31 wp-cron.php
    drwxr-xr-x 18 web12 client9 12288 Aug 8 13:36 wp-includes
    -rw-r--r-- 1 web12 client9 2422 Aug 8 13:31 wp-links-opml.php
    -rw-r--r-- 1 web12 client9 3306 Aug 8 13:31 wp-load.php
    -rw-r--r-- 1 web12 client9 37794 Aug 8 13:31 wp-login.php
    -rw-r--r-- 1 web12 client9 8048 Aug 8 13:31 wp-mail.php
    -rw-r--r-- 1 web12 client9 16246 Aug 8 13:31 wp-settings.php
    -rw-r--r-- 1 web12 client9 30091 Aug 8 13:31 wp-signup.php
    -rw-r--r-- 1 web12 client9 4620 Aug 8 13:31 wp-trackback.php
    -rw-r--r-- 1 web12 client9 3065 Aug 8 13:31 xmlrpc.php

    Thanks
     
  8. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    File and directory permissions look OK. You could use code tags to make the list readable.
    Remains the FTP user, if access is denied it is not the right user.
     
  9. till

    till Super Moderator Staff Member ISPConfig Developer

    Take a look at the ftp_user table in the ispconfig database with phpmyadmin, search for that user and then check if webID user and clientID group of the FTP user match the ones from that website.

    And as a general question, you tried to upload to the web folder, right, and not to / of the FTP directory tree?
     
  10. Fafa24

    Fafa24 New Member

    yes I tried to upload to the web folder and thanks for the tip about the ispconfig database. I will check that, maybe there are some incosnistent. I just checked the info at the ispconfig webgui. I didn't know where to check at the ispconfig database
     

Share This Page