Mobile app version of vmapp.org
Login or Join
Yeniel560

: Can't edit files via FTP even though permissions are correct? I'm generally new to this, but I have a server that I'm working on remotely. I'm connecting to it (Ubuntu Server 16.04) via SSH

@Yeniel560

Posted in: #Error #Ftp #Permissions

I'm generally new to this, but I have a server that I'm working on remotely. I'm connecting to it (Ubuntu Server 16.04) via SSH (vsftpd, to be specific) on my mac, but it wont let me edit files? I've looked around and edited permissions but it still wont work.

I'm trying to edit ./beta/ :

user@the-world-meme-database:/var/www$ ls -l
total 12
drwxrwxrwx 4 www www-data 4096 Oct 27 20:31 beta
drwxr-xrwx 3 www-data www-data 4096 Oct 27 14:50 html
drwxr-xrwx 3 www-data www-data 4096 Oct 27 12:05 webdav


and my vsftpd.conf (Without comments) :

listen=NO
listen_ipv6=YES
anonymous_enable=NO
local_enable=YES
write_enable=YES #local_umask =022 #anon_upload_enable =YES #anon_mkdir_write_enable =YES
dirmessage_enable=YES
use_localtime=YES
xferlog_enable=YES
connect_from_port_20=YES
#chown_uploads=YES
#chown_username=www
#xferlog_file=/var/log/vsftpd.log
#xferlog_std_format=YES
#idle_session_timeout=600
#data_connection_timeout=120
#nopriv_user=ftpsecure
#async_abor_enable=YES
#ascii_upload_enable=YES
#ascii_download_enable=YES
#ftpd_banner=AyyLmao FTP Server.
#deny_email_enable=YES
# (default follows)
#banned_email_file=/etc/vsftpd.banned_emails
#chroot_local_user=YES
#chroot_local_user=YES
#chroot_list_enable=YES
# (default follows)
#chroot_list_file=/etc/vsftpd.chroot_list
#ls_recurse_enable=YES
secure_chroot_dir=/var/run/vsftpd/empty
pam_service_name=vsftpd
rsa_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem
rsa_private_key_file=/etc/ssl/private/ssl-cert-snakeoil.key
ssl_enable=NO
#utf8_filesystem=YES
allow_writeable_chroot=YES
chmod_enable=YES

10.02% popularity Vote Up Vote Down


Login to follow query

More posts by @Yeniel560

2 Comments

Sorted by latest first Latest Oldest Best

 

@Speyer207

This drwxrwxrwx lets me know that beta is readable, writable and can be exercuted by all users of any groups, however what it doesn't tell me is that the files or folders within them folders use the same permissions.

Please confirm that you have done chmod recursively using:

sudo chmod 777 -R /var/www/beta

If not, then it should resolve your issue.

10% popularity Vote Up Vote Down


 

@Heady270

As mentioned by master sensei closetnoc not all FTP connections allow that.

In addition, as a Mac user I have noticed that not all FTP clients will allow editing. The best results I have gotten is using Fetch FTP client for Mac which there is also a Ubuntu version.

This has allowed me to edit what is editable.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme