Latest LQ Deal: Latest LQ Deals
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 12-25-2004, 10:30 PM   #1
LQ Newbie
Registered: Dec 2004
Location: Missouri, USA
Distribution: Slackware 10 & Vector 3.2
Posts: 20

Rep: Reputation: 0
other users' websites (~username)

Sorry if this seems a bit of a silly question, but i'm really at a loss.

I changed my default webserver, and thanks to some help of the people here, it works! woo hoo,,,, yeah!!

Anyway, naturally, i want to go a bit further.

I'm trying to make it so i can create files as other users.
Currently, i have a user called "webmaster", who's home directory is also the apache default wich is now, /home/webmaster/www/public_html .

now i'm trying to setup another user who could be accessed at xxxxx/~shawn

So, i added user shawn via adduser shawn
created /www/public_html under /home/shawn .

when i ftp into the server, logged in as shawn, it lets me get into all the directories, but when i try to use xxxxx/~shawn i get 404 error.

where should i be looking to fix this?

the five x's are for my server's ip wich i cannot type since i have not yet posted five times.
thanks everyone...
Old 12-26-2004, 01:48 AM   #2
Registered: Dec 2004
Location: Phoenix, Arizona, USA
Distribution: Debian, RedHat, ???
Posts: 56

Rep: Reputation: 15
/etc/apache/httpd.conf has the settings you are looking for - speciffically the <VirtualHost> or <Location> sections, where you can tell Apache aboutlocations it is supposed to serve other than the webroot.

you should rad up on the httpd.conf file and the things it allows you to do - - has the documentation for several recent releases of apache

but something like:

Alias /~shawn/ /home/shawn/www/public-html/ 
<Location /~shawn >
  order allow,deny
  allow from all
  Options Indexes FollowSymLinks MultiViews
might do the trick - but caution is needed as there are several security issues with doing it this way.

Read the online doccumentation, and adjust httpd.conf to suit your needs


Last edited by jacks4u; 12-26-2004 at 01:50 AM.
Old 12-26-2004, 04:15 AM   #3
Registered: Nov 2002
Location: Kent, England
Distribution: Debian Testing
Posts: 19,192
Blog Entries: 4

Rep: Reputation: 475Reputation: 475Reputation: 475Reputation: 475Reputation: 475
Moved: This thread is more suitable in Linux-Networking and has been moved accordingly to help your thread/question get the exposure it deserves.
Old 12-26-2004, 04:23 AM   #4
Registered: Jul 2004
Location: Italy
Distribution: SlackWare 10 - The Best
Posts: 72

Rep: Reputation: 15

I think that the best way to add user home webspace is to use mod_userdir.
to enable this put this code on your httpd.conf .

This will enable web sharing of www/public_html directory for every user below /home

# UserDir: The name of the directory which is appended onto a user's home
# directory if a ~user request is received.
<IfModule mod_userdir.c>
    UserDir www/public_html

# Control access to UserDir directories.  The following is an example
# for a site where these directories are restricted to read-only.
<Directory /home/*/www/public_html>
    AllowOverride FileInfo AuthConfig Limit
    Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
        Order allow,deny
        Allow from all
        Order deny,allow
        Deny from all
Hope to be useful!

Fabio Italy
Old 12-26-2004, 08:42 AM   #5
LQ Newbie
Registered: Dec 2004
Location: Missouri, USA
Distribution: Slackware 10 & Vector 3.2
Posts: 20

Original Poster
Rep: Reputation: 0
Thanks so much

I'm constantly amazed at how wonderful the people
of this forum are.
I was bedazzled enough by the help at the vector
linux forum, and how helpful they were, especially
after hearing all the misinformation on how elitist
the linux community was. Now i know that the linux
users are the cream of the crop in technical skills, and
in their wish to help others use this wonderful operating

I'll try these answers tonight, and thanks so much for the

Be Happy Always!


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Why "bash-2.05b$" in Terminal instead of "username@localhost username" jayelitumbiolo Linux - General 9 10-04-2009 03:16 AM
Giving individual users editing rights for websites using Apache Server aakash Linux - General 1 05-26-2005 01:41 PM
useradd: invalid username username$ engyeow Fedora 5 12-05-2004 04:35 AM
Websites that sell websites..? mScDeX General 2 12-29-2003 03:01 PM
Websites? Nephlite Linux - Newbie 1 01-31-2002 01:00 PM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 12:19 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration