-
Notifications
You must be signed in to change notification settings - Fork 49
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No Authentication #3
Comments
As far a I am aware, it still authenticates, but re-uses the cookies from
previous R studio sessions.
Clear your cookies or use a private tab to confirm.
Cheers,
G.
…On Wed, Oct 16, 2019, 18:56 Jordan Hayes ***@***.***> wrote:
This is awesome and exactly what I need!
However, when running RStudio Server as a non root user, it seems to
bypass the login page.
This is a big security risk for multi users systems.
Is there a way to have authentication functional by still running RStudio
Server as a non root user?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#3?email_source=notifications&email_token=ABVZRVZYKXRCIU2RMV5BOJ3QO5BSPA5CNFSM4JBOICBKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HSHCSSQ>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABVZRV62W3K37DFM767NMRTQO5BSPANCNFSM4JBOICBA>
.
|
Oh, yes I had used a incognito tab and was still able to gain access, bypasses the login page. |
Thanks for investigating! Let me know if you find something out! |
I'm also interested in solution for secure multi-user environment. Thanks |
I had opened an issue with RStudio people, but was ignored. |
Ah, ha! Something like this should work: # Download simple authentication
wget -O /wherever/you/installed/rstudio-server/bin/rstudio_auth https://raw.githubusercontent.com/nickjer/singularity-rstudio/27acb82cbc14796f341c4d3e7bde69fa55d98e91/rstudio_auth.sh
# Ensure execute permissions
chmod a+rx /wherever/you/installed/rstudio-server/bin/rstudio_auth
# Run rstudio server with password on the same line
RSTUDIO_PASSWORD="password" rserver \
--auth-none 0 \
--auth-pam-helper rstudio_auth |
Neat :)
Do you want to put a PR together?
…On Wed, 11 Mar 2020, 23:08 Jordan Hayes, ***@***.***> wrote:
Ah, ha!
This is more simple than I thought. You can add a simple password auth to
any rstudio-server install, as long as you put rstudio_auth in your PATH
and then set your RSTUDIO PASSWORD variable when starting the server.
Something like this should work:
# Download simple authentication
wget -O /wherever/you/installed/rstudio-server/bin/rstudio_auth https://raw.githubusercontent.com/nickjer/singularity-rstudio/27acb82cbc14796f341c4d3e7bde69fa55d98e91/rstudio_auth.sh
# Ensure execute permissions
chmod a+rx /wherever/you/installed/rstudio-server/bin/rstudio_auth
# Run rstudio server with password on the same line
RSTUDIO_PASSWORD="password" rserver
--auth-none 0 \
--auth-pam-helper rstudio_auth
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#3 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABVZRV5G6AY5O3UYJFYCJI3RHADXHANCNFSM4JBOICBA>
.
|
Hi, I followed the suggestions by @jdhayes but not sure why I still geting the error msg: And in the terminal I can see the log of rserver and I see the msg below every time I try to access localhost:8787:
Below is what I have in the
|
Hi, I successfully used @jdhayes's solution to run the server with a non-root user and a custom password. My configuration:
After the comment "Confirm username is supplied", change # Confirm username is supplied
if [[ $# -lt 1 ]]; then
echo "Usage: auth USERNAME"
exit 1
fi I store my password in RSTUDIO_PASSWORD="$(cat ~/.rstudio_mypsw)" ./start_rstudio_server.sh 8787 |
I now added instructions how to use a containerized rstudio (rocker/rstudio) with conda envs. With that approach authentication works. |
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
Do the solution proposed by @syu-id work on a simple conda environment, without containers? |
Now it seems that we only need to add --auth-none 0 \ You can log in using your original account and password. Add --auth-pam-helper-path /path/to/rstudio_auth.sh \ will prevent me from logging in |
This is awesome and exactly what I need!
However, when running RStudio Server as a non root user, it seems to bypass the login page.
This is a big security risk for multi users systems.
Is there a way to have authentication functional by still running RStudio Server as a non root user?
The text was updated successfully, but these errors were encountered: