xref: /openbsd-src/share/man/man5/fbtab.5 (revision de8cc8edbc71bd3e3bc7fbffa27ba0e564c37d8b)
1.\"	$OpenBSD: fbtab.5,v 1.14 2014/09/08 01:27:55 schwarze Exp $
2.\"
3.\" Copyright (c) 1996 Theo de Raadt
4.\" All rights reserved.
5.\"
6.\" Redistribution and use in source and binary forms, with or without
7.\" modification, are permitted provided that the following conditions
8.\" are met:
9.\" 1. Redistributions of source code must retain the above copyright
10.\"    notice, this list of conditions and the following disclaimer.
11.\" 2. Redistributions in binary form must reproduce the above copyright
12.\"    notice, this list of conditions and the following disclaimer in the
13.\"    documentation and/or other materials provided with the distribution.
14.\"
15.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
16.\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
17.\" OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
18.\" IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
19.\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
20.\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
21.\" DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
22.\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
23.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
24.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
25.\"
26.Dd $Mdocdate: September 8 2014 $
27.Dt FBTAB 5
28.Os
29.Sh NAME
30.Nm fbtab
31.Nd change device protection upon login
32.Sh DESCRIPTION
33The
34.Nm
35file contains lines which specify how the permissions and ownership of
36various system files should be changed based on the user's login device name.
37.Pp
38Comments start with a
39.Ql #
40and extend to the end of the line.
41Blank lines or lines with only a comment are ignored.
42.Pp
43All other lines consist of three fields delimited by whitespace.
44.Bl -tag -width xxxxxxxxxxxxxxxxxxxx
45.It Login Device
46The device you have logged in on (e.g.,
47.Dq /dev/ttyv0 ) .
48.It File Permission
49An octal permission number (0600), as used by
50.Xr chmod 2 .
51.It Other devices
52The final field is a colon
53.Pq Ql \&:
54delimited list of devices (e.g.,
55.Dq /dev/console:/dev/fd0a ) .
56All device names are absolute paths.
57A path that ends in
58.Dq /\&*
59refers to all directory entries except
60.Dq \&.
61and
62.Dq \&.\&. .
63.El
64.Pp
65The
66.Nm
67file is used by
68.Xr login 1
69to
70.Xr chown 2
71the specified files to the user who has performed a login.
72Additionally,
73.Xr chmod 2
74is used to set the devices to the specified permission.
75When a user logs out,
76.Xr init 8
77is responsible for performing the inverse operation, which results in
78the files once again belonging to root.
79.Sh FILES
80.Bl -tag -width /etc/fbtab -compact
81.It Pa /etc/fbtab
82.El
83.Sh SEE ALSO
84.Xr login 1 ,
85.Xr login_fbtab 3 ,
86.Xr init 8
87.Sh AUTHORS
88.An Guido van Rooij
89