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.

So I got a laptop from my college that has Ubuntu 12.04 LTS and Windows 7. They handed over the laptop after reformatting the computer themselves.

When I open the terminal I used to see

collegename@collegename:~$ 

which I managed to change to

collegename@Sid 

from the

sudo gedit /etc/hostname

and switched off the Auto Login So I could see Sid at the top left corner of the login page.

I want to change collegename to user or ubuntu or something else which does not remind me of my college.. just like it appears

"root@username:~$" 

for the root user. What should I do? I am not the root user.

I tried

sudo gedit /etc/hosts 

and changed collegename to myname beside 127.0.1.1 but have not checked whether the name has changed or not.

The bluetooth name is also not a default, they've changed everything they could and it's the same for all students.

share|improve this question
1  
Whatever you changed in the hosts file... Change back now. –  Simon Sheehan Oct 14 '12 at 4:07

1 Answer 1

up vote 1 down vote accepted

The name which appears before the @ is your username. Create a new account or rename your account to something else.

Unless you are very experienced in managing user identities, it is far simpler and more likely to be correct to create a new account.

Depending on the umask of user collegename, you might want to set world read and execute permission to all your files:

 $ collegename@Sid:~$ chmod -r 755 ~/*

That way you can get full access to the old username from your new one.

To create a new account, see this.

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.