• Hello everyone,

    I just did a fresh install of Ubuntu Server 14.04.
    I installed LAMP… and installed WordPress 3.9.1
    I installed WordPress, all good.
    I then installed SSH SFTP Updater Support.
    When I try to use it for the first time, it throws me “Could not copy file.”

    So I thought it was because of the permissions to where it’s uploading. I checked, and the permissions of that directory (plugins/) were set to nobody and nogroup.
    I then created a new group, www
    I added myUSER to the www group
    I then did chown myUSER:www plugins/
    Yet when I use the sftp plugin, it still throws the “Could not copy file” error.

    Any thoughts on what I’m missing?

    https://wordpress.org/plugins/ssh-sftp-updater-support/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter knucleheads

    (@knucleheads)

    Hello,
    I have been working on this problem all morning.
    The plugins/ directory is now owned by myUSER, and its group.
    myUSER is part of the group.

    I can log into the server via ssh with this user, just fine.

    ssh -l myUSER -p 1234 ser.ver.ip.addy
    Then it prompts me for password, I enter it, and I log in fine.

    Yet, when I am going to use the SSH SFTP Updater Support plugin, the setup is as follows:
    ser.ver.ip.addy:1234
    username: myUSER
    password: 12345

    I select the radio button for SSH2, and click Proceed.
    Yet the plugin returns

    Username/Password incorrect for myUSER

    I am watching my server’s /var/log/auth.log file.
    The plugin is able to login to the server, and the server accepts the password.

    Yet as soon as the server accepts the password, I see that the session gets closed:

    Accepted password for myUSER from ser.ver.ip.addy port 59891 ssh2
    May 26 19:14:36 myserver sshd[23425]: pam_unix(sshd:session): session opened for user myUSER by (uid=0)
    May 26 19:14:36 myserver sshd[23443]: Received disconnect from ser.ver.ip.addy: 11:
    May 26 19:14:36 myserver sshd[23425]: pam_unix(sshd:session): session closed for user myUSER

    Any insights on what could be going on here?

    Thread Starter knucleheads

    (@knucleheads)

    Guys, I don’t know if I have to provide different permissions to the plugins/ directory?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Could not copy file – Directory/Group Permissions?’ is closed to new replies.