Author Topic: RESOLVED: FTP user permissions  (Read 4865 times)

colifato

  • Newbie
  • *
  • Posts: 47
    • View Profile
RESOLVED: FTP user permissions
« on: December 02, 2014, 10:55:12 am »
It has happened with 2 clients to create the account, it appears that do not receive the necessary permissions to use the ftp, so you have problems updating wordpress and other things.
It may or am I wrong?

I'm using Ubuntu Server 14.04 (fresh install) 64 bits and the latest stable version.
« Last Edit: March 12, 2016, 06:45:54 pm by earnolmartin »

earnolmartin

  • Administrator
  • Sr. Member
  • *****
  • Posts: 302
    • View Profile
Re: Ftp user permissions
« Reply #1 on: December 06, 2014, 08:22:45 am »
Could you please tell me the owner and group on the folders that clients are having issues with?  Also, what are the chmod permissions?

Permissions should work correctly out of the box so that wordpress and other applications update properly.

colifato

  • Newbie
  • *
  • Posts: 47
    • View Profile
Re: Ftp user permissions
« Reply #2 on: January 09, 2015, 07:28:55 pm »
I have installed EHCPForce on a new pc and again i have the same problem.
I just create a user and the user upload the files that he needs to install wordpress.. and again the problems with htaccess and update pluggins.
Don't have permissions to do nothing.
Ubuntu 14.04 LTS 64 bits

earnolmartin

  • Administrator
  • Sr. Member
  • *****
  • Posts: 302
    • View Profile
Re: Ftp user permissions
« Reply #3 on: January 18, 2015, 11:13:29 am »
I'll need more information than that.

Post the output of:

Code: [Select]
ls -alhi /var/www/vhosts

The owner of the files should be vsftpd, and the group should be www-data.

If they're not, run the following command:

Code: [Select]
sudo chown vsftpd:www-data -R /var/www/vhosts
sudo chmod 775 -R /var/www/vhosts

colifato

  • Newbie
  • *
  • Posts: 47
    • View Profile
Re: Ftp user permissions
« Reply #4 on: January 20, 2015, 06:53:00 am »
It's strange..

root@server1:~# ls -alhi /var/www/vhosts
total 56K
1969256 drwxr-xr-x 11 vsftpd www-data 4,0K ene  7 11:26 .
1312531 drwxr-xr-x 10 root   root     4,0K nov 27 19:37 ..
1969258 -rwxr-xr-x  1 vsftpd www-data  220 abr  8  2014 .bash_logout
1969259 -rwxr-xr-x  1 vsftpd www-data 3,6K abr  8  2014 .bashrc
3018808 drwxr-xr-x  3 vsftpd www-data 4,0K nov 27 19:47 xxxxxxxxcomar
3018849 drwxr-xr-x  3 vsftpd www-data 4,0K nov 27 19:49 yyyyyycomar
1968789 drwxr-xr-x  3 vsftpd www-data 4,0K ene  7 11:26 zzzzzzzzcomar
3018873 drwxr-xr-x  3 vsftpd www-data 4,0K nov 27 19:50 eeeeeeeeecomar
3018825 drwxr-xr-x  3 vsftpd www-data 4,0K nov 27 19:48 uuuuuuuuuuuuucomar
3018861 drwxr-xr-x  3 vsftpd www-data 4,0K nov 27 19:49 aaaaaaaaaaaaacomar
3018935 drwxr-xr-x  3 vsftpd www-data 4,0K nov 27 20:02 rrrrrrrrrrrrrcomar
3018885 drwxr-xr-x  3 vsftpd www-data 4,0K nov 27 19:50 iiiiiiiiiiiiiiiiiiiiiiiiiicomar
1969257 -rwxr-xr-x  1 vsftpd www-data  675 abr  8  2014 .profile
3018837 drwxr-xr-x  3 vsftpd www-data 4,0K nov 27 19:48 ooooooooooiiicomar

From what I'm seeing, I'd be all right

 :-\

earnolmartin

  • Administrator
  • Sr. Member
  • *****
  • Posts: 302
    • View Profile
Re: Ftp user permissions
« Reply #5 on: January 21, 2015, 06:46:12 pm »
Please run the following command and paste the output here:

Code: [Select]
sudo cat /etc/apache2/envvars | grep "APACHE_RUN_USER"

Was the user able to upload the files to the server without issue via FTP?  What exactly is the problem here?  Is it that FTP file transfers are failing for some reason, or is not FTP related?  Is it WordPress related? 

Can you describe to me step by step how to reproduce this issue?  Like, go and download wordpress from here, setup user like this, and install this.  Then try doing this.  I really need more specifics here before I can help you because I cannot currently reproduce this issue.

earnolmartin

  • Administrator
  • Sr. Member
  • *****
  • Posts: 302
    • View Profile
Re: Ftp user permissions
« Reply #6 on: February 09, 2015, 11:43:08 pm »
Any updates on this?  I installed EHCP Force on a fresh Ubuntu 14.04 virtual machine and installed WordPress without any issues. 

colifato

  • Newbie
  • *
  • Posts: 47
    • View Profile
Re: Ftp user permissions
« Reply #7 on: February 11, 2015, 01:25:23 pm »
I do not really I can confirm that what happened was because he did not again.

earnolmartin

  • Administrator
  • Sr. Member
  • *****
  • Posts: 302
    • View Profile
Re: Ftp user permissions
« Reply #8 on: February 16, 2015, 08:04:11 pm »
OK, well please let me know if you run into this problem again.  Please provide more information if it happens again too.