View Single Post
  #1  
Old 10th October 2011, 03:00
Salital Salital is offline
Member
 
Join Date: Jul 2011
Posts: 48
Thanks: 5
Thanked 0 Times in 0 Posts
Default Permission tfor a website folder & ssh/ftp access

Hi Guys,

1. I create a client with the username: 'salx'

2. I create a website www,salx.mywebdomain.com

3. I create for the salx client a ssh access shell

4. I create for the salx client a ftp access

about the above point 2. when I typed on the webaddress bar:

www,salx.mywebdomain.com

I receive (or everyone to type the same webaddress) the follow page message

Quote:
Forbidden

You don't have permission to access / on this server.

Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.
Apache/2.2.16 (Debian) Server at www.salx.mywebsite.com Port 80
If I tried to access via ssh to the folder website (I use the account create at point 3. of above list) I have the access but appear the following message

Quote:
Could not chdir to home directory /var/www/clients/client2/salx.mywebsite.com/web/./home/salx: Permission denied
-bash: /var/www/clients/client2/salx.mywebsite.com/web/./home/salx/.bash_profile: Permission denied
But I have access to the root filesystem I can see:

Quote:
-rw------- 1 root root 11264 Oct 9 17:37 aquota.group
-rw------- 1 root root 11264 Oct 9 17:37 aquota.user
drwxr-xr-x 2 root root 4096 Aug 2 11:54 bin
drwxr-xr-x 3 root root 4096 Oct 8 16:25 boot
drwxr-xr-x 16 root root 3180 Oct 9 10:25 dev
drwxr-xr-x 142 root root 12288 Oct 9 14:30 etc
drwxr-xr-x 4 root root 4096 Aug 16 10:27 home
lrwxrwxrwx 1 root root 28 Aug 1 16:13 initrd.img -> boot/initrd.img-2.6.32-5-686
drwxr-xr-x 13 root root 12288 Oct 8 16:24 lib
drwx------ 2 root root 16384 Aug 1 16:09 lost+found
drwxr-xr-x 5 root root 4096 Aug 3 11:12 media
drwxr-xr-x 2 root root 4096 Jun 19 07:45 mnt
drwxr-xr-x 2 root root 4096 Aug 1 16:10 opt
dr-xr-xr-x 175 root root 0 Oct 9 10:24 proc
drwx------ 12 root root 4096 Oct 9 16:43 root
drwxr-xr-x 2 root root 4096 Oct 8 16:20 sbin
drwxr-xr-x 2 root root 4096 Jul 20 2010 selinux
drwxr-xr-x 2 root root 4096 Aug 1 16:10 srv
drwxr-xr-x 12 root root 0 Oct 9 10:24 sys
drwxrwxrwt 11 root root 4096 Oct 9 17:37 tmp
drwxr-xr-x 11 root root 4096 Aug 2 17:17 usr
drwxr-xr-x 17 root root 4096 Aug 13 00:30 var
lrwxrwxrwx 1 root root 25 Aug 1 16:13 vmlinuz -> boot/vmlinuz-2.6.32-5-686
I think it's too much bad

If I access with a client ftp as Filezilla I access at the following folder

/var/www/clients/client2/web4/web

And in my ftp remote server listing directory I saw the following directories and one hidden file (- .bash_history)

Quote:
- cgi-bin
- etc
- home
- log
- ssl
- tmp
- var
- web
- .bash_history
If I try to access to the 'web' directory (/var/www/clients/client2/web4/web) via ftp I receive the following message:

Quote:
Status: Retrieving directory listing...
Command: CWD web
Response: 550 Can't change directory to web: Permission denied
Error: Failed to retrieve directory listing


MY QUESTION

for this client I create a Jailkit ssh account maybe is this the problem?

NOTE: I follow the same steps for other clients/website but I don't have the same problem ... the only problem that I have for the other client/website is that via ssh the user can reach every folder on the webserver

Last edited by Salital; 10th October 2011 at 03:03.
Reply With Quote
Sponsored Links