Find the answer to your Linux question:
Results 1 to 4 of 4
I am using UNIX shell scripting. I tried using "adduser" to add a user but the program returned "adduser not found"...how come? And what command should I use to delete ...
  1. #1
    Just Joined!
    Join Date
    Jun 2007
    Location
    SG
    Posts
    2

    Help on add and delete user

    I am using UNIX shell scripting. I tried using "adduser" to add a user but the program returned "adduser not found"...how come? And what command should I use to delete a user? Can someone help me please...thanks!

  2. #2
    Linux Engineer Thrillhouse's Avatar
    Join Date
    Jun 2006
    Location
    Arlington, VA, USA
    Posts
    1,377
    I'm sure it's not the same for all UNIX OSes but on Linux you can use useradd and userdel. Take a look through the man pages:
    Code:
    man useradd
    man userdel

  3. #3
    oz
    oz is online now
    forum.guy
    Join Date
    May 2004
    Location
    arch linux
    Posts
    18,095
    Try useradd. You can get a listing of commands here:

    SuperMan Pages

    Oops... Thrillhouse is quicker than me today.
    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.

  4. #4
    Blackfooted Penguin daark.child's Avatar
    Join Date
    Apr 2006
    Location
    West Yorks
    Posts
    4,344
    Quote Originally Posted by burian_ralf View Post
    I am using UNIX shell scripting. I tried using "adduser" to add a user but the program returned "adduser not found"...how come? And what command should I use to delete a user? Can someone help me please...thanks!
    Not all Linux distros use or include "adduser". "Useradd" is pretty much the standard tool for adding users on Linux and other Unix OSes, although "adduser" seems to be a very good interactive tool.

Posting Permissions

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