Find the answer to your Linux question:
Results 1 to 4 of 4
Hello again Linux Pros and enthusiests alike This is a question with a simple answer I'm sure - what are the commands to add a user on RedHat Enterprise through ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Jan 2007
    Posts
    6

    Adding Users


    Hello again Linux Pros and enthusiests alike

    This is a question with a simple answer I'm sure - what are the commands to add a user on RedHat Enterprise through the command line? I just turned on the FTP service on a new RH server and I would like to add some users.

    Thanks a mil.

  2. #2
    Linux Guru antidrugue's Avatar
    Join Date
    Oct 2005
    Location
    Montreal, Canada
    Posts
    3,211
    You will find the answer in 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

  3. #3
    Linux User
    Join Date
    Aug 2006
    Location
    Croydon, PA
    Posts
    392
    Quote Originally Posted by antidrugue
    You will find the answer in this thread :
    http://www.linuxforums.org/forum/deb...-new-user.html

    Well what you said is correct but you don't have to do all the stuff you stated in your previous post.

    To create a user all you need to do is:

    useradd <username>


    Granted it does not show any comment like the persons real name so:

    useradd -c'Mike Ski' skiboy


    The useradd does create a directory by default (in Redhat and Fedora) with the correct permissions. And the above command will show "Mike Ski" as a comment in the password file and you default "home" directory is /home/skiboy, and you r shell by default is "bash"
    Now if you don't like "bash" as a shell you can do a antidrugue said in his post when you create the use and include " -s /bin/ksh" which would give you KORN shell.

    Now different Distros may need all the stuff antidrugue posted and doing it his way is correct I just prefer to type less.

    One thing to remember is once the user account is created you need to make a password for the account.
    ex:

    passwd skiboy


    Then follow the directions.

    Of course you need to be root to do all the above.
    Good Luck,
    Ski
    RHCT

  4. $spacer_open
    $spacer_close
  5. #4
    Linux Enthusiast
    Join Date
    Oct 2004
    Posts
    609
    And for more slick tweaks, read the man page

    Code:
    $ man adduser

Posting Permissions

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