PDA

View Full Version : [ubuntu] Change main user


Derekuda
April 15th, 2009, 11:44 PM
I bought a dell mini with ubuntu, but ended up giving it to my GF. She wants the computer to have her profile be the default and delete mine. How does she go about doing that?

antikristian
April 16th, 2009, 12:25 AM
I apollogize if I do not have the correct name for the options here, but my ubuntu system is Norwegian, so the naming is diffrent.

Change default login:
Go to System->administration->login manager (blue icon with dots)
Select security (fifth tab) and change the default user in automatic logins

If you can't see the bottom of the dialog to close it, then move it upwards by holding the alt-key, clicking inside the window and dragging it upwards.

Allow sudo access
To be able to do superuser stuff with the new user (remember, you are deleting the old one) go to System-> administration -> users & groups
select unlock and type in your password
Select her accountname and click properties
Select the user permissions tab (third tab)
add her to the "administer the system" group

now test this by opening a terminal and doing a
su <herUsername>
sudo apt-get update

If this was successfull after entering her password, then you can proceed with the next step.

Deleting user
In the same "users and groups" program
press unlock
delete your old user

antikristian
April 16th, 2009, 12:47 AM
the second and third options can also easily be done through the commandline


Allow sudo access
sudo usermod -a -G admin <gfUsername>
test with
su <herUsername>
sudo cat /etc/sudoers
If it didn't work, you won't be able to read the file


Deleting user
sudo userdel <yourolduser>