DEVFS.CONF(5)
π DEVFS.CONF(5) β the file formats manual page, bestie edition
okay so real talk, this is the manual page for devfs.conf β it lives in the File Formats Manual section (that's the (5) bestie, iykyk) and it's literally your boot-time devfs config glow-up guide β¨
πΈ NAME πΈ
devfs.conf β the boot-time devfs configuration info file. it's giving "set it and forget it" π
β¨ DESCRIPTION β¨
so devfs.conf is the easy-peasy way to set ownership and permissions, or create links for devices that are available at boot. lowkey iconic behavior π
heads up bestie: it does NOT work for devices that get plugged in and out after the system is up and running β like, say, USB devices π no cap.
if you need ownership and permissions set for all device nodes, go see devfs.rules(5) instead. and if you want actions taken when devices are attached or detached, that's a devd.conf(5) situation. slay, different files for different vibes π¦
Lines starting with a hash sign (β#β) and empty lines are ignored β they simply don't exist to this file, periodt.
The lines that specify devfs.conf rules consist of three parameters separated by whitespace:
actionβ the action to take for the device. and here's the cute part: the action names are only significant to the first unique character. so you can be lazy about it, it still ate πdevnameβ the name of the device created bydevfs(4).argβ the argument of the action.
π the actions currently supported π
linkβ this action creates a symbolic link named arg that points to devname, the name of the device created bydevfs(4). cute little shortcut, we love her π«Άownβ this action changes the ownership of devname. the arg parameter must be in the form of anowner:grouppair, in the same format used bychown(8). don't freestyle the format, bestie πpermβ this action changes the permissions of devname. the arg parameter must be a mode as explained inchmod(1). yeah, the numbers, you know the ones π
π FILES π
/etc/devfs.conf/usr/share/examples/etc/devfs.conf
(the second one is literally the example copy, go peek at it π)
π¦ EXAMPLES π¦
1. the cdrom link β to create a /dev/cdrom link that points to the first CD-ROM, the following may be added to devfs.conf:
link cd0 cdrom
2. the owner β to set the owner of a device, the own action may be specified:
own cd0 root:cdrom
3. the permissions β to set the permissions of a device, a perm action should be used:
perm cd0 0660
see how tidy?? three params, whitespace-separated, no drama β¨
π₯ SEE ALSO π₯
chmod(1), devfs(4), devd.conf(5), devfs.rules(5), chown(8)
go read those if you want the full lore π
π AUTHORS π
This manual page was written by Roland Smith <rsmith@xs4all.nl>. we stan a documentation icon π
and that's the whole thing, bestie β no notes, 10/10, ate and left no crumbs π
sign-off vibes: this one came from Debian, dated May 25, 2019 π and the page itself is DEVFS.CONF(5) β the 5 stands for file formats, obvi. k bye, go fix your device permissions πΈ
π¦ where this page comes from
- freebsd 15.1: base 15.1
- nixpkgs unstable: source
- Copyright (c) 2004 Roland Smith <rsmith@xs4all.nl>
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms