Find the answer to your Linux question:
Page 1 of 2 1 2 LastLast
Results 1 to 10 of 11
How to add user through command line..?? i used "useradd" and "passwd" and created an account but i can't login to it......
  1. #1
    Just Joined!
    Join Date
    Jan 2011
    Posts
    11

    Add user

    How to add user through command line..??


    i used "useradd" and "passwd" and created an account but i can't login to it...

  2. #2
    Linux Guru reed9's Avatar
    Join Date
    Feb 2009
    Location
    Boston, MA
    Posts
    4,651
    You'll need to be more specific about what you did. Useradd is indeed a way to create a new user on the system and passwd changes a user's password.

    How to create user account using Linux useradd command | Linux basic configurations

  3. #3
    Just Joined!
    Join Date
    Jan 2011
    Posts
    11
    i created a user using "useradd test" and set password for test by giving the command "passwd test"..after this when i try to enter into this account(test) by giving the password i set.................................. it say "authentication failure".

  4. #4
    Linux Guru reed9's Avatar
    Join Date
    Feb 2009
    Location
    Boston, MA
    Posts
    4,651
    Are you running useradd and passwd as root?

  5. #5
    Just Joined!
    Join Date
    Jan 2011
    Posts
    11
    yes...i logged in as root...

  6. #6
    Linux Guru reed9's Avatar
    Join Date
    Feb 2009
    Location
    Boston, MA
    Posts
    4,651
    And how are you trying to enter the account?

    If you do
    Code:
    su - test
    Can you login to the account from the terminal?

    Did you perhaps enter the password wrong either when creating it or when trying to log in?

  7. #7
    Just Joined!
    Join Date
    Jan 2011
    Posts
    11
    yes...i can login to the account from terminal...

  8. #8
    Just Joined!
    Join Date
    Oct 2010
    Posts
    2
    Quote Originally Posted by mebingj View Post
    yes...i can login to the account from terminal...
    remove the blank file of nologin from /etc

    rm -rf /etc/nologin

  9. #9
    Just Joined!
    Join Date
    Jan 2011
    Posts
    11
    i removes the nologin file.....but still i can't login to that account..

  10. #10
    Just Joined!
    Join Date
    Oct 2010
    Posts
    2
    see the file also in
    vi /etc/security/access.conf

    there may be restricted all user for local mechine.

Page 1 of 2 1 2 LastLast

Posting Permissions

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