1.\" $OpenBSD: fbtab.5,v 1.16 2022/04/21 05:27:53 jmc 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: April 21 2022 $ 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 device paths (e.g., 55.Dq /dev/console:/dev/fd0a:/dev/wskbd* ) . 56Device paths may include shell-style globbing patterns (see 57.Xr glob 7 ) , 58potentially matching multiple devices. 59.El 60.Pp 61The 62.Nm 63file is used by 64.Xr login 1 65to 66.Xr chown 2 67the specified files to the user who has performed a login. 68Additionally, 69.Xr chmod 2 70is used to set the devices to the specified permission. 71When a user logs out, 72.Xr init 8 73is responsible for performing the inverse operation, which results in 74the files once again belonging to root. 75.Sh FILES 76.Bl -tag -width /etc/fbtab -compact 77.It Pa /etc/fbtab 78.El 79.Sh SEE ALSO 80.Xr login 1 , 81.Xr login_fbtab 3 , 82.Xr glob 7 , 83.Xr init 8 84.Sh AUTHORS 85.An Guido van Rooij 86