#! /bin/sh #------------------------------------------------------------------------------ # part of the sn-package for eisfair # change login on external newsserver # last update: 2003/09/11 # (c) 2001-2003 by Christian Würdig (eisfair@chriswue.de) #------------------------------------------------------------------------------ outgoing="/var/spool/news/.outgoing" if [ ! -d $outgoing ]; then echo colecho "No external newsserver found." br x br echo /var/install/bin/anykey exit 0 fi tmp="/tmp/.snserv" clrhome colecho "change the login on an external newsserver" gn /var/install/bin/sn-getserver if [ -f $tmp ]; then touch /var/spool/news/.noservice cd $outgoing read ns < $tmp cd $ns:119/ echo echo -e "new Login (leave empty for no Login): \c" read login if test "$login"; then echo -e "Password: \c" read -s pass echo echo -e "retype Password: \c" read -s rpass echo if [ "$pass" = "$rpass" ]; then echo "setting up $ns with new Login" echo "$login" >username echo "$pass" >password cp /usr/local/sn/HELLO HELLO >/dev/null chown news HELLO chgrp news HELLO else echo colecho "Passwords not equal, doing nothing" rd fi else echo "setting up $ns with no Login" rm -f HELLO password username >/dev/null fi rm -f $tmp rm -f /var/spool/news/.noservice else echo echo "nothing done" fi echo /var/install/bin/anykey exit 0