LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Ubuntu (https://www.linuxquestions.org/questions/ubuntu-63/)
-   -   Behaviour after x3 unsuccessful sudo password attempts (https://www.linuxquestions.org/questions/ubuntu-63/behaviour-after-x3-unsuccessful-sudo-password-attempts-4175530563/)

wood@addanc 01-09-2015 02:05 PM

Behaviour after x3 unsuccessful sudo password attempts
 
I initially attempted to ssh into a box running mythbuntu (I'm absolutely certain I used the correct password); I subsequently opened a terminal on the mythbuntu box and attempted to sudo <commmand> and the password was rejected again. What is the default behaviour of ubuntu? Does it lock the user out for a period of time or do I need to do some other recovery action to gain access to root commands again?

widget 01-09-2015 03:35 PM

What version are you using?

wood@addanc 01-10-2015 02:25 AM

Mythbuntu 14.04.1. After I re-booted the lock-out was removed enabling access to commands.

widget 01-10-2015 06:04 PM

In that case I think you can log in as root by simply booting to recovery with no password needed.

When you get the prompt run;
Code:

cat /var/log/auth.log | grep sudo
This should cast some light on the problem.

You may want to take a look at /etc/group to make sure you are still in the sudoers group.

The gratuitous # would be the place to reset your password too.

If you can't figure out anything else this would also be the place to create a new user.

JimKyle 01-10-2015 11:07 PM

Why pipe the log to "sudo"? I suspect there's a typo there and you meant to pipe the result to "grep"...

If my guess is wrong then I have something to learn here...

widget 01-11-2015 03:24 AM

Quote:

Originally Posted by JimKyle (Post 5298953)
Why pipe the log to "sudo"? I suspect there's a typo there and you meant to pipe the result to "grep"...

If my guess is wrong then I have something to learn here...

You certainly do have something to learn. You need to learn that I really am good at screwing up when typing.

Thanks. I fixed it.


All times are GMT -5. The time now is 11:49 AM.