unable to authenticate...

Asked by rohan

i had set automatic login.so password is set to none...when i try to do something it asks for password .why???
i know this is very basic question but i am new to UBUNTU...pliz help
thanks!!!!

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu sudo Edit question
Assignee:
No assignee Edit question
Solved by:
Sam_
Solved:
Last query:
Last reply:
Revision history for this message
mycae (mycae) said :
#1

It depends on what the "something" that you are trying to do is. Most likely, the reason it does this is because it is not trying to log on as *your user*, but is instead attempting to perform some system-wide action.

Allowing this without password authentication would be a fairly hefty security flaw, as any application could immediately promote itself to administrator mode, and do whatever it liked to your system - even without your consent. Remote attack vectors in particular would be very useful in this mode.

Even windows, which traditionally used the "no password" model has moved away from the "run everything as admin" mode (UAC), as this idea is fundamentally problematic in computing.

Revision history for this message
rohan (rohan-rohanya) said :
#2

...
But now which password should i provide to it????????????

Revision history for this message
mycae (mycae) said :
#3

When you installed your system, you would have been asked to create a password, regardless of whether you specified that you wanted to auto-login or not.

You can reset the password by following this procedure:
https://help.ubuntu.com/community/LostPassword

Revision history for this message
rohan (rohan-rohanya) said :
#4

i had given the same password for few times but still it shows same that authentication failed....

Revision history for this message
rohan (rohan-rohanya) said :
#5

while searching i came across this...

Choose “Login without a password” in first drop-down box and click “Change” at bottom.
Now, you can log-in this user without password both in GUI log-in screen and text (tty1~tty6) mode. The password is actually set to “None”. So in the tty1~tty6 (press Ctrl+Alt+F1~F6), it won’t ask a password for running commands with sudo at beginning. But in desktop environment, sudo command and “Authentication Required” window still need password and you can’t get through whatever you input. To deal with that see following steps.
2.) Reset password in command-line. After that, you can login without password in LightDM Login Screen and all others back to normal.
Press Ctrl+Alt+F1 to navigate to TTY1 and log-in with your username. Then run this command to reset password:
sudo passwd YOUR-USER-NAME
Then input a new password and again to confirm.

(bit confused....)

Revision history for this message
Best Sam_ (and-sam) said :
#6

> shows same that authentication failed

Switch to tty: ctrl+alt+f1
Login with username and password (the one you've submitted during installation).
#Note there won't be any feedback, stars or alike, nevertheless the password will be recognized (if it's correctly entered).

Try:
sudo apt-get update

#This will require again the same password given above.

If it updates - fine.
Back to UI: ctrl+alt+f7

If it doesn't work repair via recovery mode in grub menu.
To view the grub menu press [Shift] key right after boot.
https://help.ubuntu.com/community/LostPassword
https://answers.launchpad.net/ubuntu/+question/47743

Revision history for this message
rohan (rohan-rohanya) said :
#7

Thanks Sam_, that solved my question.

Revision history for this message
rohan (rohan-rohanya) said :
#8

i am gREATFUl to u n ubuntu LAUNCHPAD...
once again thanks alot!!!!!!!!!!!!!!!!!!!!!!
:)))))