Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I would like to start from scratch.

How would I delete my user, including all data, but still have a way of recreating it? My user is the only user on the computer. It is also the administrative account.

share|improve this question
    
Create another one, then delete the old one? –  slhck Jun 23 '12 at 20:17
    
@slhck Here's what I'm thinking. adduser newUser ***make newUser admin ^ I need help with that part. deluser orginalUser –  Nyx Jun 23 '12 at 20:20

2 Answers 2

up vote 0 down vote accepted

You'll want to create a new user and add them to the admin group. This should be enough.

adduser <usernane> --group admin

You can also do this graphically:

To add a new user to sudo, open the Users and Groups tool from System->Administration menu. Then click on the user and then on properties. Choose the User Privileges tab. In the tab, find Administer the system and check that.


Log in with that new user, migrate your data.

Once you're done, you can remove the old user:

deluser <old-username>

Now, you would only need to remove /home/<old-username>, but make sure to have a backup just in case.

share|improve this answer

Debian based distros come without root password. Accounts with admin group are allowed to run sudo command which is defined in /etc/sudoers.

You can delete your user with command below:

deluser username

Then delete home directory of the user

rm -r /home/username

But you need an account to create your new user. Thus first of all you create password for root user, then you could create user after deleting your old user.

To do that:

sudo su -
passwd

After creating your password you could login system with root user.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.