Find the answer to your Linux question:
Results 1 to 7 of 7
Hello Linux is new for me i am trying to add users to my system. I would like to know how to create users in console and graphic interface. Who ...
  1. #1
    Just Joined!
    Join Date
    Jan 2008
    Posts
    3

    How to create user in console and graphic interface

    Hello Linux is new for me i am trying to add users to my system.
    I would like to know how to create users in console and graphic interface.

    Who can help me ?

    I have suse 10.1

  2. #2
    Blackfooted Penguin daark.child's Avatar
    Join Date
    Apr 2006
    Location
    West Yorks
    Posts
    4,344
    In the command line you can use the "useradd" command. As for a GUI, you can run YAST -> Security & Users -> User Management.

  3. #3
    Just Joined!
    Join Date
    Jan 2008
    Posts
    3
    Quote Originally Posted by daark.child View Post
    In the command line you can use the "useradd" command. As for a GUI, you can run YAST -> Security & Users -> User Management.
    I mean from the console, i am trying to add a user from the terminal console.
    Useradd is not working.

  4. #4
    Blackfooted Penguin daark.child's Avatar
    Join Date
    Apr 2006
    Location
    West Yorks
    Posts
    4,344
    Well, you need to read the manual in order to find out how to use the command correctly. You can read manuals by doing "man command" e.g. "man useradd". On a simple level, you do
    Code:
    useradd userName
    userName will be the user name of the user you want to create. After creating the user, you need to give the user a password, so you would do
    Code:
    passwd userName

  5. #5
    Just Joined!
    Join Date
    Jan 2008
    Posts
    3
    Quote Originally Posted by daark.child View Post
    Well, you need to read the manual in order to find out how to use the command correctly. You can read manual by doing "man command" e.g. "man useradd". On a simple level, you do
    Code:
    useradd userName
    userName will be the user name of the user you want to create. After creating the user, you need to give the user a password, so you would do
    Code:
    passwd userName
    Thanks for the information I have lerned how to make user in YAST en in console but i have more questions about making user.

    How can give the full name of the user on the console.

    I have ever heared that you can make user vim.

    How can i create user in vim ? and how can i give the users a homedirectory (in vim, console and yast)

  6. #6
    Blackfooted Penguin daark.child's Avatar
    Join Date
    Apr 2006
    Location
    West Yorks
    Posts
    4,344
    To add the name of the user you would do
    Code:
    useradd -c "FirstName SecondName" userName
    In order to create a user using vim, you need to use vim to open /etc/passwd and then add something like
    Code:
    userName:x:1000:100:FirstName LastName:/home/userName:/bin/bash
    You will then have to run the passwd command like above in order to give them a passwd.

    I suggest you look at RUTE because it contains a lot of info on Unix basics.

  7. #7
    oz
    oz is offline
    forum.guy
    Join Date
    May 2004
    Location
    arch linux
    Posts
    18,095
    You can also try the adduser command, which is basically the same thing as the useradd command, but it works a bit differently.
    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.

Posting Permissions

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