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?
LVL 1
PampaAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
truninConnect With a Mentor Commented:
write chmod 755 -R public_html
0
 
roaldCommented:
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.
0
 
rtheriotCommented:
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
0
Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

 
PampaAuthor Commented:
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.
0
 
PampaAuthor Commented:
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?
0
 
PampaAuthor Commented:
Answer accepted
0
All Courses

From novice to tech pro — start learning today.