Re: [LINUX:3562] console login ve mail

Kutsal Berberoglu (kutsal@lcc.uky.edu)
Thu, 11 Dec 1997 15:08:53 -0500 (EST)


On Thu, 11 Dec 1997, Berk wrote:

>Console dan sadece belirli userlarin giremsini istiyorum...
>Ne yapmam lazim ?

-------- 8< ---- Burdan kesin ---- 8< -------------------

#!/bin/bash

RESTRICTED = "tty1 tty2 tty3 tty4 tty5 tty6 tty7 tty8 console"
TTY=`tty | awk -F '/' '{ print($3) }'`

if [ $TTY in $RESTRICTED ]; then
echo "booook";
exit;
fi

-------- 8< ---- Burdan kesin ---- 8< -------------------

>Ikinci olarak. Linux daki bir mail account u baska bir account a nasil
>yonlendiririz ?

/etc/aliases'a bir "alias" ekleyerek, yada yOnlendirmek istediGin hesaba bir
.forward dosyasI yerleStirerek.. .forward'a da maillerin gitmesini istediGin
adresi yazman gerek.