summaryrefslogtreecommitdiffstats
path: root/sbin/mknod/mknod.8
diff options
context:
space:
mode:
authorobrien <obrien@FreeBSD.org>2000-01-06 05:20:14 +0000
committerobrien <obrien@FreeBSD.org>2000-01-06 05:20:14 +0000
commitf614e0ccf60b84f4cdbf716419d9e8b163eb11f9 (patch)
treed9c232a65e8237f2d1df649352813691cd9a5996 /sbin/mknod/mknod.8
parent2da2a05a1b1644df6246dc2905820500809a71f8 (diff)
downloadFreeBSD-src-f614e0ccf60b84f4cdbf716419d9e8b163eb11f9.zip
FreeBSD-src-f614e0ccf60b84f4cdbf716419d9e8b163eb11f9.tar.gz
Add chown(8)-like functionality. This will allow us to not use chown(8)
in MAKEDEV(8) -- removing the need of having /usr mounted.
Diffstat (limited to 'sbin/mknod/mknod.8')
-rw-r--r--sbin/mknod/mknod.831
1 files changed, 30 insertions, 1 deletions
diff --git a/sbin/mknod/mknod.8 b/sbin/mknod/mknod.8
index 8994d09..2232c9a 100644
--- a/sbin/mknod/mknod.8
+++ b/sbin/mknod/mknod.8
@@ -43,6 +43,7 @@
.Ar name
.Op Cm c | Cm b
.Ar major minor
+.Op owner:group
.Sh DESCRIPTION
The
.Nm mknod
@@ -90,6 +91,23 @@ The minor device number tells the kernel which subunit
the node corresponds to on the device; for example,
a subunit may be a filesystem partition
or a tty line.
+.It Ar "owner \: group"
+The
+.Ar owner
+.Ar group
+operand pair is optional, however, if one is specified, they both must be
+specified.
+The
+.Ar owner
+may be either a numeric user ID or a user name.
+If a user name is also a numeric user ID, the operand is used as a
+user name.
+The
+.Ar group
+may be either a numeric group ID or a group name.
+Simular to the user name,
+if a group name is also a numeric group ID, the operand is used as a
+group name.
.El
.Pp
Major and minor device numbers can be given in any format acceptable to
@@ -99,10 +117,21 @@ so that a leading
indicates a hexadecimal number, and a leading
.Ql 0
will cause the number to be interpreted as octal.
+.Sh COMPATIBILITY
+The
+.Xr chown 8
+like functionality is specific to
+.Fx
+and was added so that
+.Pa /dev/MAKEDEV
+wound not depend on
+.Pa /usr
+being mounted.
.Sh SEE ALSO
.Xr mkfifo 1 ,
.Xr mknod 2 ,
-.Xr MAKEDEV 8
+.Xr MAKEDEV 8 ,
+.Xr chown 8
.Sh HISTORY
A
.Nm
OpenPOWER on IntegriCloud