>Console dan sadece belirli userlarin giremsini istiyorum...
>Ne yapmam lazim ?
-------- 8< ---- Burdan kesin ---- 8< -------------------
#!/bin/bash
stty -isig
RESTRICTED="tty1 tty2 tty3 tty4 tty5 tty6 tty7 tty8 console"
TTY=`tty | awk -F '/' '{ print($3) }'`
for tty in $RESTRICTED; do
if [ $TTY = $tty ]; then
echo "You're not allowed to use the console."
logout
else
/bin/bash
fi
done;
-------- 8< ---- Burdan kesin ---- 8< -------------------
gibi bi script'le halledebilirsin..
>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.
-Kutsal