Solved

User Home directory

Posted on 2000-05-10
6
283 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
Simplifying Server Workload Migrations

This use case outlines the migration challenges that organizations face and how the Acronis AnyData Engine supports physical-to-physical (P2P), physical-to-virtual (P2V), virtual to physical (V2P), and cross-virtual (V2V) migration scenarios to address these challenges.

 
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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
awk file 6 98
Linux mount of Windows Shared Now Fails 8 113
Linux FTP Error 5 45
NTPD Client Port Usage 12 63
It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
Fine Tune your automatic Updates for Ubuntu / Debian
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
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…

763 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