RStudio Server (open source) login issue

rstudio

#1

Hello,
I just finished installing RStudio on Red Hat Linux server. It seems the installation was successful and I able to launch the RStudio IDE through URL http://<host_name>:8787. However, whenever, I am trying to log into the server using the user id and password using which I installed the RStudio it throws a message on the login page stating "Error: Incorrect or invalid username/password". I am pretty sure I am providing the correct user id and password as I am using the same user id password to lot into the Linux server as well.
Can someone help resolve this issue?
Thanks


#3

RStudio is using a PAM profile to check user/password, by default. You can debug a bit by checking which PAM profile you are using, comparing it to the login profile or whatever is in place for ssh.

Docs: http://docs.rstudio.com/ide/server-pro/authenticating-users.html#pam-authentication

If you feel comfortable sharing those files / information, that might be helpful to those of us who might be able to help! If you are using RStudio Server Pro, you can also reach out to support@rstudio.com for more confidential support, if that is preferable as well!

The other thing you could do is add a test user/pass (make sure you create the Home directory!) just to test with. Another common thing I do is use su myuser as a non-privileged user to test prompting for a password and use the su profile, which is commonly configured on the system.

One final idea to debug - RStudio Server Pro includes a pamtester utility that you can use for debugging PAM configuration: http://docs.rstudio.com/ide/server-pro/authenticating-users.html#diagnosing-pam-authentication-problems


#4

Hi Cole,
Thank you for your response. I guess I failed to mention I installed RStudio Server (Open source) version. Do you think the same tips would work for open source version?
Also I am new to RStudio so can you please tell me which files you wanted me to share and where can I usually find them?

Thanks


#5

Hi Cole,
Thank you for your response. I was able to resolve the issue by running this command.
sudo cp /etc/pam.d/login /etc/pam.d/rstudio
Thank you again for your help.


#6

So glad your issue was resolved!

Just for future reference if others run into this issue, the same tips should work for debugging in RStudio Server Open Source, but I think that the pamtester utility may not be bundled with RStudio Server Open Source and would need to be downloaded directly.


#7

Can you please also tell, how and from where one can download "pamtester" utility?


#8

Great call :smiley:

Download and install directions are here: http://pamtester.sourceforge.net/