chiark / gitweb /
Support for other platforms, notably BSD, and other features, from nCipher.
[chiark-utils.git] / sync-accounts / sync-accounts-createuser
1 #!/bin/sh
2 set -e
3 un=$SYNCUSER_CREATE_USER
4 ui=$SYNCUSER_CREATE_UID
5 gi=$SYNCUSER_CREATE_GID
6 ho=$SYNCUSER_CREATE_HOME
7 test -d $ho || mkdir $ho
8 chgrp $gi $ho
9 chown $ui $ho
10 chmod 2755 $ho