alnoda-workspaces/workspaces/r-workspace/rocker_scripts/pam-helper.sh
2022-07-19 16:49:46 +00:00

11 lines
297 B
Bash

#!/bin/bash
set -o nounset
## Enforces the custom password specified in the PASSWORD environment variable
## The accepted RStudio username is the same as the USER environment variable (i.e., local user name).
IFS='' read -r password
[ "${USER}" = "${1}" ] && [ "${PASSWORD}" = "${password}" ]