Solved

User Home directory

Posted on 2000-05-10
6
278 Views
Last Modified: 2010-04-20
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?
0
Comment
Question by:Pampa
6 Comments
 
LVL 1

Expert Comment

by:roald
ID: 2797637
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
 
LVL 1

Expert Comment

by:rtheriot
ID: 2798326
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
 
LVL 1

Author Comment

by:Pampa
ID: 2799934
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
Complete Microsoft Windows PC® & Mac Backup

Backup and recovery solutions to protect all your PCs & Mac– on-premises or in remote locations. Acronis backs up entire PC or Mac with patented reliable disk imaging technology and you will be able to restore workstations to a new, dissimilar hardware in minutes.

 
LVL 1

Accepted Solution

by:
trunin earned 75 total points
ID: 2832970
write chmod 755 -R public_html
0
 
LVL 1

Author Comment

by:Pampa
ID: 2859214
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
 
LVL 1

Author Comment

by:Pampa
ID: 3063150
Answer accepted
0

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

This is the error message I got (CODE) Error caused by incompatible libmp3lame 3.98-2 with ffmpeg I've googled this error message and found out sometimes it attaches this note "can be treated with downgrade libmp3lame to version 3.97 or 3.98" …
Over the last ten+ years I have seen Linux configuration tools come and go. In the early days there was the tried-and-true, all-powerful linuxconf that many thought would remain the one and only Linux configuration tool until the end of times. Well,…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

706 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now