[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 449
  • Last Modified:

Red hat Linux 9 - deleting a user

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.
0
ainselyb
Asked:
ainselyb
  • 2
  • 2
1 Solution
 
sundeepgopalCommented:
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

0
 
ainselybAuthor Commented:
Thanks!
0
 
sundeepgopalCommented:
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  
http://www.redhat.com/docs/manuals/linux/RHL-7.1-Manual/custom-guide/linuxconf-add-user-gen.html
0
 
sunilcomputerCommented:
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.
Option
-r

    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 :-

http://www.linuxdevcenter.com/linux/cmd/

Linux Books :-
http://www.linux.org/docs/online_books.html
0
 
sunilcomputerCommented:
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
0

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now