diff --git a/install_backuppc_linux_mac.sh b/install_backuppc_linux_mac.sh index 0086b1c..497418f 100755 --- a/install_backuppc_linux_mac.sh +++ b/install_backuppc_linux_mac.sh @@ -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}"