Pampa
asked on
User Home directory
I'am trying to setup User Home directory in Apache 1.3.9. I need that when a user try to login has to enter the username and his key.
When I try to connect to //Name_Server/~username
I recive the message error:
You don't have permission to access /~fpadilla on this server.
-------------------------- ---------- ---------- ---------- ---------- ---------- ----
Httpd.conf is like this:
UserDir public_html
<Directory /home/*/public_html>
AllowOverride Fileinfo AuthConfig
Limit
Options Multiviews Indexes SymLinksIfOverWatch IncludesNoExec
<Limit GET POST OPTIONS PROPFIND>
Order allow,deny
Allow from all
</Limit>
<Limit PUT DELETE PATCH PROPPATCH MKCOL COPY MOVE LOCK UNLOCK>
Order allow,deny
Deny from all
</Limit>
require user $USER
</directory>
Any idea?
When I try to connect to //Name_Server/~username
I recive the message error:
You don't have permission to access /~fpadilla on this server.
--------------------------
Httpd.conf is like this:
UserDir public_html
<Directory /home/*/public_html>
AllowOverride Fileinfo AuthConfig
Limit
Options Multiviews Indexes SymLinksIfOverWatch IncludesNoExec
<Limit GET POST OPTIONS PROPFIND>
Order allow,deny
Allow from all
</Limit>
<Limit PUT DELETE PATCH PROPPATCH MKCOL COPY MOVE LOCK UNLOCK>
Order allow,deny
Deny from all
</Limit>
require user $USER
</directory>
Any idea?
I think roald is right, but we've always used chmod 755 on the users home directory, and then the public_html directory if the changes dont replicate through
hth
rtheriot
hth
rtheriot
ASKER
roald:
All works fine except because everybody can log-in to this resource.
I need that the user has to fill the username a nd the key.
In httpd.conf
require user $USER, seems not to be working
I setup chown username for /home/username
/home/username/public_html
But this doesn't seems to be the problem.
All works fine except because everybody can log-in to this resource.
I need that the user has to fill the username a nd the key.
In httpd.conf
require user $USER, seems not to be working
I setup chown username for /home/username
/home/username/public_html
But this doesn't seems to be the problem.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Ok, Now it ask for the username and the password, but when I insert it.
The Apache failed.
In the error_ says >
configuration error> Coludn't check user.
No user file?
What this mean?
The Apache failed.
In the error_ says >
configuration error> Coludn't check user.
No user file?
What this mean?
ASKER
Answer accepted
For user dreadlock do this:
chmod a+x /home/dreadlock
chmod a+x /home/dreadlock/public_htm
chmod a+x -R /home/dreadlock/public_htm
The Apache httpd runs (probably) as nobody and that user have no access rights to your home directory as default.