I am experiencing an strange error on Filezilla, I can't edit/remove any files.
By ssh I can remove/move/edit any files without restriction
Whats going on? How to solve?
Thanks
You can't use SSH and FTP on the same files, the permissions get changed.
So, if you upload files with SSH to your hosting space, then try to move or edit them with FTP it won't work because the permissions are for SSH user and not the FTP user. I'm still learning posix permissions so the exact permissions needed by the FTP user I do not know (I'm still working on switching from Windows to Unix). @[Me.B] can help you there.
ftp user have full access? Or only read ? Could you check that first?
You can create 3 levels of permissions in ftp:
1. read only
2. write only
3. full read/write.
M B
(01-15-2015, 02:54 AM)Isleno Wrote: [ -> ]I am experiencing an strange error on Filezilla, I can't edit/remove any files.
By ssh I can remove/move/edit any files without restriction
Whats going on? How to solve?
Thanks
I had the same problem.
I was not able to change permissions or rename the files via FTP , so I checked the ownership of the files with ssh
# ls -l filename
result: -rw-r--r-- 1 root root 53 Apr 7 2011 filename
so the owner of all unziped files was root ,
I allsow checked the ownership of the folder public_html that server created and it was something like this
drwxrwxrwx 3 www-data www-data 4096 Nov 26 12:13 public_html
so I went out side the folder and all the files I neded to chang the ownership , the unziped files and applyed this to folder
chown -R www-data folder
after that I was able to change file permissions and rename files via FTP
Can someone confirm that is security safe method ?
When you upload or do anything using SSH the ownership will be different. You are always suggested to do everything through FTP as the permissions will be correct.
If you do use SSH, you need to change the files/folders ownership to www-data www-data