Link to home
Start Free TrialLog in
Avatar of Pampa
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?
Avatar of roald
roald

The file /home/user on your filesystem needs execute-status. The same with the public_html directory.

For user dreadlock do this:

chmod a+x /home/dreadlock
chmod a+x /home/dreadlock/public_html
chmod a+x -R /home/dreadlock/public_html/*

The Apache httpd runs (probably) as nobody and that user have no access rights to your home directory as default.
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
Avatar of Pampa

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.
ASKER CERTIFIED SOLUTION
Avatar of trunin
trunin

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Pampa

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?
Avatar of Pampa

ASKER

Answer accepted