# RStudio when launched without Singularity is having strange troubles with authentication

**URL:** https://discourse.openondemand.org/t/rstudio-when-launched-without-singularity-is-having-strange-troubles-with-authentication/1213
**Category:** Get Help
**Tags:** question
**Created:** [November 18, 2020, 10:13pm UTC](https://discourse.openondemand.org/t/rstudio-when-launched-without-singularity-is-having-strange-troubles-with-authentication/1213 "2020-11-18T22:13:59Z")
**Posts on this page:** 1
**Showing post:** 22

<div class="post-metadata">

### Author: ![charles8ronson](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/charles8ronson/32/446_2.png) [@charles8ronson](https://discourse.openondemand.org/u/charles8ronson)
#### Post date: [November 23, 2020, 6:33pm UTC](https://discourse.openondemand.org/t/rstudio-when-launched-without-singularity-is-having-strange-troubles-with-authentication/1213/22 "2020-11-23T18:33:37Z")

</div>

Full info + Solution: Thanks to @dugan and @maflister  
For those who run into this in the future here is the changes that had to be implemented:  
Installed rstudio 1.3.1093 natively with the rpm (will test with source later)  
`yum install -y rstudio-server-rhel-1.3.1093-x86_64.rpm`  
In the`template/script.sh.erb` ensure you use the following :

```auto
rserver \
 --www-port "${port}" \
 --auth-none 0 \
 --auth-pam-helper-path "${RSTUDIO_AUTH}" \
 --auth-encrypt-password 0 \
 --rsession-path "${RSESSION_WRAPPER_FILE}" \
 --server-data-dir "${TMPDIR}" \
 --secure-cookie-key-file "${TMPDIR}/rstudio-server/secure-cookie-key"

```

Ref: @maflister specifically [https://github.com/mcw-rcc/bc\_rcc\_rstudio\_server](https://github.com/mcw-rcc/bc_rcc_rstudio_server)

If you haven’t already, you need to update the `template/bin/auth` and change the ‘-ne’ flag to ‘-lt’

```auto
#!/usr/bin/env bash

# Confirm username is supplied

if [[$# -lt 1]]; then

echo "Usage: auth USERNAME"

exit 1

fi

USERNAME="${1}"

# Confirm password environment variable exists

if [[-z ${RSTUDIO_PASSWORD}]]; then

echo "The environment variable RSTUDIO_PASSWORD is not set"

exit 1

fi

# Read in the password from user

read -s -p "Password: " PASSWORD

echo ""

if [[${USERNAME} == ${USER} && ${PASSWORD} == ${RSTUDIO_PASSWORD}]]; then

echo "Successful authentication"

exit 0

else

echo "Invalid authentication"

exit 1

fi

```

Ref: @dugan specifically [https://github.com/OSC/bc\_osc\_rstudio\_server/issues/34](https://github.com/OSC/bc_osc_rstudio_server/issues/34)

---

_[View the full topic](https://discourse.openondemand.org/t/rstudio-when-launched-without-singularity-is-having-strange-troubles-with-authentication/1213)._
