summaryrefslogtreecommitdiff
path: root/etc/etc.vax/MAKEDEV
diff options
context:
space:
mode:
authorNiklas Hallqvist <niklas@cvs.openbsd.org>2000-03-22 07:34:32 +0000
committerNiklas Hallqvist <niklas@cvs.openbsd.org>2000-03-22 07:34:32 +0000
commitd3f7ada71eed6243454783c9db7585b45d4fb589 (patch)
tree057b3fd3abf1dad21b590e1b7b2717430824259d /etc/etc.vax/MAKEDEV
parent9f9f29b1da377f5235ab70174a518b401e0a4f8f (diff)
operator should have perms to write and change tapes. ch* is still missing
in some MAKEDEVs, will see to them in a separate commit.
Diffstat (limited to 'etc/etc.vax/MAKEDEV')
-rw-r--r--etc/etc.vax/MAKEDEV12
1 files changed, 11 insertions, 1 deletions
diff --git a/etc/etc.vax/MAKEDEV b/etc/etc.vax/MAKEDEV
index 0fc7c0b73b9..a09b83cc78c 100644
--- a/etc/etc.vax/MAKEDEV
+++ b/etc/etc.vax/MAKEDEV
@@ -1,6 +1,6 @@
#!/bin/sh -
#
-# $OpenBSD: MAKEDEV,v 1.17 1998/11/19 08:18:58 dugsong Exp $
+# $OpenBSD: MAKEDEV,v 1.18 2000/03/22 07:34:30 niklas Exp $
# $NetBSD: MAKEDEV,v 1.3 1996/01/07 16:53:15 ragge Exp $
#
# @(#)MAKEDEV 8.1 (Berkeley) 6/9/93
@@ -128,11 +128,17 @@ ht*|tm*|tms*|ts*|ut*|st*)
mknod r$name$four c $chr $four
mknod r$name$eight c $chr $eight
mknod r$name$twelve c $chr $twelve
+ chown root.operator {,n,r,nr}$name{$unit,$eight}
+ chown root.operator {,r}$name{$four,$twelve}
+ chmod 660 {,n,r,nr}$name{$unit,$eight}
+ chmod 660 {,r}$name{$four,$twelve}
if [ $i = ut ]
then
rm -f $name$twenty r$name$twenty
mknod $name$twenty b $blk $twenty
mknod r$name$twenty c $chr $twenty
+ chown root.operator {,r}$name$twenty
+ chmod 660 {,r}$name$twenty
fi
if [ ! -e rmt$eight ] # compatibility stuff
then
@@ -185,6 +191,10 @@ mt*)
mknod rmt20 c $chr $twenty
mknod nmt16 b $blk $twenty ;: ditto
mknod nrmt16 c $chr $twenty ;: ditto
+ chown root.operator {,n,r,nr}mt{8,16}
+ chown root.operator {,r}mt{12,20}
+ chmod 660 {,n,r,nr}mt{8,16}
+ chmod 660 {,r}mt{12,20}
;;
*)
echo bad unit for tape in: $1