Find the answer to your Linux question:
Results 1 to 7 of 7
I'm using RedHat 7 and tried to add a new user using the adduser command. I receive the following error when running the command: bash: adduser: command not found This ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Mar 2003
    Posts
    5

    Problem using "adduser" command


    I'm using RedHat 7 and tried to add a new user using the adduser command. I receive the following error when running the command:

    bash: adduser: command not found

    This command works on all my other boxes?

    I'm accessing the box remotly using SSH1, but I don't think that can be the problem.

    Regards,
    Jason

  2. #2
    Linux Engineer
    Join Date
    Jan 2003
    Location
    Lebanon, pa
    Posts
    994
    Code:
    export PATH=$PATH:/sbin:/usr/sbin
    Might want to add that line to your .bash_profile

  3. #3
    Linux Engineer
    Join Date
    Apr 2003
    Location
    Sweden
    Posts
    796
    I didnt know there existed an adduser command, use the tradition useradd command instead. It workes always and on every unix-dialekt.

    Regards
    Regards

    Andutt

  4. #4
    Linux Guru
    Join Date
    Oct 2001
    Location
    Täby, Sweden
    Posts
    7,578
    Actually, they're one and the same. adduser is a symlink to useradd. However, if you're even somewhat interested in portability, use useradd like andutt says.

  5. #5
    Linux Engineer
    Join Date
    Apr 2003
    Location
    Sweden
    Posts
    796
    OK dolda, thats the cool stuff about linux-unix im learning something every day even if i think i know much...

    Regards

    Regards

    Andutt

  6. #6
    Linux User Allblack's Avatar
    Join Date
    May 2003
    Location
    Godzone
    Posts
    416
    very interesting indeed.

    On Freebsd it is adduser so I tend to go for that. I always wondered why they used different commands.

  7. #7
    Linux Engineer
    Join Date
    Nov 2002
    Location
    Queens, NY
    Posts
    1,319
    I always thought adduser was a front end to useradd.
    The best things in life are free.

Posting Permissions

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