>i have an linux-server for dialin with ppp. is there a way to use the
>modems with ppp only, so that no user are able to got an direct logon.
>i have an linux-server for dialin with ppp. is there a way to use the
>modems with ppp only, so that no user are able to got an direct logon.

Either AutoPPP
or
Make a script as the users shell
(if you want to allow ftp access add the script path to /etc/shells)
here's a little script you can tweak to suit your server and paths
the second time they login all they get is a passwd prompt

#!/bin/bash -login
numlogins=`/usr/bin/who | /usr/bin/egrep -w "$LOGNAME" | /usr/bin/wc -l`
case $numlogins in
 *"0"*|*"1"*) exec /etc/ppp/ppp.sh
 ;;
 *"1"*|*"2"*)
echo "Hello $LOGNAME"
echo "New security measures mean that shell access,"
echo "is no longer available. If you have a problem"
echo "with this then please talk to Brendan"
echo ""

 echo "  As you are already logged in"
 echo " You can now change your password. "
 echo ""
 echo "   If you DONT want to do this"
 echo "   just hit the [ Enter ] key "
 echo
 exec /bin/passwd
 logout
  ;;
   *) /etc/ppp/dupealert.sh
 ;;
esac



Greg


-
To unsubscribe from this list: send the line "unsubscribe linux-ppp" in
the body of a message to [EMAIL PROTECTED]

Reply via email to