Linux: now uses useradd instead of adduser (not working on opensuse).
This commit is contained in:
parent
52633d7fe9
commit
48563e81a7
|
@ -185,7 +185,7 @@ function AddUserBackuppc() {
|
||||||
dscl . -create "/Users/$userLogin" IsHidden 1 # hide from login window
|
dscl . -create "/Users/$userLogin" IsHidden 1 # hide from login window
|
||||||
#dscl . -passwd "/Users/$userLogin" password
|
#dscl . -passwd "/Users/$userLogin" password
|
||||||
;;
|
;;
|
||||||
'Linux') adduser --system --disabled-password --shell /bin/sh --home "$homeDir/" --gid "$groupId" "$userLogin" ;;
|
'Linux') useradd --system --shell /bin/sh --home-dir "$homeDir/" --create-home --gid "$groupId" "$userLogin" ;;
|
||||||
esac
|
esac
|
||||||
chown -R "$userLogin:$groupId" "$homeDir"
|
chown -R "$userLogin:$groupId" "$homeDir"
|
||||||
allowUserToConnectToThisMachineUsingSsh "${userLogin}"
|
allowUserToConnectToThisMachineUsingSsh "${userLogin}"
|
||||||
|
|
Loading…
Reference in New Issue