Permission Denied in SSH and FTP

F0RD

Verified User
Joined
Jul 29, 2009
Messages
9
Hi Guyz,

I'm having some problem with my user accounts, dont know how.. Whenever i try to rename,move,delete, or upload any file thru ftp as a normal user, it says Permission Denied, and it happened all of a sudden, it was working fine when i uploaded one file, and then when i tried to rename it i got this error.

when i tried to do this via ssh :

Code:
$ mv forum forums
mv: cannot move `forum' to `forums': Permission denied

I tried to restarted the sshd service, proftpd service but no use.

I also tried to chown the user for /home/user/

and I also tried chmod -vRf 755 /home/user/domains/public_html/

Nothing worked.

Please Help me.
 
Please first enter the directory containing forum:
Code:
# cd /path/to/forum
# cd ..
then please show us the output of:
Code:
# ls -ald .
# ls -ald forum
Note that you do NOT type the # character. It's there to show you that you need to be root.

Jeff
 
Code:
[root@server public_html]# ls -ald .
drwxr-xr-x 14 website website 4096 Aug 13 00:18 .
Code:
[root@server public_html]# ls -ald forums
drwxr-xr-x 14 website website 4096 May  5 00:07 forums
 
When you ftp into your server as user website it should allow you to manipulate these directories and to upload files into these directories. If it doesn't then someone may have chattr'd the directory to be immutable. If you log in as any other user then you won't have permission to manipulate these directories or upload files into them.

Jeff
 
Back
Top