#!/bin/sh curruser=`sudo id -p | grep 'login' | sed 's/login.//'` echo $curruser if [ ! -d /var/spool/uucp ] then sudo mkdir /var/spool/uucp fi sudo chgrp uucp /var/spool/uucp sudo chmod 775 /var/spool/uucp if [ ! `sudo niutil -readprop / /groups/uucp users | grep $curruser > /dev/null` ] then sudo niutil -mergeprop / /groups/uucp users $curruser fi