Linuxでユーザーの追加
ユーザー追加: adduser <ユーザー名>
ユーザーリスト
cat /etc/passwd
ユーザの属しているグループ
groups ユーザー
グループに追加
usermod -aG GROUPS USER
コンテナの中に入る入る
docker container exec -it rstudio bash
ログインシェルなし+ホームディレクトリありのユーザー追加(RstudioServer)
sudo useradd -s /usr/sbin/nologin -G rstudio_users -m <ユーザー名>
sudo passwd <ユーザー名> <--パスワード設定(このあとパスワードを何にするか聞かれる)
/etc/rstudio/rserver.confの設定も必要
# Server Configuration File
www-port=8787
www-address=127.0.0.1
auth-required-user-group=rstudio_users
ユーザー削除: userdel -r <ユーザ名>
-r: ユーザだけでなく、ホームディレクトリとメールスプールも削除します。