"Error" after password insert at login or in sudo command

Asked by luca

Hi all,
some time ago i written a post on Ubuntu-it forum about a problem on my intrepid.

the italian post is here: ----> http://forum.ubuntu-it.org/index.php/topic,230189.0.html

i try to explain the problem in en now:
when i insert my password to the login, intrepid shows me a dialog with just Error and ok button! if i click ok, KDE or Gnome (generally i'm using KDE) start normally.
similar, when in terminal i try sudo any_commands it shows Error like this:

luca@luca-laptop:~$ sudo gedit file
[sudo] password for luca:
Error

and then the programs start without anyother problem!

can you give me a solution to this just a bit tiresome problem??

Thank You!!!!

Question information

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

have you tried changing your password to see if it will resolve the problem?

passwd luca

Revision history for this message
luca (luca-altomare8) said :
#2

Yes, I have...
i try to create a new account too.

Revision history for this message
marcobra (Marco Braida) (marcobra) said :
#3

Luca please try to type:

sudo -i

(if the system ask you a password give your user password, you will not see nothing when you type it, then press enter)

and please report errors here...

Thank you

Revision history for this message
luca (luca-altomare8) said :
#4

I think that is not rigth, btw this is the report:

luca@luca-laptop:~$ sudo -i
[sudo] password for luca:
Error
root@luca-laptop:~#

no more informations....:°°°°

Revision history for this message
Wim (launchpad-xs4all) said :
#5

a question to help your search:

do you have any "stange" characters in you password?!?

can you try with a simple password, e.g. a simple word...
(do not forget to set it back to a strong password afterwards)

does this help you both on your search?!?

Revision history for this message
luca (luca-altomare8) said :
#6

no strange* characters in my pwd...bty i try to change it and the results is the same!!!

i dont have the problem with kdesudo, but when i'm logging with kde4 at startup, the problem exist... and exist with su - and su. (other one to try???)
any idea???

tnx

Revision history for this message
luca (luca-altomare8) said :
#7

no strange* characters in my pwd...bty i try to change it and the results is the same!!!

i dont have the problem with kdesudo, but when i'm logging with kde4 at startup, the problem exist... and exist with su - and su. (other one to try???)
any idea???

tnx

Revision history for this message
Wim (launchpad-xs4all) said :
#8

Luca,

i will try to look wheter there is a mistake on or in your password-file,
please reply the output of these commands (done in a terminal window):

   ls -l /etc/passw* /etc/shado*

   cat /etc/passwd | tail -12

showing us what rights are on the password files,
and giving us the info of the last lines of that file.
Perhaps that gives us a clue where the error comes from....

Revision history for this message
luca (luca-altomare8) said :
#9

luca@luca-laptop:~$ ls -l /etc/passw* /etc/shado*
-rw-r--r-- 1 root root 1654 2008-12-18 12:29 /etc/passwd
-rw------- 1 root root 1753 2008-11-07 14:09 /etc/passwd-
-rw------- 1 root root 1654 2008-12-18 12:29 /etc/passwd.bak
-rw-r----- 1 root shadow 1058 2008-12-18 12:29 /etc/shadow
-rw------- 1 root root 1140 2008-11-07 14:09 /etc/shadow-
-rw------- 1 root root 1058 2008-12-18 12:29 /etc/shadow.bak

and the other command:

luca@luca-laptop:~$ cat /etc/passwd | tail -12
avahi-autoipd:x:105:113:Avahi autoip daemon:/var/lib/avahi-autoipd:/bin/false
gdm:x:106:114:Gnome Display Manager:/var/lib/gdm:/bin/false
messagebus:x:108:119::/var/run/dbus:/bin/false
avahi:x:109:120:Avahi mDNS daemon:/var/run/avahi-daemon:/bin/false
polkituser:x:110:122:PolicyKit:/var/run/PolicyKit:/bin/false
haldaemon:x:111:123:Hardware abstraction layer:/var/run/hald:/bin/false
luca:x:1000:1000:Luca Altomare:/home/luca:/bin/bash
pulse:x:107:116:PulseAudio daemon:/var/run/pulse:/bin/false
mysql:x:112:126:MySQL Server:/var/lib/mysql:/bin/false
landscape:x:113:65534:Landscape Client Daemon:/var/lib/landscape:/bin/false
Debian-exim:x:114:128::/var/spool/exim4:/bin/false
ntp:x:115:129::/home/ntp:/bin/false

Thank u!

Revision history for this message
Wim (launchpad-xs4all) said :
#10

Luca,

i hoped to find the solution here, but nothings strange...

.1.
next one will first give your know error, but nevertheless enter the command in a terminal window:

   sudo cat /etc/sudoers

at the end of the file there must be lines just like these 4:
# User privileges specification
root ALL=(ALL) ALL
# Members of the admin group may gain
%admin ALL=(ALL) ALL

.2.
i assume this also is OK; further search
next things to be checked in a terminal window:

   cat /etc/group | grep adm

gives 3 (or more) lines output, check that there is a line stating something like
admin:x:115:luca
saying that you are allowed in kwd to enter admin-mode...

find out the NUMBER on the line i mentioned above (my example 115) and fill in YOUR-NUMBER on this next command; so "grep 115" is going to be grep XxX ... (it is ONE large line, here split into e few...)

   echo ` cat /etc/group | grep admin |
   grep 115 `xx

this must give a line like
admin:x:115:lucaxx
with NO space between luca and xx

.3.
probably this also is OK; so here is the third test:
leave the terminal window open, and enter these 2 commands; the first is giving the error, the second searching in a logfile:

   sudo cat /etc/sudoers
   dmesg | tail

paste the output of the terminal screen here;
hope i will find something in this log...
(we will keep trying)

Revision history for this message
luca (luca-altomare8) said :
#11

OK...the firts 2 commans that's all right...
This is the output:

luca@luca-laptop:~$ sudo cat /etc/sudoers
[sudo] password for luca:
Error
# /etc/sudoers
#
# This file MUST be edited with the 'visudo' command as root.
#
# See the man page for details on how to write a sudoers file.
#

Defaults env_reset

# Uncomment to allow members of group sudo to not need a password
# %sudo ALL=NOPASSWD: ALL

# Host alias specification

# User alias specification

# Cmnd alias specification

# User privilege specification
root ALL=(ALL) ALL

# Members of the admin group may gain root privileges
%admin ALL=(ALL) ALL

luca@luca-laptop:~$ cat /etc/group | grep adm
adm:x:4:luca
lpadmin:x:109:luca
admin:x:115:luca

luca@luca-laptop:~$ echo ` cat /etc/group | grep admin | grep 115 `xx
admin:x:115:lucaxx

THE output of dmesg is here:

luca@luca-laptop:~$ dmesg | tail
[ 1578.296338] CPU1 attaching sched-domain:
[ 1578.296344] domain 0: span 0-1 level MC
[ 1578.296350] groups: 1 0
[ 1586.068125] usb 1-2: new low speed USB device using uhci_hcd and address 2
[ 1586.222872] usb 1-2: configuration #1 chosen from 1 choice
[ 1586.326784] usbcore: registered new interface driver hiddev
[ 1586.339721] input: HID 062a:0000 as /devices/pci0000:00/0000:00:1d.0/usb1/1-2/1-2:1.0/input/input8
[ 1586.344292] input,hidraw0: USB HID v1.10 Mouse [HID 062a:0000] on usb-0000:00:1d.0-2
[ 1586.344347] usbcore: registered new interface driver usbhid
[ 1586.344360] usbhid: v2.6:USB HID core driver
luca@luca-laptop:~$

NOW, i'm waiting for ur solution (hope so!!!)

Tnx!

Revision history for this message
Wim (launchpad-xs4all) said :
#12

Luca,

the files passwd, shadow, sudoers all seem OK to me; no spaces where they do not belong...

the mesg-command does not give a clue about the problem...

your password itself is not generating it...

i am searching my brains for an other clue... but no ones comes up; i will stay thinking,
so i ask all other linux-lovers:

!!! Pleas HELP Luca with this strange error !!!

Guys, anyone a tip ?!?

Revision history for this message
Wim (launchpad-xs4all) said :
#13

Luca,

the files passwd, shadow, sudoers all seem OK to me; no spaces where they do not belong...

the mesg-command does not give a clue about the problem...

your password itself is not generating it...

i am searching my brains for an other clue... but no ones comes up; i will stay thinking,
so i ask all other linux-lovers:

!!! Please HELP Luca with this strange error !!!

Guys, anyone a tip ?!?

Revision history for this message
luca (luca-altomare8) said :
#14

tnx menting!!!

I thougth if if i can solve with a downgrade to hardy and then a new upgrade...but i don't know how i can!!
or i can up to jaunty!!!but i need a stable version!!!

Revision history for this message
Wim (launchpad-xs4all) said :
#15

Luca,

the builders are really trying to build only good stuff; most garantee is given at the so called LTS-versions, that are versions coming out every 2 year and supported for (at least 3 years);
e.g. i am using Xubuntu-06.06.1 (june 2006) that will have active support from Ubuntu till ate least june this year; perhaps at this location support by individuals like me are given a longer time.

Me myself, i do not have experience with 08.10 (Intrepid or 09.?? Jaunty)...

A work around for you: if you do not have MANY files that you must save, then act thus:
.1.
put files you want to save to an USB-memory-stick (or burn them on a CD-rom)
.2.
TEST whether you can READ the files you just copied; pitty if you can not and see that when it is too late ... :(
.3.
choose which flavour you want to install
(Ubuntu = Gnome desktop)
(Kubuntu = KDE desktop)
(Xubuntu = XFCE desktop, tiny and quick)
.4.
i would go for a LTS-version, so in this case for *buntu-08.04.1-LTS;
download the installation-ISO file
.5.
burn it AS-ISO to a CD-rom, this becomes a bootable one
.6.
boot from this CD-rom, choose installation,
leave partitioning as it is, but
FORMAT as well the SWAP-partition as the Ubuntu-partition
.7.
create users, printers, etc.
and copy files from USB-stick/CD-rom back to the home-directorie(s)

Your version 08.04 will be supported and upgraded until at least spring 2011 !
Can you live with this solution?!?

Revision history for this message
luca (luca-altomare8) said :
#16

which files i have to save?? if i copy my HOME, then i can find all my installed program??

thank u!