Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I had a ubuntu user which has root level privileges but I haven't created password for it, there are other user also on the machine but none of them have sudo permissions, unfortunately permissions on .ssh directory in the ubuntu home directory has been changed and now I cannot login using ubuntu user credentials and there is no user with sudo privileges, so what options I have left with to get myself connected from ubuntu user's credentials

share|improve this question
Start in single user mode? – NickW Feb 4 '14 at 11:58
I am using Amazon EC2 instance. – Vardan Gupta Feb 4 '14 at 12:00
1… – NickW Feb 4 '14 at 12:05

I recommend booting into command line mode. Then you can boot as root and then you can reset your users's password using the passwd command.

You can pay a look at:

Someone seems to have the same problem than you do.


PS: It might also be a good idea to set a privileged user in your sudoer file. PPS: Sorry I lack the very small line were Amazon EC2 was mentioned. :/

share|improve this answer
I don't think you can do this with EC2 – Iain Feb 4 '14 at 18:51

After paying attention to Amazon EC2 conditions, I found that you can import/export your virtual images. Please, pay a look at:

From that point, you should be able to start your image locally with a visualisation tool. There you can start the previous procedure I mention earlier.

Let us know how it work. ;)

share|improve this answer

Your Answer


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.