Screen instead of a getty

Giorgos Keramidas keramida at ceid.upatras.gr
Thu Jun 17 14:52:27 EEST 2004


On 2004-06-17 13:55, Tsabros Leonidas <ltsampros at upnet.gr> wrote:
> Loipon anakalipsa ena apo ta xrisimotera programmata poy iparxoyn to screen.
> Basika einai toso boliko poy varieme kathe fora poy kanw login na prepei na
> grapsw screen [Return]. Tespa psaxnw edw kai kana 3oro an iparxei tropos na 
> anigei to screen aftomata me to poy tha kanw login. Mipos borei na voithisei
> kaneis?

Δε χρειάζεται να αντικαταστήσεις τη getty.  Απλά το login shell σου!

Βάλε για login shell σου το `screen -a -D -RR'.  Αν στο password file
δεν μπορεί να μπει κάποιο login shell με command line options (δεν
θυμάμαι γιατί νομίζω πως έτσι είναι), φτιάξε ένα shell script, π.χ. το
/usr/local/bin/myshell και προσθεσέ το στο /etc/shells:


        #!/bin/sh
        [ -x /usr/local/bin/screen ] && exec screen -a -D -RR
        exec /sbin/nologin

Έτοιμος.




More information about the Linux-greek-users mailing list