Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

User Home directory

Posted on 2000-05-10
6
282 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
Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

 
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

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
capture pcap with filtered traffic 1 82
Which is more secure: EAP or machine certificate for IKEv2 VPN? 1 130
linux 13 75
Linux FTP Error 5 32
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,…
Linux users are sometimes dumbfounded by the severe lack of documentation on a topic. Sometimes, the documentation is copious, but other times, you end up with some obscure "it varies depending on your distribution" over and over when searching for …
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

789 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