HELP with permisssion

Toptyg

Verified User
Joined
May 25, 2007
Messages
22
Hello all

I was set this permision yerstaday ..


chmod 0700 /root

chmod 0600 /etc/syslog.conf

chmod 0600 /etc/rc.conf

chmod 0600 /etc/newsyslog.conf

chmod 0600 /etc/hosts.allow

chmod 0600 /etc/login.conf

chmod 0700 /usr/home/*

now when I load my sites I have error
Forbidden
You don't have permission to access / on this server.

:confused: :confused:

when I try

Code:
cd /usr/local/directadmin/scripts
./set_permissions.sh all
or
Code:
cd /usr/local/directadmin/scripts
./set_permissions.sh user_dir
it do nothink

HELP.
 
chmod 0700 /usr/home/*

Is it where all the sites exists?

I think in this case the webserver user `apache` wont be able to read any file.
U need to check the permissions again for home partition.
 
chmod 750 /usr/home/*
and
chmod 755 /usr/home/*

it does not help me
 
I solved problem with restarting apache but

when site was here /home/adm - work

when site /home/admin -does'n work
sever# ls -la
total 72
drwxr-xr-x 15 root wheel 512 15 июн 23:43 .
drwxr-xr-x 20 root wheel 512 10 июн 19:15 ..
drwxr-x--- 3 root operator 512 26 май 23:29 .snap
drwxr-xr-x 2 root wheel 512 15 июн 23:46 1
drwxr-xr-x 12 adm wheel 512 15 июн 23:53 adm
drwxrwx--- 8 admin admin 512 15 июн 23:50 admin
drwx--x--x 6 site sitel 512 31 май 17:56 site
drwx--x--x 6 d000000060 d000000060 512 31 май 13:30 d000000060
drwx--x--x 6 d000000062 d000000062 512 30 май 23:52 d000000062
drwxr-xr-x 4 mysql mysql 43520 16 июн 00:52 mysql
drwxr-xr-x 2 test test 512 15 июн 19:17 test
drwxr-xr-x 2 root wheel 512 16 июн 00:30 tmp



pw groupmod apache -M admin

But also ERROR 403 for /home/admin :(
 
drwxrwx--- 8 admin admin 512 15 июн 23:50 admin

i think it has to be wheel (web server)

Give +r to others or change the group to wheel with 750
 
Back
Top