Life in code, apps and OS's

Adding a user with a user-site.

Posted on: January 7, 2007

With Apache httpd you can easily configure the webserver to enable mini websites for system user’s, This is a very simple process and just thought that I would document the steps for a Debian/Ubuntu Server.

  1. Create the directory public_html in the skeleton directory (Anything inside the /etc/skel directory is copied acrossed to the user’s home directory when you invoke the useradd -m command. – Its abit like the All Users\My documents for windows systems.
    So type this command:-

    cd /etc/skel
    mkdir public_html
    chmod 777 public_html

  2. Now we add the username and instruct it to have a home directory.

    useradd username -m

    Now what we do is set the users password:

    passwd username

    It will then prompt you for the password you wish to use and to confirm it.

  3. Then test it out, goto:

  4. All should then work fine.

Leave a Reply

Please log in using one of these methods to post your comment: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s


  • How To Dyndns Ubuntu | Order Goods: […] DynDNS Client Setup on Ubuntu | Life in code, apps and OS’s – May 18, 2008  · 7 Responses to "DynDNS Client Setu
  • lizrandolph10886: Wonderful article! We are linking to this particularly great post on our website.nKeep up the great writing. Click
  • waseem Ahmad: Dear. i have a separate application server and a separate mysql database server. when i want to access the application server to login from the local
%d bloggers like this: