diff options
Diffstat (limited to 'static/freebsd/man5/devfs.conf.5 3.html')
| -rw-r--r-- | static/freebsd/man5/devfs.conf.5 3.html | 101 |
1 files changed, 101 insertions, 0 deletions
diff --git a/static/freebsd/man5/devfs.conf.5 3.html b/static/freebsd/man5/devfs.conf.5 3.html new file mode 100644 index 00000000..d0871cd2 --- /dev/null +++ b/static/freebsd/man5/devfs.conf.5 3.html @@ -0,0 +1,101 @@ +<table class="head"> + <tr> + <td class="head-ltitle">DEVFS.CONF(5)</td> + <td class="head-vol">File Formats Manual</td> + <td class="head-rtitle">DEVFS.CONF(5)</td> + </tr> +</table> +<div class="manual-text"> +<section class="Sh"> +<h1 class="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1> +<p class="Pp"><code class="Nm">devfs.conf</code> — + <span class="Nd">boot-time devfs configuration information</span></p> +</section> +<section class="Sh"> +<h1 class="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1> +<p class="Pp">The <code class="Nm">devfs.conf</code> file provides an easy way + to set ownership and permissions, or create links for devices available at + boot.</p> +<p class="Pp">It does not work for devices plugged in and out after the system + is up and running, e.g. USB devices. See <a class="Xr">devfs.rules(5)</a> + for setting ownership and permissions for all device nodes, and + <a class="Xr">devd.conf(5)</a> for actions to be taken when devices are + attached or detached.</p> +<p class="Pp">Lines starting with a hash sign + (‘<code class="Li">#</code>’) and empty lines are ignored. The + lines that specify <code class="Nm">devfs.conf</code> rules consist of three + parameters separated by whitespace:</p> +<dl class="Bl-tag"> + <dt><var class="Ar">action</var></dt> + <dd>The action to take for the device. The action names are only significant + to the first unique character.</dd> + <dt><var class="Ar">devname</var></dt> + <dd>The name of the device created by <a class="Xr">devfs(4)</a>.</dd> + <dt><var class="Ar">arg</var></dt> + <dd>The argument of the <var class="Ar">action</var>.</dd> +</dl> +<p class="Pp">The actions currently supported are:</p> +<dl class="Bl-tag"> + <dt id="link"><a class="permalink" href="#link"><code class="Ic">link</code></a></dt> + <dd>This action creates a symbolic link named <var class="Ar">arg</var> that + points to <var class="Ar">devname</var>, the name of the device created by + <a class="Xr">devfs(4)</a>.</dd> + <dt id="own"><a class="permalink" href="#own"><code class="Ic">own</code></a></dt> + <dd>This action changes the ownership of <var class="Ar">devname</var>. The + <var class="Ar">arg</var> parameter must be in the form of an + <var class="Ar">owner</var>:<var class="Ar">group</var> pair, in the same + format used by <a class="Xr">chown(8)</a>.</dd> + <dt id="perm"><a class="permalink" href="#perm"><code class="Ic">perm</code></a></dt> + <dd>This action changes the permissions of <var class="Ar">devname</var>. The + <var class="Ar">arg</var> parameter must be a <var class="Ar">mode</var> + as explained in <a class="Xr">chmod(1)</a>.</dd> +</dl> +</section> +<section class="Sh"> +<h1 class="Sh" id="FILES"><a class="permalink" href="#FILES">FILES</a></h1> +<dl class="Bl-tag Bl-compact"> + <dt><span class="Pa">/etc/devfs.conf</span></dt> + <dd style="width: auto;"> </dd> + <dt><span class="Pa">/usr/share/examples/etc/devfs.conf</span></dt> + <dd style="width: auto;"> </dd> +</dl> +</section> +<section class="Sh"> +<h1 class="Sh" id="EXAMPLES"><a class="permalink" href="#EXAMPLES">EXAMPLES</a></h1> +<p class="Pp">To create a <span class="Pa">/dev/cdrom</span> link that points to + the first CD-ROM, the following may be added to + <code class="Nm">devfs.conf</code>:</p> +<div class="Bd Pp Bd-indent Li"> +<pre>link cd0 cdrom</pre> +</div> +<p class="Pp">To set the owner of a device, the <code class="Ic">own</code> + action may be specified:</p> +<div class="Bd Pp Bd-indent Li"> +<pre>own cd0 root:cdrom</pre> +</div> +<p class="Pp">To set the permissions of a device, a <code class="Ic">perm</code> + action should be used:</p> +<div class="Bd Pp Bd-indent Li"> +<pre>perm cd0 0660</pre> +</div> +</section> +<section class="Sh"> +<h1 class="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE + ALSO</a></h1> +<p class="Pp"><a class="Xr">chmod(1)</a>, <a class="Xr">devfs(4)</a>, + <a class="Xr">devd.conf(5)</a>, <a class="Xr">devfs.rules(5)</a>, + <a class="Xr">chown(8)</a></p> +</section> +<section class="Sh"> +<h1 class="Sh" id="AUTHORS"><a class="permalink" href="#AUTHORS">AUTHORS</a></h1> +<p class="Pp">This manual page was written by <span class="An">Roland + Smith</span> + <<a class="Mt" href="mailto:rsmith@xs4all.nl">rsmith@xs4all.nl</a>>.</p> +</section> +</div> +<table class="foot"> + <tr> + <td class="foot-date">May 25, 2019</td> + <td class="foot-os">FreeBSD 15.0</td> + </tr> +</table> |
