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 cannot login onto one specific ubuntu account for some reason. I am sure I'm using the correct password. I believe its because of this instruction that I executed yesterday:

Add pactl upload-sample /usr/share/sounds/gnome/default/alerts/bark.ogg bell.ogg to the file ~/.xprofile.

I can still login on my other ubuntu accounts, however.

How can I undo this command and fix this problem?

share|improve this question

migrated from stackoverflow.com Apr 12 '13 at 16:04

This question came from our site for professional and enthusiast programmers.

1 Answer 1

up vote 1 down vote accepted

If you can login as root, try this command as root:

passwd account

Of course, replace account with the user name that you can't use to log in.

If you can't login, then reboot your computer. While it is starting, hold the shift key down. In this way you will reach GRUB if Ubuntu is your only Operating System. If you have more than one OS, then skip this step. Then select the entry with recovery from there and wait. A menu will appear. From there select "Drop to root shell" (Note that the text will not be always like this). Then you will get to the root shell. Enter the command above and if you get any errors, type:

mount -o remount,rw /dev/sda2

Replace /dev/sda2 with you root partition. You can see it by typing df
Hope it helps!

share|improve this answer
    
If I do that, wont I lose all of my configurations? –  Vizzle Apr 12 '13 at 14:52
    
No, you'll just change your password for that account.It won't do anything else –  StefanEuSunt Apr 12 '13 at 15:10
    
passwd: changes password for accounts –  StefanEuSunt Apr 12 '13 at 15:11
    
mount -o remount,rw : remounts the root filesystem as read-write –  StefanEuSunt Apr 12 '13 at 15:11
    
df: shows you the partitions that are mounted. The root partition is / –  StefanEuSunt Apr 12 '13 at 15:12

Your Answer

 
discard

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