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.

If I accidentally misnamed my user account during the initial installation, for example if I type "devdmin" instead of "devadmin", is there a way to change that account username?

The reason I ask is because I created an ubuntu server VM on VirtualBox, and when I mounted a shared folder, it says it belongs to my misnamed initial user account, e.g. "devdmin". Now I have to use sudo to edit any of the files within the shared folder, using my second account that I correctly named. I tried using chown -R devadmin sharedfolder and chgrp -R devadmin sharedfolder but it does not do anything. When I run ls -lah, it shows devdmin as the owner and group of those files.

share|improve this question

1 Answer 1

You can rename your userid with the usermod commnand. More here.

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.