mirror of
https://github.com/nextcloud/nextcloudpi.git
synced 2026-01-10 15:12:01 -03:30
SSH: Add option to enable sudo for ssh user.
- Disable root login Signed-off-by: Tobias K <6317548+theCalcaholic@users.noreply.github.com> Signed-off-by: Tobias Knöppler <6317548+theCalcaholic@users.noreply.github.com>
This commit is contained in:
parent
bd835dcd82
commit
8149493439
@ -41,6 +41,11 @@ configure()
|
||||
# Reenable pi user
|
||||
chsh -s /bin/bash "$USER"
|
||||
|
||||
[[ "$SUDO" == "yes" ]] && {
|
||||
usermod -aG sudo "$USER"
|
||||
echo "Enabled sudo for $USER"
|
||||
}
|
||||
|
||||
# Check for insecure default pi password ( taken from old jessie method )
|
||||
# TODO Due to Debian bug #1003151 with mkpasswd this feature is not working properly at the moment - https://www.mail-archive.com/debian-bugs-dist@lists.debian.org/msg1837456.html
|
||||
#local SHADOW SALT HASH
|
||||
|
||||
@ -29,6 +29,12 @@
|
||||
"name": "Confirm",
|
||||
"value": "1234",
|
||||
"type": "password"
|
||||
},
|
||||
{
|
||||
"id": "SUDO",
|
||||
"name": "Enable sudo",
|
||||
"value": "no",
|
||||
"type": "bool"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user