Script for completing multiple tasks
Hello,
I do not really know where this should go. But I guess this is the best place. My Question: I have vServer running Debian 7 and with it a Apache2 server. I need these commands to be executed when I open a .sh file. First I'd like a dialog to come up and ask for X (username) and then another one for Y (Password). What is the username? X What is the password? Y Then these command should be executed: useradd X --home /var/www/X/ -s /bin/false passwd Y X mkdir /var/www/X/ chown X:X -R /var/www/X/ How should the script be? I am a newbie to .sh scripts. I hope you understand what I mean. |
Welcome to LQ!
Have a look at http://tldp.org/LDP/Bash-Beginners-G...ect_08_02.html |
All times are GMT -5. The time now is 06:46 PM. |