• Recent
  • Unsolved
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login
  • Recent
  • Unsolved
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login

FTP Gotcha on Ubuntu (Should Be Added To The Wiki?)

Scheduled Pinned Locked Moved
Linux Problems
3
5
1.7k
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S
    SouperGrover
    last edited by Apr 23, 2015, 9:42 PM

    Hey guys,

    I just wanted to pass on something I had to work through with regards to uploading an image. I was getting the infamous “Can’t rename/move Permission Denied” messages on the client after it had finished imaging. Most posts tell you to ensure the FTP passwords are all set corretcy in the various PHP files, make sure permissions are set correctly on the /images folder, etc. None of this worked for me.

    I have a vanilla Ubuntu 14.04 server running only FOG. When I logged in using the fog user with an SCP client over SSH, I could read/write/modify/delete everything I expected to be able to. But, when I used and FTP client with the same account, I couldn’t even modify the fog user’s home directory. What I discovered was that in my /etc/vsftpd.conf file, [CODE]write_enable=YES[/CODE] was commented out, so therefor no FTP users could modify anything. After I uncommented this and restarted the service, I was able to get my image to finally upload

    Hope this can help someone else out because I didn’t se this as a solution anywhere else

    1 Reply Last reply Reply Quote 0
    • W
      Wayne Workman
      last edited by Apr 23, 2015, 11:03 PM

      After a quick search in the WiKi for vsftpd.conf with only two hits, I agree that there should be more documentation about this.

      I’ll work on adding examples for FTP configuration into the WiKi.

      Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!
      Daily Clean Installation Results:
      https://fogtesting.fogproject.us/
      FOG Reporting:
      https://fog-external-reporting-results.fogproject.us/

      1 Reply Last reply Reply Quote 0
      • T
        Tom Elliott
        last edited by Apr 23, 2015, 11:05 PM

        Normally, there’s a Priv Sock issue which is auto corrected for, now, in the installer. I’m not aware of write_enable.

        Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG! Get in contact with me (chat bubble in the top right corner) if you want to join in.

        Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

        Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

        1 Reply Last reply Reply Quote 0
        • S
          SouperGrover
          last edited by Apr 23, 2015, 11:16 PM

          This server actually started out as Ubuntu 12.04 I had some issues prior to getting this far, decided to upgrade the server, and didn’t get the image upload to even start until after the server was on 14.04. So, I’m not sure if that setting was in place from Ubuntu 12.04 or not. One of he Wiki pages advises you to backup any changes made to vsftpd.conf before doing a FOG upgrade. What modifications to the file does it do?

          1 Reply Last reply Reply Quote 0
          • W
            Wayne Workman
            last edited by May 1, 2015, 11:52 PM

            [quote=“SouperGrover, post: 46109, member: 27066”]Hey guys,

            I just wanted to pass on something I had to work through with regards to uploading an image. I was getting the infamous “Can’t rename/move Permission Denied” messages on the client after it had finished imaging. Most posts tell you to ensure the FTP passwords are all set corretcy in the various PHP files, make sure permissions are set correctly on the /images folder, etc. None of this worked for me.

            I have a vanilla Ubuntu 14.04 server running only FOG. When I logged in using the fog user with an SCP client over SSH, I could read/write/modify/delete everything I expected to be able to. But, when I used and FTP client with the same account, I couldn’t even modify the fog user’s home directory. What I discovered was that in my /etc/vsftpd.conf file, [CODE]write_enable=YES[/CODE] was commented out, so therefor no FTP users could modify anything. After I uncommented this and restarted the service, I was able to get my image to finally upload

            Hope this can help someone else out because I didn’t se this as a solution anywhere else[/quote]

            You’re problem and solution have been documented here: [url]http://fogproject.org/wiki/index.php/Troubleshoot_FTP#Images_stuck_in_.2Fimages.2Fdev[/url]

            Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!
            Daily Clean Installation Results:
            https://fogtesting.fogproject.us/
            FOG Reporting:
            https://fog-external-reporting-results.fogproject.us/

            1 Reply Last reply Reply Quote 0
            • 1 / 1
            • First post
              Last post

            164

            Online

            12.0k

            Users

            17.3k

            Topics

            155.2k

            Posts
            Copyright © 2012-2024 FOG Project