Find the answer to your Linux question:
Results 1 to 7 of 7
I was looking through the useradd, adduser, and usermod man pages. I was trying to find a way to add the users name but I did not see the option ...
  1. #1
    Just Joined! sonicx059's Avatar
    Join Date
    Dec 2009
    Location
    in a land filled with dreams and hopes.
    Posts
    15

    adding user names

    I was looking through the useradd, adduser, and usermod man pages. I was trying to find a way to add the users name but I did not see the option for doing so. Any ideas how?

  2. #2
    Linux Guru
    Join Date
    Oct 2007
    Location
    Tucson AZ
    Posts
    1,946
    Are you just trying to add another user? If so, open a terminal and type adduser and you should be prompted for the name of the user and then for a password. I'm not using Ubuntu but this should work or are you trying to add a user to a group?

  3. #3
    Trusted Penguin elija's Avatar
    Join Date
    Jul 2004
    Location
    Either at home or at work or down the pub
    Posts
    2,303
    In Ubuntu you use
    Code:
    adduser TheNewUserName
    you will be prompted for all other information. You can use command line switches to specify home directory, user group and so on.
    If we hit that bullseye, the rest of the dominoes will fall like a house of cards. Checkmate! (Zapp Brannigan)


    My new blog. It's probably not as good as I think it is.

  4. #4
    Blackfooted Penguin daark.child's Avatar
    Join Date
    Apr 2006
    Location
    West Yorks
    Posts
    4,344
    I prefer adduser because its more interactive than useradd. Ubuntu also has graphical tools for managing users that are located somewhere in the System menu.

  5. #5
    oz
    oz is offline
    forum.guy
    Join Date
    May 2004
    Location
    arch linux
    Posts
    18,099
    Quote Originally Posted by daark.child View Post
    I prefer adduser because its more interactive than useradd.
    Same here... adduser has always felt more intuitive than useradd, at least in my own mind.
    oz

    new members/users: read this first | new member faq
    no private messages requesting computer support - post them on the forums!
    please use the "report post" button to alert our forum admins to problematic posts rather than responding to them yourself.

  6. #6
    Just Joined! sonicx059's Avatar
    Join Date
    Dec 2009
    Location
    in a land filled with dreams and hopes.
    Posts
    15
    By user names I mean their first names. The account was already created but I needed to modify it so that we know who they were but not what their login name was.

  7. #7
    Blackfooted Penguin daark.child's Avatar
    Join Date
    Apr 2006
    Location
    West Yorks
    Posts
    4,344
    In that case you can use the usermod command e.g.
    Code:
    usermod -c "FirstName LastName" someuser
    Another option would be to use the chfn command e.g.
    Code:
    chfn -f Full Name
    To find our more about chfn look at its manual as well as that for the "finger" command.

Posting Permissions

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