Adding a user with a user-site.
Posted January 7, 2007on:
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.
- 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:-
chmod 777 public_html
- 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:
It will then prompt you for the password you wish to use and to confirm it.
- Then test it out, goto:
- All should then work fine.