Page 1 of 2 12 Last
  • Jump to page:
    #1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2005
    Posts
    325
    Rep Power
    10

    Can't see any files in FTP directory


    I have my own F9 server with vsftpd running. From my windoze machine, I'm using FileZilla to connect.
    It connects OK to home/woger, but it doesn't show any of the files in that directory.
    When I try to upload a file (even if it's in 8.3 format) I get a 553 error on Filezilla.
    I'm a Linux Noob, but I guess it's a permissions error (????).
    Can anyone pls suggest a solution - I'm the only one using it to upload stuff for Apache and other apps running on my webserver - no public access is required.

    Cheers
    Last edited by woger; July 11th, 2009 at 11:02 PM.
  2. #2
  3. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2009
    Posts
    9
    Rep Power
    0
    Originally Posted by woger
    I have my own F9 server with vsftpd running. From my windoze machine, I'm using FileZilla to connect.
    It connects OK to home/woger, but it doesn't show any of the files in that directory.
    When I try to upload a file (even if it's in 8.3 format) I get a 553 error on Filezilla.
    I'm a Linux Noob, but I guess it's a permissions error (????).
    Can anyone pls suggest a solution - I'm the only one using it to upload stuff for Apache and other apps running on my webserver - no public access is required.

    Cheers
    HI THere,
    yes usually 553 error on Filezilla was cause by the permission problem can you makesure that all the files /folder on the /home/woger have the same owner as your ftp username login ( i assume you use woger as the username) can you chown it
    #chown woger.woger -R /home/woger
    if the owner are woger can you checked the files or folder permission and set it to be 755
    #chmod 755 -R /home/woger
    if it is still not working can you ls the /home/woger and paste it in hhere
    # ls -al /home/woger
    nb: this is my first post
    Adityo
  4. #3
  5. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2005
    Posts
    325
    Rep Power
    10
    Very good first post too - I hadn't been able to work out the syntax for chown.
    But it didn't do what I needed. The files/directories are still not visible. Here's the listing of the directory:
    Desktop Documents Download moo Music Pictures Public Templates Videos

    When I used chmod, I did get an error:
    chmod: cannot access `/home/woger/.gvfs': Permission denied

    The moo directory is particularly the one I want access to, to upload files.
    Remember, I did say i was a NOOB at Linux type stuff. Apache and other services are working OK, but it could be operator error.
    Cheers



    Originally Posted by adityo
    HI THere,
    yes usually 553 error on Filezilla was cause by the permission problem can you makesure that all the files /folder on the /home/woger have the same owner as your ftp username login ( i assume you use woger as the username) can you chown it
    #chown woger.woger -R /home/woger
    if the owner are woger can you checked the files or folder permission and set it to be 755
    #chmod 755 -R /home/woger
    if it is still not working can you ls the /home/woger and paste it in hhere
    # ls -al /home/woger
    nb: this is my first post
    Adityo
  6. #4
  7. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2009
    Posts
    9
    Rep Power
    0
    Originally Posted by woger
    Very good first post too - I hadn't been able to work out the syntax for chown.
    But it didn't do what I needed. The files/directories are still not visible. Here's the listing of the directory:
    Desktop Documents Download moo Music Pictures Public Templates Videos

    When I used chmod, I did get an error:
    chmod: cannot access `/home/woger/.gvfs': Permission denied

    The moo directory is particularly the one I want access to, to upload files.
    Remember, I did say i was a NOOB at Linux type stuff. Apache and other services are working OK, but it could be operator error.
    Cheers
    Hi woger,

    May i know the username of your ftp login ? could you paste here the full of ls
    example:
    # ls -al /home
    total 28
    drwxr-xr-x 5 root root 4096 Jun 18 10:47 .
    drwxr-xr-x 24 root root 4096 Jul 9 18:21 ..
    drwx------ 2 adityo adityo 4096 Jun 18 10:47 adityo
    drwxr-xr-x 10 root root 4096 Jun 26 14:23 test


    as you can see on folder adityo the owner was adityo and folder test owner was root, you are trying to chmod from the shell right ?

    Regards,
    Adityo
  8. #5
  9. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2005
    Posts
    325
    Rep Power
    10
    My username is basil. Here is the listing:
    [root@sbc ~]# ls -al /home
    total 20
    drwxr-xr-x 4 root root 4096 2009-07-12 12:10 .
    drwxr-xr-x 21 root root 4096 2009-07-12 12:06 ..
    drwxr-xr-x 27 basil basil 4096 2009-07-12 12:11 basil

    Hope that tells you something
    Cheers
  10. #6
  11. Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2005
    Posts
    186
    Rep Power
    178
    Login as root and run this command:
    Code:
    chown -R basil:basil /home/woger
  12. #7
  13. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2005
    Posts
    325
    Rep Power
    10
    Originally Posted by adityo
    Hi woger,

    May i know the username of your ftp login ? could you paste here the full of ls
    example:
    # ls -al /home
    total 28
    drwxr-xr-x 5 root root 4096 Jun 18 10:47 .
    drwxr-xr-x 24 root root 4096 Jul 9 18:21 ..
    drwx------ 2 adityo adityo 4096 Jun 18 10:47 adityo
    drwxr-xr-x 10 root root 4096 Jun 26 14:23 test


    as you can see on folder adityo the owner was adityo and folder test owner was root, you are trying to chmod from the shell right ?

    Regards,
    Adityo
    yes I am using chmod from the terminal, as root, from a separate machine. Despite the "confusion" over username, I have been making the correct changes.
  14. #8
  15. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2009
    Posts
    9
    Rep Power
    0
    Originally Posted by woger
    yes I am using chmod from the terminal, as root, from a separate machine. Despite the "confusion" over username, I have been making the correct changes.
    Okay so the
    chown -R basil:basil /home/woger fixed the ftp problem right ?


    Adityo
  16. #9
  17. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2005
    Posts
    325
    Rep Power
    10
    Originally Posted by adityo
    Okay so the
    chown -R basil:basil /home/woger fixed the ftp problem right ?


    Adityo
    No, I can still open the folder home/basil, but not see the files within.
    I was just saying I WAS doing as you were suggesting. My home folder is basil, so I was also clarifying that. When I follow your code, I get:

    [root@sbc ~]# chown -R basil:basil /home/basil
    chown: cannot access `/home/basil/.gvfs': Permission denied

    Same as before.
    Any ideas?
  18. #10
  19. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2009
    Posts
    9
    Rep Power
    0
    Okay let me clarify first you are using username=basil for your ftp login right ? and you are trying to access /home/basil not /home/woger right ? you can login to /home/basil but cannot see the files ?. Can we have your files/folder ownership inside /home/basil ?
    just run this
    # ls -al /home/basil/

    Adityo
  20. #11
  21. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2005
    Posts
    325
    Rep Power
    10
    Yes - that's correct. I was initially just worried about security.
    Here's the output:
    Also, if I try to upload to the directory, I get error 553 Could not create file.
    Error: Critical error. That's even with a file in 8.3 formay.

    Code:
     ls -al /home/basil
    ls: cannot access /home/basil/.gvfs: Permission denied
    total 156
    drwxr-xr-x 27 basil basil 4096 2009-07-12 12:11 .
    drwxr-xr-x  4 root  root  4096 2009-07-12 12:10 ..
    -rwxr-xr-x  1 basil basil  513 2009-06-01 19:20 .bash_history
    -rwxr-xr-x  1 basil basil   18 2008-03-01 00:27 .bash_logout
    -rwxr-xr-x  1 basil basil  176 2008-03-01 00:27 .bash_profile
    -rwxr-xr-x  1 basil basil  124 2008-03-01 00:27 .bashrc
    drwxr-xr-x  2 basil basil 4096 2009-04-21 17:37 .config
    drwxr-xr-x  3 basil basil 4096 2009-04-21 17:37 .dbus
    drwxr-xr-x  2 basil basil 4096 2009-06-01 06:10 Desktop
    -rwxr-xr-x  1 basil basil   31 2009-07-12 12:11 .dmrc
    drwxr-xr-x  2 basil basil 4096 2009-04-21 17:37 Documents
    drwxr-xr-x  2 basil basil 4096 2009-04-21 17:37 Download
    -rwxr-xr-x  1 basil basil   16 2009-04-21 17:37 .esd_auth
    drwxr-xr-x  4 basil basil 4096 2009-07-12 12:11 .gconf
    drwxr-xr-x  2 basil basil 4096 2009-07-12 12:44 .gconfd
    drwxr-xr-x  7 basil basil 4096 2009-04-21 17:44 .gnome2
    drwxr-xr-x  2 basil basil 4096 2009-04-21 17:37 .gnome2_private
    drwxr-xr-x  2 basil basil 4096 2009-04-21 17:37 .gstreamer-0.10
    -rwxr-xr-x  1 basil basil  136 2009-07-12 12:11 .gtk-bookmarks
    d?????????  ? ?     ?        ?                ? .gvfs
    -rwxr-xr-x  1 basil basil  624 2009-07-12 12:11 .ICEauthority
    drwxr-xr-x  3 basil basil 4096 2009-04-21 17:37 .local
    drwxr-xr-x  3 basil basil 4096 2009-04-21 17:37 .metacity
    drwxr-xr-x  6 basil basil 4096 2009-06-08 11:05 moo
    drwxr-xr-x  5 basil basil 4096 2009-04-21 17:42 .mozilla
    drwxr-xr-x  2 basil basil 4096 2009-04-21 17:37 Music
    drwxr-xr-x  3 basil basil 4096 2009-04-21 17:44 .nautilus
    drwxr-xr-x  2 basil basil 4096 2009-04-21 17:37 Pictures
    drwxr-xr-x  2 basil basil 4096 2009-04-21 17:37 Public
    drwxr-xr-x  2 basil basil 4096 2009-04-21 17:37 .pulse
    -rwxr-xr-x  1 basil basil  256 2009-04-21 17:37 .pulse-cookie
    -rwxr-xr-x  1 basil basil  218 2009-04-21 17:44 .recently-used.xbel
    drwxr-xr-x  2 basil basil 4096 2009-04-21 17:37 Templates
    drwxr-xr-x  3 basil basil 4096 2009-04-21 17:37 .thumbnails
    drwxr-xr-x  4 basil basil 4096 2009-04-21 17:37 .tomboy
    -rwxr-xr-x  1 basil basil 4952 2009-07-12 12:11 .tomboy.log
    drwxr-xr-x  2 basil basil 4096 2009-04-21 17:37 Videos
    drwxr-xr-x  2 basil basil 4096 2009-04-21 17:37 .wapi
    -rwxr-xr-x  1 basil basil  935 2009-07-12 12:11 .xsession-errors
    Last edited by woger; July 16th, 2009 at 03:28 PM.
  22. #12
  23. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2009
    Posts
    9
    Rep Power
    0
    As i know GVFS is a replacement for GnomeVFS the GNOME Virtual File System. You must have gvs installed. Hmm i am not certain if gvs blocking your vsftpd view , you can checked if you are using gvs or not by typing:
    # rpm -qa | grep gvfs
    it should show the gvfs tipe and version, if you certain that the problem was GVFS and you are not using it you can remove it
    using rpm -e yourgvfsfullnameandtype --nodeps.
    The question is actually when you are accessing your ftp what is your error log /var/log/vsftpd.log , can you paste here.Is there any firewall or SElinux that may blocking you ?

    Adityo
  24. #13
  25. Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2005
    Posts
    186
    Rep Power
    178
    As root try this command.
    Code:
    chmod 755 /home/basil/.gvfs
    And check if you still get permission denied.
  26. #14
  27. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2005
    Posts
    325
    Rep Power
    10
    Originally Posted by fayax
    As root try this command.
    Code:
    chmod 755 /home/basil/.gvfs
    And check if you still get permission denied.
    [root@sbc log]# chmod 755 /home/basil/.gvfs
    chmod: cannot access `/home/basil/.gvfs': Permission denied
    Looking for the logs now!
  28. #15
  29. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2005
    Posts
    325
    Rep Power
    10
    Originally Posted by adityo
    As i know GVFS is a replacement for GnomeVFS the GNOME Virtual File System. You must have gvs installed. Hmm i am not certain if gvs blocking your vsftpd view , you can checked if you are using gvs or not by typing:
    # rpm -qa | grep gvfs
    it should show the gvfs tipe and version, if you certain that the problem was GVFS and you are not using it you can remove it
    using rpm -e yourgvfsfullnameandtype --nodeps.
    The question is actually when you are accessing your ftp what is your error log /var/log/vsftpd.log , can you paste here.Is there any firewall or SElinux that may blocking you ?

    Adityo
    I didn't think I was using gvfs. But I'm a NOOB. I set this server up to run Apache and get FTP access to Apache and othe apps.
    Here's the ouput:
    [root@sbc ~]# rpm -qa|grep gvfs
    gvfs-0.2.3-11.fc9.i386
    gvfs-fuse-0.2.3-11.fc9.i386

    The log for vsftpd was empty. As far as I can tell anyway. I am attaching the vsftpd.conf file, in case there is an anomaly there. (Renamed as a .txt so it would upload)
    Thanks
Page 1 of 2 12 Last
  • Jump to page:

IMN logo majestic logo threadwatch logo seochat tools logo