| 1 | #!/bin/shscip-shell filesystem . . `/bin/sh`. |
| 2 | curruser=$1 |
| 3 | echoscip-shell system . . echo. $curruser |
| 4 | |
| 5 | if [scip-shell system . . `[`. ! -d /var/lockscip-shell filesystem . . `/var/lock`. ] |
| 6 | then |
| 7 | mkdirscip-shell system . . mkdir. /var/lockscip-shell filesystem . . `/var/lock`. |
| 8 | fi |
| 9 | |
| 10 | chgrpscip-shell system . . chgrp. uucp /var/lockscip-shell filesystem . . `/var/lock`. |
| 11 | chmodscip-shell system . . chmod. 775 /var/lockscip-shell filesystem . . `/var/lock`. |
| 12 | if [scip-shell system . . `[`. ! `niutil -readprop /scip-shell filesystem . . `/`. /groups/uucpscip-shell filesystem . . `/groups/uucp`. users | grepscip-shell system . . grep. $curruser > /dev/nullscip-shell filesystem . . `/dev/null`.` ] |
| 13 | then |
| 14 | niutil -mergeprop /scip-shell filesystem . . `/`. /groups/uucpscip-shell filesystem . . `/groups/uucp`. users $curruser |
| 15 | fi |