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 . -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
|
||||
chown -R "$userLogin:$groupId" "$homeDir"
|
||||
allowUserToConnectToThisMachineUsingSsh "${userLogin}"
|
||||
|
|
Loading…
Reference in New Issue