Find the answer to your Linux question:
Results 1 to 4 of 4
I tried to add a new user using the command line commands "useradd" and "adduser" but with no luck. The user names are added but i cannot login into the ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Nov 2006
    Posts
    7

    Add user in Unix from command Line in CentOS


    I tried to add a new user using the command line commands "useradd" and
    "adduser" but with no luck. The user names are added but i cannot login
    into the system using the just created username and password. Whats
    wrong?? y isint it working??
    And also i wanted to know that when i login as a regular user and then
    use "su" in the terminal and then as root in the terminal try to do
    "adduser" command it says "bash command not found". why does this
    happen. im a superuser in the terminal and y cant i execute the
    "adduser" command.

    And finally i would like to know if there is a way to manually add a
    user in the centos remotely from the command line. This is very
    important to me right now.

    any advice is welcomed.

    thanx in advance

  2. #2
    Linux User muha's Avatar
    Join Date
    Jan 2006
    Posts
    290
    Quote Originally Posted by thecoolone
    I tried to add a new user using the command line commands "useradd" and
    "adduser" but with no luck. The user names are added but i cannot login
    into the system using the just created username and password. Whats
    wrong?? y isint it working??
    I'm haven't tried this in CentOS but i assume you forgot:
    Code:
    passwd <username>
    (as root) set the password for this user.
    You did not mention it anyways ...
    Now what? You have Linux installed and running. The GUI is working fine, but you are getting tired of changing your desktop themes. You keep seeing this "terminal" thing. Don't worry, they'll show you what to do @
    <~ http://www.linuxcommand.org/ ~>

  3. #3
    Linux Guru antidrugue's Avatar
    Join Date
    Oct 2005
    Location
    Montreal, Canada
    Posts
    3,211
    Quote Originally Posted by thecoolone
    I tried to add a new user using the command line commands "useradd" and
    "useradd" is to add an existing user to a group.
    You'll need it as well once you have created your user.

    Quote Originally Posted by thecoolone
    "adduser" but with no luck.
    This is what you want.

    I believe muha answer is the right one for you.

    If you want more details, check out this thread :
    http://www.linuxforums.org/forum/deb...-new-user.html
    "To express yourself in freedom, you must die to everything of yesterday. From the 'old', you derive security; from the 'new', you gain the flow."

    -Bruce Lee

  4. #4
    Just Joined!
    Join Date
    Nov 2006
    Posts
    7
    thank you for your replies.

Posting Permissions

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