Can't PAM authenticate as user rstudio-server

Kevin E Gilpin's Avatar

Kevin E Gilpin

26 Jun, 2011 06:39 PM

I am running Ubuntu 11 in a guest OS using VirtualBox.

When I try and log in to RStudio Server using the account that I set up when I installed Ubuntu, I am able to log in but after a short wait I get the error "Unable to connect to service".

To try another user account, I used adduser to create a user "rweb". But now I am not even able to login as that user. I have downloaded and built pamtester. When I su to rstudio-server and run

pamtester rstudio-server rweb authenticate

I get "Authentication failed". The auth.log looks like this:

Jun 26 14:28:24 seshat-ubuntu-rstudio unix_chkpwd[11250]: check pass; user unknown
Jun 26 14:28:24 seshat-ubuntu-rstudio unix_chkpwd[11250]: password check failed for user (rweb)

I am able to su normally between these accounts so I know that the users exist and the passwords are right.

  1. Support Staff 2 Posted by Josh Paulson on 27 Jun, 2011 03:20 PM

    Josh Paulson's Avatar

    Kevin,

    Can you do cat /var/log/user.log and see if there are any RStudio related messages in there (they'd be prefixed with either rserver or rsession).

    Might shine some light onto what is going wrong.

    Josh

  2. 3 Posted by Kevin Gilpin on 27 Jun, 2011 04:11 PM

    Kevin Gilpin's Avatar

    I don't have a /var/log/user.log file. Any idea how I can enable it?

    On Mon, Jun 27, 2011 at 11:20 AM, Josh Paulson <
    [email blocked]> wrote:

  3. Support Staff 4 Posted by Joe Cheng on 27 Jun, 2011 04:45 PM

    Joe Cheng's Avatar

    Hi Kevin,

    Actually if pamtester fails for you, then the /var/log/user.log won't help us at this time.

    Have you done any customizations to your /etc/pam.d directory, or is it all stock Ubuntu 11.04?

  4. 5 Posted by Kevin Gilpin on 27 Jun, 2011 05:06 PM

    Kevin Gilpin's Avatar

    I haven't done any customizations. I tried the suggestion of creating an
    /etc/pam.d/rstudio but when that didn't work I deleted it.

    Two things I could mention:

    1) I can authenticate using pamtester if I'm the root user, but not if I'm
    rstudio-server
    2) Because I am running in a VM I got a message when I started Ubuntu that I
    can't run the latest & greatest UI platform (I forget what it's called; I
    normally use Centos). So I maybe running a little bit different UI
    environment than most Ubuntu users.

    On Mon, Jun 27, 2011 at 12:45 PM, Joe Cheng <
    [email blocked]> wrote:

  5. Josh Paulson closed this discussion on 04 Oct, 2012 02:01 PM.

Comments are currently closed for this discussion. You can start a new one.