Results 1 to 8 of 8

Thread: Adding/Delete User

  1. #1
    Join Date
    Sep 2012
    Beans
    94
    Distro
    Ubuntu 12.04 Precise Pangolin

    Adding/Delete User

    Hi all,
    i can add user using useradd user1.
    but, when i ls /cd/home, no dir for my new user.
    another thing is, i cannot set passwd to my new user, it ask me to key in current passwd. (which is i dont have)

    Thnks!!

  2. #2
    Join Date
    Feb 2009
    Location
    Dallas, TX
    Beans
    7,790
    Distro
    Ubuntu 16.04 Xenial Xerus

    Re: Adding/Delete User

    Hi termvrl.

    I would recommend NOT using 'useradd' and 'userdel', as they are low level utilities.

    If I were you, I'd use the commands 'adduser' and deluser instead.

    Let us know how it goes.
    Regards.
    Last edited by papibe; October 5th, 2012 at 07:08 PM. Reason: syntax

  3. #3
    Join Date
    Feb 2012
    Location
    Athens/Greece
    Beans
    Hidden!
    Distro
    Ubuntu 18.04 Bionic Beaver

    Re: Adding/Delete User

    Quote Originally Posted by papibe View Post
    hi termvrl.
    If i were you, i'd use the commands 'adduser' and deluser instead.
    +1

  4. #4
    Join Date
    Aug 2012
    Beans
    76

    Re: Adding/Delete User

    Three things you need to know before you use useradd. I think this is how it's done. Emphasis on the think.

    user a add

    Code:
    useradd me # me is you
    give the user a directory

    Code:
    useradd -d /home/me me
    give the user a password

    Code:
    passwd me

  5. #5
    Join Date
    Feb 2007
    Beans
    863

    Re: Adding/Delete User

    might try : deluser or rmuser ...

  6. #6
    Join Date
    Feb 2012
    Location
    Athens, Alabama
    Beans
    611
    Distro
    Ubuntu 13.04 Raring Ringtail

    Re: Adding/Delete User

    I'm assuming that you are trying to add the user through the use of the terminal? What about going through the Dash Home? I found a good tutorial here on how to add the account.

  7. #7
    Join Date
    Sep 2012
    Beans
    94
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Adding/Delete User

    Hi All ! Good day!

    first i remove current user and group.
    i create a group using addgroup group1.
    then, i use adduser --ingroup group1 user1.
    set the password and info.

    Thanks for your help!

  8. #8
    Join Date
    Feb 2012
    Location
    Athens, Alabama
    Beans
    611
    Distro
    Ubuntu 13.04 Raring Ringtail

    Re: Adding/Delete User

    Glad you got it solved!

Tags for this Thread

Bookmarks

Posting Permissions

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