You will need
- Computer with Ubuntu, root access or sudo.
In Ubuntu there is a very handy utility for deleting a user from the command line - deluser. It is specially sharpened under operation in the command line interface to the userdel utility. To run deluser rights are required superuser, which you can obtain by logging in as root or using the sudo command. To delete user Ubuntu, run the command in the terminal: sudo deluser user_name yegamediev – name of a deleted user. After the execution of command will delete a standard account user, and he will not be able to enter the system. It would remain his home directory and all the files that belong to him.
To delete user Ubuntu, along with its home directory and mailbox, and add after the command deluser --remove-home. If you want to remove not only the home directory, but all files a user in the system, use the options --remove-home --remove-all-files. With this key deluser utility will find all files and directories owned by the deleted user and deleted them, including the home directory.
If you want to delete user with his home directory, or all files, but want to keep them just in case, use the option --backup. With this key, before deleting the file user, they will be copied into a compressed tar archive that will be created when you delete the account in the current directory. To specify a different location for the archive file user, select the desired directory after the --backup-to.
If you want to remove user root, add the command with --force. This key confirms that the removal of the root user is not an error. Without --force to delete the user root cannot be.
User in Ubuntu you can delete through the GUI. To do this, click "administrative tools" in the start menu "System" and select "Users and groups". On the screen opens a program account management. Select the useryou want to remove in the left list and click "Remove". In the process of removing a user you can also choose to save the files user or to remove it together with the account.
To change the default settings for deluser utility, you can in the file /etc/deluser.conf