move config files into /etc/sliphome, and note that and other changes in docs

This commit is contained in:
cgd 1993-12-10 14:18:00 +00:00
parent 381d61d756
commit a33e17ef28
2 changed files with 17 additions and 17 deletions

View File

@ -31,11 +31,11 @@
* SUCH DAMAGE.
*
* from: @(#)pathnames.h 5.2 (Berkeley) 4/1/91
* $Id: pathnames.h,v 1.2 1993/08/01 17:55:45 mycroft Exp $
* $Id: pathnames.h,v 1.3 1993/12/10 14:18:00 cgd Exp $
*/
#include <paths.h>
#define _PATH_ACCESS "/etc/slip.hosts"
#define _PATH_LOGIN "/etc/slip.login"
#define _PATH_LOGOUT "/etc/slip.logout"
#define _PATH_ACCESS "/etc/sliphome/slip.hosts"
#define _PATH_LOGIN "/etc/sliphome/slip.login"
#define _PATH_LOGOUT "/etc/sliphome/slip.logout"

View File

@ -30,7 +30,7 @@
.\" SUCH DAMAGE.
.\"
.\" from: @(#)sliplogin.8 5.4 (Berkeley) 8/5/91
.\" $Id: sliplogin.8,v 1.2 1993/08/01 07:23:31 mycroft Exp $
.\" $Id: sliplogin.8,v 1.3 1993/12/10 14:18:04 cgd Exp $
.\"
.Dd August 5, 1991
.Dt SLIPLOGIN 8
@ -48,7 +48,7 @@ a Serial Line IP
.Pq Tn SLIP
link to a remote host. To do this, the program
searches the file
.Pa /etc/slip.hosts
.Pa /etc/sliphome/slip.hosts
for an entry matching
.Ar loginname
(which defaults to the current login name if omitted).
@ -63,9 +63,9 @@ address,
netmask, etc.
.Pp
The usual initialization script is
.Pa /etc/slip.login
.Pa /etc/sliphome/slip.login
but, if particular hosts need special initialization, the file
.Pa /etc/slip.login. Ns Ar loginname
.Pa /etc/sliphome/slip.login. Ns Ar loginname
will be executed instead if it exists.
The script is invoked with the parameters
.Bl -tag -width slipunit
@ -78,7 +78,7 @@ for
The speed of the line.
.It Em args
The arguments from the
.Pa /etc/slip.hosts
.Pa /etc/sliphome/slip.hosts
entry, in order starting with
.Ar loginname .
.El
@ -90,11 +90,11 @@ process dies. If the kernel slip
module has been configured for it, all routes through that interface will
also disappear at the same time. If there is other processing a site
would like done on hangup, the file
.Pa /etc/slip.logout
.Pa /etc/sliphome/slip.logout
or
.Pa /etc/slip.logout. Ns Ar loginname
.Pa /etc/sliphome/slip.logout. Ns Ar loginname
is executed if it exists. It is given the same arguments as the login script.
.Ss Format of /etc/slip.hosts
.Ss Format of /etc/sliphome/slip.hosts
Comments (lines starting with a `#') and blank lines are ignored.
Other lines must start with a
.Ar loginname
@ -132,7 +132,7 @@ entry for each legal, remote slip site with
.Nm sliplogin
as the shell for that entry. E.g.,
.Bd -literal
Sfoo:ikhuy6:2010:1:slip line to foo:/tmp:/etc/sliplogin
Sfoo:ikhuy6:2010:1:slip line to foo:/tmp:/usr/sbin/sliplogin
.Ed
.Pp
(Our convention is to name the account used by remote host
@ -163,7 +163,7 @@ access to legitimate users of a remote slip line. To prevent this,
a site can create a group, say
.Em slip ,
that only the slip login accounts are put in then make sure that
.Pa /etc/sliplogin
.Pa /usr/sbin/sliplogin
is in group
.Em slip
and mode 4550 (setuid root, only group
@ -191,16 +191,16 @@ A
.Fn ioctl
to set the line parameters failed.
.Pp
.It Sy /etc/slip.hosts: Em reason
.It Sy /etc/sliphome/slip.hosts: Em reason
The
.Pa /etc/slip.hosts
.Pa /etc/sliphome/slip.hosts
file could not be opened.
.Pp
.It Sy access denied for Em user
No entry for
.Em user
was found in
.Pa /etc/slip.hosts .
.Pa /etc/sliphome/slip.hosts .
.El
.Pp
.Sy Notice Severity