From 9687ff8aa0edf2b4f0207682eab395fcbbbefa6f Mon Sep 17 00:00:00 2001 From: Raf Czlonka Date: Wed, 25 Mar 2020 02:47:54 +0000 Subject: [PATCH] Additionally to user:group, modes also need changing --- tools/openbsd/attach | 2 ++ tools/openbsd/detach | 2 ++ 2 files changed, 4 insertions(+) diff --git a/tools/openbsd/attach b/tools/openbsd/attach index f5b28f5ba..4abe3782d 100755 --- a/tools/openbsd/attach +++ b/tools/openbsd/attach @@ -11,6 +11,8 @@ case $DEVCLASS in echo $BUSNAME > /var/run/${DEVNAME}.bus chown _cups:_saned /dev/"$DEVNAME".* chown _cups:_saned /dev/"$BUSNAME" + chmod 660 /dev/"$DEVNAME".* + chown 660 /dev/"$BUSNAME" ;; esac ;; diff --git a/tools/openbsd/detach b/tools/openbsd/detach index 7c2830699..12a0ba777 100755 --- a/tools/openbsd/detach +++ b/tools/openbsd/detach @@ -10,8 +10,10 @@ case $DEVCLASS in BUSNAME=$(cat /var/run/${DEVNAME}.bus) rm -f /var/run/${DEVNAME}.bus chgrp wheel /dev/"$DEVNAME".* + chmod 600 /dev/"$DEVNAME".* test -n "$BUSNAME" && chown root:wheel /dev/"$BUSNAME" + chmod 600 /dev/"$BUSNAME" ;; esac ;;