6

using shell to create a default web page for new users

view full story
linux-howto

http://www.linuxquestions.org – I came across this script a while back that i found. What i want to do is edit the script to create a default web page in /var/www/html when a new user is added through the script. What the script does now is adds a user and sets a password for the user. What possible way (either through a combination of python or c or some other language) could i add to the shell script to do this? I've tried just doing the command to touch index.html /var/www/html but it puts it on the desktop. Here's the script.... Code: #!/bin/bash # Script to add a user to Linux system if [ $(id -u) -eq 0 ]; then (HowTos)