LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   FTP Folder Permissions (https://www.linuxquestions.org/questions/linux-software-2/ftp-folder-permissions-546392/)

]SK[ 04-16-2007 01:22 AM

FTP Folder Permissions
 
I've recently bought a shell from a hosting company.
I also moved ISP recently and they dont offer any hosting which I use to host avatars etc so decided to use my new shell to do this instead. This is all fine except it failed on the first folder I uploaded. After lots of messing around I noticed when ever I create a folder via FTP and then try to open it I get...

Code:

[20:54:14] MKD testfolder
 [20:54:14] 257 "/public_html/testfolder" - Directory successfully created
 [20:54:17] CWD /public_html/testfolder
 [20:54:17] 550 /public_html/testfolder: Permission denied

Looking in ssh at this folder I get...

Code:

drw-r--r--        2 apalmer  apalmer          512 Apr 12 20:56 testfolder/
I am not being assigned the execute permission it seems. If I change the permission to 744 from 644 I can access it via FTP. If I try to change the same permission via FTP it fails. Also if I do have 744 on a folder, then from an FTP session try to remove the "execute" (644) permission from the folder this fails again. It would seem that anything via FTP won't allow me to change the execute permission. Also any folder created via the ftp client is not accessible via SSH either.

I've gone back to my hosting company who said its a problem with my client. I use SmartFTP and never had any issues before. Upon reading this I gave another client again and came across the same problem. After going back they reply with...

Quote:

No other users are reporting this problem. Please ensure you have given your dirs the correct permissions via ssh.
I've gone back and said there is something wrong the configuration of the FTP somewhere as I really cant believe I am doing anything wrong. Am I really that stupid and indeed doing something wrong?


Notes:
Just incase you need it this is the permission on the folder I am trying to upload data to...
Code:

drwxr-xr-x        7 apalmer  apalmer          1024 Apr 12 20:56 public_html/
This problem exists on files also in that I cannot assign the "execute" permission via FTP. Again SSH is no problem.

I also came across this Q&A (But lacks an A) on the PROFTP site. The last question on the page is the same issue as mine. This leads me to believe it is indeed my hosts problem and not mine?
http://www.proftpd.org/localsite/Use...66.html#AEN468

Thanks

MS3FGX 04-16-2007 05:57 PM

Without actually looking at it, my first inclination would also be that it is a server side issue. Have you tried having a friend connect and see if the permissions are still set to 550? Though you did say you tried another client, so it does seem like that would preclude a client issue.


All times are GMT -5. The time now is 11:30 PM.