Red hat Linux 9 - deleting a user

Posted on 2006-04-14
Last Modified: 2013-12-06
I am very new to Linux - actually brand new and my first need to access a system is to remove a user. I have done some research and understand the basic commands etc. but I am not finding one to actually delete a user account. Can someone tell me how to do this. Thanks.
Question by:ainselyb
    LVL 3

    Accepted Solution

    Its pretty simple ..
    1)go in to root account
    2)open the terminal
    3)type "adduser username" or try "useradd username"
    4)passwd username (for giving the password to a specified user)

    5) for deleting a user
       userdel -r username

    Now logout from the root account and login with useraccount


    Author Comment

    LVL 3

    Expert Comment

    r u able to delete the useraccount ??...If you still need more information , you can always use red hat manuals .Once you open the web page ,you'll be conneted to redhat webpage and you can search for the required manual..try this to add a user graphically
    LVL 7

    Expert Comment

    Greetings ainselyb,
    Use the following command to Delete a User :-

    #userdel -r username

    Commands details :-

    userdel [option] user

    System administration command. Delete all entries for user in system account files.

        Remove the home directory of user and any files contained in it.

    If you are new to linux go through below sites for help

    All Linux Commands Explained :-

    Linux Books :-
    LVL 7

    Expert Comment

    you must have proper previlege to delete a user.
    root is administrator of the machine and can perform any operation without restrictions.
    when you log on using root login, your prompt will be a Hash    #

    If by machine enters in Graphical mode you can go to command mode to run above command by pressing Alt + Ctrl + F2

    there are 12 consloes possible in linux from Alt + Ctrl + F1 to F12
    By default some of them are disabled.

    Hope this help

    Featured Post

    Courses: Start Training Online With Pros, Today

    Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

    Join & Write a Comment

    Sometimes a user will call me frantically, explaining that something has gone wrong and they have tried everything (read - they have messed it up more and now need someone to clean up) and it still does no good, can I help them?!  Usually the standa…
    In this article we will discuss all things related to StageFright bug, the most vulnerable bug of android devices.
    In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
    Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

    746 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    16 Experts available now in Live!

    Get 1:1 Help Now