eb193d83b404824b3ed38c3f5fe7eb8f1577ffbe
[grml-etc.git] / etc / mgetty / login.config
1 # login.config
2 #
3 # This is a sample "login dispatcher" configuration file for mgetty
4 #
5 # Format:
6 #       username userid utmp_entry login_program [arguments]
7 #
8 # Meaning:
9 #       for a "username" entered at mgettys login: prompt, call
10 #       "login_program" with [arguments], with the uid set to "userid",
11 #       and a USER_PROCESS utmp entry with ut_user = "utmp_entry"
12 #
13 # username may be prefixed / suffixed by "*" (wildcard)
14 #
15 # userid is a valid user name from /etc/passwd, or "-" to not set
16 #  a login user id and keep the uid/euid root (needed for /bin/login)
17 #
18 # utmp_entry is what will appear in the "who" listing. Use "-" to not
19 #  set an utmp entry (a must for /bin/login), use "@" to set it to the
20 #  username entered. Maximum length is 8 characters.
21 #
22 # login_program is the program that will be exec()ed, with the arguments
23 #  passed in [arguments]. A "@" in the arguments will be replaced with the
24 #  username entered. Warning: if no "@" is given, the login_program has
25 #  no way to know what user name the user entered.
26 #
27 #
28 # SAMPLES:
29 # Use this one with my Taylor-UUCP and Taylor-UUCP passwd files. 
30 #  (Big advantage: tuucp can use the same passwd file for serial dial-in 
31 #   and tcp dial-in [uucico running as in.uucpd]). Works from 1.05 up.
32 #
33 #U*     uucp    @       /usr/sbin/uucico -l -u @
34
35 #
36 # Use this one for fido calls (login name /FIDO/ is handled specially)
37 #
38 # You need Eugene Crosser's "ifmail" package for this to work.
39 #  mgetty has to be compiled with "-DFIDO", otherwise a fido call won't
40 #  be detected.
41 #
42 #/FIDO/ uucp    fido    /usr/lib/fnet/ifcico @
43
44 #
45 # Automatic PPP startup on receipt of LCP configure request (AutoPPP).
46 #  mgetty has to be compiled with "-DAUTO_PPP" for this to work.
47 #  Warning: Case is significant, AUTOPPP or autoppp won't work!
48 #  Consult the "pppd" man page to find pppd options that work for you.
49 #
50 #  NOTE: for *some* users, the "-detach" option has been necessary, for 
51 #        others, not at all. If your pppd doesn't die after hangup, try it.
52 #
53 #  NOTE2: "debug" creates lots of debugging info.  LOOK AT IT if things
54 #         do not work out of the box, most likely it's a ppp problem!
55 #
56 #  NOTE3: "man pppd" is your friend!
57 #
58 #  NOTE4: max. 9 arguments allowed.
59 #
60 #/AutoPPP/ -    a_ppp   /usr/sbin/pppd auth -chap +pap login debug
61
62 #
63 #
64 # An example where no login name in the argument list is desired:
65 #  automatically telnetting to machine "smarty" for a given login name
66 #
67 #telnet-smarty  gast    telnet  /usr/bin/telnet -8 smarty
68 #
69 # This is the "standard" behaviour - *dont* set a userid or utmp
70 #  entry here, otherwise /bin/login will fail!
71 #  This entry isn't really necessary: if it's missing, the built-in
72 #  default will do exactly this.
73 #
74 #*      -       -       /bin/login @
75 #root   root    root    /bin/bash -l
76 root    root    root    /bin/zsh -l