Prev Previous Post   Next Post Next
  #1  
Old 4th April 2007, 16:51
webking webking is offline
Junior Member
 
Join Date: Mar 2007
Posts: 29
Thanks: 3
Thanked 0 Times in 0 Posts
Wink Shell Scripting Help...

Hi all,

How difficult is it to get this pseudo code to work under SHELL? This is the task I do every day. I m not sure how to start it. can anyone help?

useradd username
usermod -g username username
passwd username
vi /etc/passwd
define home dir
cd ~username
remove all data
then go to /home/usrbak
cp username.tar.gz to /tmp
cd tmp
gzip -d username.tar.gz
tar -xf username.tar
mv * ~username
vi /usr/local/apache/conf/include-conf/vhosts
add the domain within the vhost
cd ~username
chown -R username:username .
chmod -R 755 .
service httpd restart

Any assistance would be helpful. Thanks in adv.
Reply With Quote
Sponsored Links
 

Bookmarks

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
ISPC 2.2.9: Invalid user shell on Ubuntu/Debian martinfst Developers' Forum 4 13th January 2007 15:28
need urgent help for writing shell script dips Programming/Scripts 8 3rd September 2006 19:40
php scripting and shell commands alexnz Programming/Scripts 3 8th August 2006 16:30
Shell nveid General 5 27th March 2006 14:49
Impressive shell scripting namit Programming/Scripts 8 25th March 2006 15:50


All times are GMT +2. The time now is 07:22.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.