diff options
author | Filipp Lepalaan <filipp@mac.com> | 2010-04-16 10:34:08 +0300 |
---|---|---|
committer | Filipp Lepalaan <filipp@mac.com> | 2010-04-16 10:34:08 +0300 |
commit | cfdfbc406a80711c527c71c04ac090d0fc34a591 (patch) | |
tree | be174a49630e75e1ce1ce6e0e6c1cce93938ba90 | |
parent | aa769552aca49384e3ccb0d155aa238a4ac3de34 (diff) | |
download | mtk-cfdfbc406a80711c527c71c04ac090d0fc34a591.tar.gz mtk-cfdfbc406a80711c527c71c04ac090d0fc34a591.tar.bz2 mtk-cfdfbc406a80711c527c71c04ac090d0fc34a591.zip |
mob2loc fixes
-rwxr-xr-x | mob2loc.sh | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -6,7 +6,7 @@ if [[ $USER != "root" ]]; then exit 1 fi -usage="$(basename $0) username password" +usage="usage: $(basename $0) username password" if [[ $# -lt 2 ]]; then echo $usage 2>&1 @@ -41,9 +41,9 @@ dscl . -delete /users/$username # Create local user dscl . -create /users/$username UniqueID $new_uid dscl . -create /users/$username RealName "$new_rn" -dscl . -create /users/$username UserShell $new_shell +dscl . -create /users/$username UserShell "/bin/bash" dscl . -create /users/$username GeneratedUID $(uuidgen) -dscl . -create /users/$username PrimaryGroupID $new_gid +dscl . -create /users/$username PrimaryGroupID 20 dscl . -create /users/$username NFSHomeDirectory $newhome # Give admin perms @@ -53,4 +53,4 @@ dscl . -append /groups/admin users $username dscl . -passwd /users/$username "$password" # Set correct permissions -chown -R $username:staff +chown -R $username:staff $newhome |