| 1 |
.TH AXSPAWN 8 "13 April 2008" Linux "Linux System Managers Manual" |
| 2 |
.SH NAME |
| 3 |
axspawn \- Allow automatic login to a Linux system. |
| 4 |
.SH SYNOPSIS |
| 5 |
.B axspawn [--pwprompt PR0MPT, -p PR0MPT] [--changeuser, -c] [--rootlogin, -r] [--only-md5] [--wait, -w] |
| 6 |
.SH DESCRIPTION |
| 7 |
.LP |
| 8 |
.B Axspawn |
| 9 |
will check if the peer is an AX.25 connect, the callsign a valid Amateur |
| 10 |
Radio callsign, strip the SSID, check if UID/GID are valid, allow a |
| 11 |
password-less login if the password-entry in /etc/passwd is \(lq+\(rq or |
| 12 |
empty; in every other case login will prompt for a password. |
| 13 |
.LP |
| 14 |
.B Axspawn |
| 15 |
can create user accounts automatically. You may specify the user shell, |
| 16 |
first and maximum user id, group ID in the config file and (unlike WAMPES) |
| 17 |
create a file \(lq/etc/ax25/ax25.profile\(rq which will be copied to |
| 18 |
~/.profile. |
| 19 |
.SH SECURITY |
| 20 |
.LP |
| 21 |
Auto accounting is a security problem by definition. Unlike WAMPES, which |
| 22 |
creates an empty password field, Axspawn adds an \(lqimpossible\(rq ('+') |
| 23 |
password to /etc/passwd. Login gets called with the \(lq-f\(rq option, thus |
| 24 |
new users have the chance to login without a password. (I guess this won't |
| 25 |
work with the shadow password system). |
| 26 |
.LP |
| 27 |
Of course |
| 28 |
.B axspawn |
| 29 |
does callsign checking: Only letters and numbers are allowed, the callsign |
| 30 |
must be longer than 4 characters and shorter than 6 characters (without |
| 31 |
SSID). There must be at least one digit, and max. two digits within the |
| 32 |
call. The SSID must be within the range of 0 and 15. Please drop me a note |
| 33 |
if you know a valid Amateur Radio callsign that does not fit this pattern |
| 34 |
_and_ can be represented correctly in AX.25. |
| 35 |
.LP |
| 36 |
axspawn also has the well known authentication mechanisms of the AX.25 bbs |
| 37 |
.B baycom (sys) |
| 38 |
and |
| 39 |
.B md5 |
| 40 |
standards. |
| 41 |
axspawn searches in /etc/ax25/bcpasswd (first) and ~user/.bcpasswd (second) |
| 42 |
for a match of the required authentication mechanism and password. |
| 43 |
md5 and baycom passwords may differ. md5 passwords gain over baycom passwords. |
| 44 |
|
| 45 |
Note: you could "lock" special "friends" out by specifying an empty password |
| 46 |
in /etc/ax25/bcpasswd (line "n0call:md5:"). -> md5 Passwords are enforced. But |
| 47 |
the length is shorter than the minimum (len 8 for md5, len 20 for baycom); |
| 48 |
user's password file is not searched because in /etc/ax25/bcpasswd its already |
| 49 |
found.. |
| 50 |
|
| 51 |
Syntax and caveeats for /etc/ax25/bcpasswd: |
| 52 |
- Has to be a regular file (no symlink). Not world-readable/writable. |
| 53 |
- Example lines: |
| 54 |
# Thomas |
| 55 |
dl9sau:md5:abcdefgh |
| 56 |
# Test |
| 57 |
te1st:sys:12345678901234567890 |
| 58 |
# root |
| 59 |
root:md5:ziz7AoxuAt6jeuthTheexet0uDa9iefuAeph3eelAetahmi0 |
| 60 |
# misconfiguration: |
| 61 |
thisbadlineisignored |
| 62 |
# With this line |
| 63 |
systempasswordonly |
| 64 |
# .. axspan will not look in user's homedir for his .bcpasswd |
| 65 |
|
| 66 |
Syntax and caveeats for user's .bcpasswd in his $HOME: |
| 67 |
- Has to be a regular file (no symlink). Neither group- nor world- |
| 68 |
read-/writable. Has to be owned by the user or uid 0 (root). |
| 69 |
- Example lines: |
| 70 |
# could be shorter |
| 71 |
md5:abcdefgh |
| 72 |
# should be longer |
| 73 |
sys:12345678901234567890 |
| 74 |
|
| 75 |
.SH OPTIONS |
| 76 |
.TP 5 |
| 77 |
.B -p DB0FHN or --pwprompt DB0FHN |
| 78 |
While baycom or md5 password authentication (see above), the password prompt |
| 79 |
is set to the first argument (DB0FHN in this example). This may be needed |
| 80 |
for some packet-radio terminal programs for detecting the password prompt |
| 81 |
properly. |
| 82 |
.TP 5 |
| 83 |
.B -c, --changeuser |
| 84 |
Allow connecting ax25 users to change their username for login. They'll be |
| 85 |
asked for their real login name. |
| 86 |
.TP 5 |
| 87 |
.B -e, --embedded |
| 88 |
Special treatment for axspawn on non-standard conform embedded devices. |
| 89 |
I.e. openwrt has no true /bin/login: if you use it as a real login program, |
| 90 |
it raises a security hole. |
| 91 |
.TP 5 |
| 92 |
.B -r, --rootlogin |
| 93 |
Permit login as user root. Cave: only md5 or baycom style is allowed; no |
| 94 |
plaintext password. |
| 95 |
.TP 5 |
| 96 |
.B --only-md5 |
| 97 |
Insist in md5 authentication during login. If no password for the user is |
| 98 |
found, or it is not md5, then no other login mechanism is granted. |
| 99 |
This option, in combination with -c and -r, may be a useful configuration for |
| 100 |
systems where no ax25 user accounts are available, but you as sysop would |
| 101 |
like to have a login access for your administrative tasks. |
| 102 |
.TP 5 |
| 103 |
.B -w, --wait |
| 104 |
Eats the first line the user sends. This feature is useful if you have |
| 105 |
TCP VC connects to the same Call+SSID. It is now obsolete, because |
| 106 |
ax25d is the right place for this and implements this functionality better. |
| 107 |
.TP 5 |
| 108 |
Theses are options and not part of the preferences because you _may_ like to have on every interface definition in ax25d.conf (where axspawn is started from) a different behaviour. |
| 109 |
.SH FILES |
| 110 |
.nf |
| 111 |
/etc/passwd |
| 112 |
.br |
| 113 |
/etc/ax25/ax25.profile |
| 114 |
.br |
| 115 |
/etc/ax25/axspawn.conf |
| 116 |
.fi |
| 117 |
/etc/ax25/bcpasswd |
| 118 |
.fi |
| 119 |
~/.bcpasswd |
| 120 |
.fi |
| 121 |
.SH "SEE ALSO" |
| 122 |
.BR axspawn.conf (5), |
| 123 |
.BR ax25d (8). |
| 124 |
.SH AUTHOR |
| 125 |
Joerg Reuter DL1BKE <[email protected]> |