Browse Source

POSIX chown

OPENBSD_3_4
millert 21 years ago
parent
commit
bda0df4eb0
1 changed files with 27 additions and 27 deletions
  1. +27
    -27
      src/etc/etc.mvmeppc/MAKEDEV.md

+ 27
- 27
src/etc/etc.mvmeppc/MAKEDEV.md View File

@ -1,5 +1,5 @@
#!/bin/sh - #!/bin/sh -
# $OpenBSD: MAKEDEV.md,v 1.9 2002/12/05 04:30:21 kjc Exp $
# $OpenBSD: MAKEDEV.md,v 1.10 2003/04/10 16:14:28 millert Exp $
# #
# Copyright (c) 1990 The Regents of the University of California. # Copyright (c) 1990 The Regents of the University of California.
# All rights reserved. # All rights reserved.
@ -171,7 +171,7 @@ vnd*)
mknod r${name}${unit}n c $chr $(( $unit * 16 + $off + 13 )) mknod r${name}${unit}n c $chr $(( $unit * 16 + $off + 13 ))
mknod r${name}${unit}o c $chr $(( $unit * 16 + $off + 14 )) mknod r${name}${unit}o c $chr $(( $unit * 16 + $off + 14 ))
mknod r${name}${unit}p c $chr $(( $unit * 16 + $off + 15 )) mknod r${name}${unit}p c $chr $(( $unit * 16 + $off + 15 ))
chown root.operator ${name}${unit}[a-p] r${name}${unit}[a-p]
chown root:operator ${name}${unit}[a-p] r${name}${unit}[a-p]
chmod 640 ${name}${unit}[a-p] r${name}${unit}[a-p] chmod 640 ${name}${unit}[a-p] r${name}${unit}[a-p]
done done
umask 77 umask 77
@ -182,7 +182,7 @@ tty0*)
rm -f tty0$unit cua0$unit rm -f tty0$unit cua0$unit
mknod tty0$unit c 7 $unit mknod tty0$unit c 7 $unit
mknod cua0$unit c 7 `expr $unit + 128` mknod cua0$unit c 7 `expr $unit + 128`
chown uucp.dialer tty0$unit cua0$unit
chown uucp:dialer tty0$unit cua0$unit
chmod 660 tty0$unit cua0$unit chmod 660 tty0$unit cua0$unit
;; ;;
@ -241,7 +241,7 @@ st*)
mknod nr${name}${unit} c $chr $(( $unit * 16 + 1 )) mknod nr${name}${unit} c $chr $(( $unit * 16 + 1 ))
mknod er${name}${unit} c $chr $(( $unit * 16 + 2 )) mknod er${name}${unit} c $chr $(( $unit * 16 + 2 ))
mknod enr${name}${unit} c $chr $(( $unit * 16 + 3 )) mknod enr${name}${unit} c $chr $(( $unit * 16 + 3 ))
chown root.operator ${name}${unit} n${name}${unit} \
chown root:operator ${name}${unit} n${name}${unit} \
e$name$unit en$name$unit \ e$name$unit en$name$unit \
r${name}${unit} nr${name}${unit} \ r${name}${unit} nr${name}${unit} \
er${name}${unit} enr${name}${unit} er${name}${unit} enr${name}${unit}
@ -266,7 +266,7 @@ ch*)
case $unit in case $unit in
0|1|2|3|4|5|6) 0|1|2|3|4|5|6)
mknod ${name}${unit} c $chr $unit mknod ${name}${unit} c $chr $unit
chown root.operator ${name}${unit}
chown root:operator ${name}${unit}
chmod 660 ${name}${unit} chmod 660 ${name}${unit}
;; ;;
*) *)
@ -309,7 +309,7 @@ audio*)
mknod $audio c $major $(( $unit + 128 )) mknod $audio c $major $(( $unit + 128 ))
mknod $mixer c $major $(( $unit + 16 )) mknod $mixer c $major $(( $unit + 16 ))
mknod $audioctl c $major $(( $unit + 192 )) mknod $audioctl c $major $(( $unit + 192 ))
chown root.wheel $audio $sound $mixer $audioctl
chown root:wheel $audio $sound $mixer $audioctl
chmod 666 $audio $sound $mixer $audioctl chmod 666 $audio $sound $mixer $audioctl
[ -e audio ] || ln -s $audio audio [ -e audio ] || ln -s $audio audio
[ -e mixer ] || ln -s $mixer mixer [ -e mixer ] || ln -s $mixer mixer
@ -320,14 +320,14 @@ audio*)
usb*) usb*)
rm -f usb$unit rm -f usb$unit
mknod usb$unit c 61 $unit mknod usb$unit c 61 $unit
chown root.wheel usb$unit
chown root:wheel usb$unit
chmod 660 usb$unit chmod 660 usb$unit
;; ;;
uhid*) uhid*)
rm -f uhid$unit rm -f uhid$unit
mknod uhid$unit c 62 $unit mknod uhid$unit c 62 $unit
chown root.wheel uhid$unit
chown root:wheel uhid$unit
chmod 660 uhid$unit chmod 660 uhid$unit
;; ;;
@ -336,7 +336,7 @@ ugen*)
do do
rm -f ugen$unit.$j rm -f ugen$unit.$j
mknod ugen$unit.$j c 63 $(( $unit * 16 + $j )) mknod ugen$unit.$j c 63 $(( $unit * 16 + $j ))
chown root.wheel ugen$unit.$j
chown root:wheel ugen$unit.$j
chmod 660 ugen$unit.$j chmod 660 ugen$unit.$j
done done
;; ;;
@ -344,21 +344,21 @@ ugen*)
ulpt*) ulpt*)
rm -f ulpt$unit rm -f ulpt$unit
mknod ulpt$unit c 64 $unit mknod ulpt$unit c 64 $unit
chown root.wheel ulpt$unit
chown root:wheel ulpt$unit
chmod 660 ulpt$unit chmod 660 ulpt$unit
;; ;;
urio*) urio*)
rm -f urio$unit rm -f urio$unit
mknod urio$unit c 65 $unit mknod urio$unit c 65 $unit
chown root.wheel urio$unit
chown root:wheel urio$unit
chmod 660 urio$unit chmod 660 urio$unit
;; ;;
utty*) utty*)
rm -f utty$unit rm -f utty$unit
mknod utty$unit c 66 $unit mknod utty$unit c 66 $unit
chown root.wheel utty$unit
chown root:wheel utty$unit
chmod 660 utty$unit chmod 660 utty$unit
;; ;;
@ -368,7 +368,7 @@ ttyCcfg)
minor=255 minor=255
rm -f ttyCcfg rm -f ttyCcfg
mknod ttyCcfg c $major $minor mknod ttyCcfg c $major $minor
chown root.wheel ttyCcfg
chown root:wheel ttyCcfg
;; ;;
ttyC*) ttyC*)
@ -378,20 +378,20 @@ ttyC*)
minor=$unit minor=$unit
rm -f tty$type$unit rm -f tty$type$unit
mknod tty$type$unit c $major $minor mknod tty$type$unit c $major $minor
chown root.wheel tty$type$unit
chown root:wheel tty$type$unit
;; ;;
bpf*) bpf*)
unit=${i##*[a-z]} unit=${i##*[a-z]}
rm -f bpf${unit} rm -f bpf${unit}
mknod bpf${unit} c 22 ${unit} mknod bpf${unit} c 22 ${unit}
chown root.wheel bpf${unit}
chown root:wheel bpf${unit}
;; ;;
pf) pf)
rm -f pf rm -f pf
mknod pf c 39 0 mknod pf c 39 0
chown root.wheel pf
chown root:wheel pf
chmod 600 pf chmod 600 pf
;; ;;
@ -400,7 +400,7 @@ tun*)
rm -f tun$unit rm -f tun$unit
mknod tun$unit c 23 $unit mknod tun$unit c 23 $unit
chmod 600 tun$unit chmod 600 tun$unit
chown root.wheel tun$unit
chown root:wheel tun$unit
;; ;;
rd*) rd*)
@ -411,7 +411,7 @@ rd*)
mknod rd${unit}c b ${blk} $(( $unit * 16 + 2 )) mknod rd${unit}c b ${blk} $(( $unit * 16 + 2 ))
mknod rrd${unit}a c ${chr} $(( $unit * 16 + 0 )) mknod rrd${unit}a c ${chr} $(( $unit * 16 + 0 ))
mknod rrd${unit}c c ${chr} $(( $unit * 16 + 2 )) mknod rrd${unit}c c ${chr} $(( $unit * 16 + 2 ))
chown root.operator rd${unit}[ac] rrd${unit}[ac]
chown root:operator rd${unit}[ac] rrd${unit}[ac]
chmod 640 rd${unit}[ac] rrd${unit}[ac] chmod 640 rd${unit}[ac] rrd${unit}[ac]
umask 77 umask 77
;; ;;
@ -419,14 +419,14 @@ rd*)
lkm) lkm)
rm -f lkm rm -f lkm
mknod lkm c 24 0 mknod lkm c 24 0
chown root.kmem lkm
chown root:kmem lkm
chmod 640 lkm chmod 640 lkm
;; ;;
pci*) pci*)
rm -f pci rm -f pci
mknod pci c 71 0 mknod pci c 71 0
chown root.kmem pci
chown root:kmem pci
chmod 600 pci chmod 600 pci
;; ;;
@ -437,14 +437,14 @@ random|srandom|urandom|prandom|arandom)
mknod urandom c 40 2 mknod urandom c 40 2
mknod prandom c 40 3 mknod prandom c 40 3
mknod arandom c 40 4 mknod arandom c 40 4
chown root.wheel random srandom urandom prandom arandom
chown root:wheel random srandom urandom prandom arandom
chmod 644 random srandom urandom prandom arandom chmod 644 random srandom urandom prandom arandom
;; ;;
uk*) uk*)
unit=${i##*[a-z]} unit=${i##*[a-z]}
rm -f uk$unit rm -f uk$unit
mknod uk$unit c 41 $unit mknod uk$unit c 41 $unit
chown root.operator uk$unit
chown root:operator uk$unit
chmod 640 uk$unit chmod 640 uk$unit
;; ;;
@ -452,7 +452,7 @@ ss*)
unit=${i##*[a-z]} unit=${i##*[a-z]}
rm -f ss$unit rm -f ss$unit
mknod ss$unit c 42 $unit mknod ss$unit c 42 $unit
chown root.operator ss$unit
chown root:operator ss$unit
chmod 440 ss$unit chmod 440 ss$unit
# backwards compatibility with older PINTs # backwards compatibility with older PINTs
rm -f scan$unit rm -f scan$unit
@ -468,7 +468,7 @@ wsmux|wsmouse|wskbd)
rm -f wsmouse wskbd rm -f wsmouse wskbd
mknod wsmouse c 70 0 mknod wsmouse c 70 0
mknod wskbd c 70 1 mknod wskbd c 70 1
chown root.wheel wsmouse wskbd
chown root:wheel wsmouse wskbd
chmod 600 wsmouse wskbd chmod 600 wsmouse wskbd
;; ;;
@ -478,7 +478,7 @@ wskbd*)
mknod wskbd${unit} c 68 ${unit} mknod wskbd${unit} c 68 ${unit}
# XXX # XXX
chmod 660 wskbd${unit} chmod 660 wskbd${unit}
chown root.wheel wskbd${unit}
chown root:wheel wskbd${unit}
;; ;;
wsmouse*) wsmouse*)
unit=${i##*[a-z]} unit=${i##*[a-z]}
@ -486,14 +486,14 @@ wsmouse*)
mknod wsmouse${unit} c 69 ${unit} mknod wsmouse${unit} c 69 ${unit}
# XXX # XXX
chmod 660 wsmouse${unit} chmod 660 wsmouse${unit}
chown root.wheel wsmouse${unit}
chown root:wheel wsmouse${unit}
;; ;;
xfs*) xfs*)
rm -f xfs$unit rm -f xfs$unit
mknod xfs$unit c 51 $unit mknod xfs$unit c 51 $unit
chmod 600 xfs$unit chmod 600 xfs$unit
chown root.wheel xfs$unit
chown root:wheel xfs$unit
;; ;;
altq) altq)


Loading…
Cancel
Save