Results 1 to 6 of 6

Thread: Access denied after adduser

  1. #1
    Join Date
    Feb 2014
    Beans
    15

    Access denied after adduser

    Hey guys I've just created a new user and entered the password when it said enter UNIX password (correct right?).
    After that I've established another connection, but access is denied. Why!?

  2. #2
    Join Date
    Jan 2006
    Location
    Not heaven... Iowa
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: Access denied after adduser

    What do you mean by "established another connection"? Logged in (or attempted) as the new user?
    You can check /etc/passwd to see if the user got created.
    Linux User #415691 Ubuntu User #8629
    Iowa Team (LoCo): [Wiki] [Launchpad]
    IRC channel: #ubuntu-us-ia on irc.freenode.net

  3. #3
    Join Date
    Feb 2014
    Beans
    15

    Re: Access denied after adduser

    Thanks. Yes I meant that I had opened a new putty screen to login as the new user. I've checked the file and the user is indeed listed!

  4. #4
    Join Date
    Apr 2011
    Location
    Mystletainn Kick!
    Beans
    4,586
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Access denied after adduser

    How'd you make the new user?

    Command line or with a gui.
    And if a command line, what command?
    Splat Double Splat Triple Splat
    Earn Your Keep
    Don't mind me, I'm only passing through.
    Once in a blue moon, I'm actually helpful
    .

  5. #5
    Join Date
    Jan 2006
    Location
    Not heaven... Iowa
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: Access denied after adduser

    Quote Originally Posted by Youri_van_Dijk View Post
    Thanks. Yes I meant that I had opened a new putty screen to login as the new user. I've checked the file and the user is indeed listed!
    PuTTY? So you're trying to log in via SSH? Is the machine running a(n) SSH server?
    Linux User #415691 Ubuntu User #8629
    Iowa Team (LoCo): [Wiki] [Launchpad]
    IRC channel: #ubuntu-us-ia on irc.freenode.net

  6. #6
    Join Date
    Feb 2014
    Beans
    15

    Re: Access denied after adduser

    Ah wait... I've installed open SSH and am running everything from command line. I've created the user with 'sudo adduser'

    I remember following the advice in a tutorial to put 'AllowUser example' in the SSH config file for security. I've added my regular account (not using root) so probably the new user is denied since I have to add it to the SSH config? How would I do that best? Add another line to sshd_config with AllowUser newaccount or should I simple separate those with a space or comma on the existing line?

    edit: I've removed the line for now, which resolves the error. I believe that simply adding extra users separated with a space should be sufficient as well.
    Last edited by Youri_van_Dijk; February 13th, 2014 at 11:53 AM.

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •