* [gentoo-user] PAM problem
@ 2007-01-07 11:43 Jean Magnan de Bornier
2007-01-07 12:16 ` Daniel Iliev
2007-01-08 13:37 ` Ernst Herzberg
0 siblings, 2 replies; 7+ messages in thread
From: Jean Magnan de Bornier @ 2007-01-07 11:43 UTC (permalink / raw
To: gentoo-user
Hi all,
and a happy nerw year!
My problem with PAM has several manifestations:
1/ I cannot login as root (I know I should not do that btw):
"Login incorrect" (but I know my root password!)
2/ Using sudo su as a user:
12:32 jean@borixe /home/jean % sudo su
Password:
su : Authentication service cannot retrieve authentication info.
(Ignoré)
[root@borixe:/home/jean]#
3/ So I can do *some* admin jobs, but *not all;* specifically I cannot create a
new user:
[root@borixe:/home/jean]# useradd jojo
useradd : échec de la méthode d'authentification PAM
(ie, the pam auth method fails)
I guess it is the same problem causing these behaviours, but am far from
being an expert on that, so any help will be welcome!
TIA
--
Jean Magnan de Bornier | Cours Victor Hugo
e-mots: jean at bornier.net | 13980 Alleins France
T 08 70 39 34 03 | P 06 09 17 35 87
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [gentoo-user] PAM problem
2007-01-07 11:43 [gentoo-user] PAM problem Jean Magnan de Bornier
@ 2007-01-07 12:16 ` Daniel Iliev
2007-01-07 13:59 ` Arturo 'Buanzo' Busleiman
2007-01-08 9:38 ` Jean Magnan de Bornier
2007-01-08 13:37 ` Ernst Herzberg
1 sibling, 2 replies; 7+ messages in thread
From: Daniel Iliev @ 2007-01-07 12:16 UTC (permalink / raw
To: gentoo-user
Jean Magnan de Bornier wrote:
> Hi all,
>
> and a happy nerw year!
>
> My problem with PAM has several manifestations:
> 1/ I cannot login as root (I know I should not do that btw):
> "Login incorrect" (but I know my root password!)
> 2/ Using sudo su as a user:
>
> 12:32 jean@borixe /home/jean % sudo su
> Password:
> su : Authentication service cannot retrieve authentication info.
> (Ignoré)
> [root@borixe:/home/jean]#
>
> 3/ So I can do *some* admin jobs, but *not all;* specifically I cannot create a
> new user:
>
> [root@borixe:/home/jean]# useradd jojo
> useradd : échec de la méthode d'authentification PAM
>
> (ie, the pam auth method fails)
>
> I guess it is the same problem causing these behaviours, but am far from
> being an expert on that, so any help will be welcome!
> TIA
>
As I see it, you have to:
- boot from a CD
- mount your gentoo
- chroot into it
- change root password by "passwd"
- reinstall pam by "emerge -1 sys-libs/pam"
Note that the last step requires a working connection to The Internet.
--
Best regards,
Daniel
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [gentoo-user] PAM problem
2007-01-07 12:16 ` Daniel Iliev
@ 2007-01-07 13:59 ` Arturo 'Buanzo' Busleiman
2007-01-08 9:38 ` Jean Magnan de Bornier
1 sibling, 0 replies; 7+ messages in thread
From: Arturo 'Buanzo' Busleiman @ 2007-01-07 13:59 UTC (permalink / raw
To: gentoo-user
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Daniel Iliev wrote:
> - reinstall pam by "emerge -1 sys-libs/pam"
>
> Note that the last step requires a working connection to The Internet.
Only if the required files are not present in /usr/portage/distfiles.
- --
Arturo "Buanzo" Busleiman - Consultor Independiente en Seguridad Informatica
¿No sabés a dónde ir a comer o tomar algo? Visitá www.vivamoslavida.com.ar
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFFoPysAlpOsGhXcE0RAol5AJ4/UQZa0/dgkj3ZhrvpfNziQlUkZgCeJ4+0
qnK1PPdWSf45/eUchCpAGQE=
=ngiv
-----END PGP SIGNATURE-----
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [gentoo-user] PAM problem
2007-01-07 12:16 ` Daniel Iliev
2007-01-07 13:59 ` Arturo 'Buanzo' Busleiman
@ 2007-01-08 9:38 ` Jean Magnan de Bornier
2007-01-08 13:18 ` Arturo 'Buanzo' Busleiman
1 sibling, 1 reply; 7+ messages in thread
From: Jean Magnan de Bornier @ 2007-01-08 9:38 UTC (permalink / raw
To: gentoo-user
Le 07 janvier à 13:16:56 Daniel Iliev <danny@ilievnet.com> écrit notamment:
| Jean Magnan de Bornier wrote:
| > Hi all,
| >
[...]
>
| As I see it, you have to:
| - boot from a CD
| - mount your gentoo
| - chroot into it
| - change root password by "passwd"
| - reinstall pam by "emerge -1 sys-libs/pam"
>
| Note that the last step requires a working connection to The Internet.
Thanks Daniel and Arturo; unrfortunately I have some hardware problem on
this machine (cdrom out of use), so I'll have to repair that first before
I can try your solution :-(
THX again
--
Jean Magnan de Bornier | Cours Victor Hugo
e-mots: jean at bornier.net | 13980 Alleins France
T 08 70 39 34 03 | P 06 09 17 35 87
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [gentoo-user] PAM problem
2007-01-08 9:38 ` Jean Magnan de Bornier
@ 2007-01-08 13:18 ` Arturo 'Buanzo' Busleiman
0 siblings, 0 replies; 7+ messages in thread
From: Arturo 'Buanzo' Busleiman @ 2007-01-08 13:18 UTC (permalink / raw
To: gentoo-user
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Jean Magnan de Bornier wrote:
> Thanks Daniel and Arturo; unrfortunately I have some hardware problem on
> this machine (cdrom out of use), so I'll have to repair that first before
> I can try your solution :-(
Absolutely not.
It might be possible to obtain a root login without ever logging in.
Reboot the system.
If you are using LILO:
Choose your kernel. Append " init=/bin/sh" and press enter. You should get a "#" prompt in a while.
If you are using GRUB:
Press "e", then select de kernels parameters, and press "e" again. Append " init=/bin/sh". Press
enter. Press "b" to boot it. Same results.
Now, that's pretty much like chrooting to /mnt/gentoo when installing. Run env-update && source
/etc/profile.
Now emerge pam, change your root password (or remove the hash altogether from /etc/shadow), etc, etc.
Hope it helps.
- --
Arturo "Buanzo" Busleiman - Consultor Independiente en Seguridad Informatica
¿No sabés a dónde ir a comer o tomar algo? Visitá www.vivamoslavida.com.ar
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFFokS0AlpOsGhXcE0RAnnyAJ45sFb5v/420Ck/wIehdqAAjkzu0QCfYKbS
kYAsIXRJi+/2z7mWbb15+Xg=
=1vwy
-----END PGP SIGNATURE-----
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [gentoo-user] PAM problem
2007-01-07 11:43 [gentoo-user] PAM problem Jean Magnan de Bornier
2007-01-07 12:16 ` Daniel Iliev
@ 2007-01-08 13:37 ` Ernst Herzberg
2007-01-08 14:12 ` Jean Magnan de Bornier
1 sibling, 1 reply; 7+ messages in thread
From: Ernst Herzberg @ 2007-01-08 13:37 UTC (permalink / raw
To: gentoo-user
On Sunday 07 January 2007 12:43, Jean Magnan de Bornier wrote:
> Hi all,
>
> and a happy nerw year!
>
> My problem with PAM has several manifestations:
> 1/ I cannot login as root (I know I should not do that btw):
> "Login incorrect" (but I know my root password!)
> 2/ Using sudo su as a user:
>
> 12:32 jean@borixe /home/jean % sudo su
> Password:
> su : Authentication service cannot retrieve authentication info.
> (Ignoré)
> [root@borixe:/home/jean]#
At this point run
[root@borixe:/home/jean]# pwconv
Maybe that could fix it.
<earny>
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [gentoo-user] PAM problem
2007-01-08 13:37 ` Ernst Herzberg
@ 2007-01-08 14:12 ` Jean Magnan de Bornier
0 siblings, 0 replies; 7+ messages in thread
From: Jean Magnan de Bornier @ 2007-01-08 14:12 UTC (permalink / raw
To: gentoo-user
Le 08 janvier à 14:37:16 Ernst Herzberg <list-gentoo-user@net4u.de> écrit notamment:
| On Sunday 07 January 2007 12:43, Jean Magnan de Bornier wrote:
| > Hi all,
| >
| > and a happy nerw year!
| >
| > My problem with PAM has several manifestations:
| > 1/ I cannot login as root (I know I should not do that btw):
| > "Login incorrect" (but I know my root password!)
| > 2/ Using sudo su as a user:
| >
| > 12:32 jean@borixe /home/jean % sudo su
| > Password:
| > su : Authentication service cannot retrieve authentication info.
| > (Ignoré)
| > [root@borixe:/home/jean]#
>
| At this point run
| [root@borixe:/home/jean]# pwconv
>
| Maybe that could fix it.
>
Indeed!
Thank you, and also to Arturo (I won't try your tip but I keep it in mind
for more hard times :-) )
cheers,
--
Jean Magnan de Bornier | Cours Victor Hugo
e-mots: jean at bornier.net | 13980 Alleins France
T 08 70 39 34 03 | P 06 09 17 35 87
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2007-01-08 14:19 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-01-07 11:43 [gentoo-user] PAM problem Jean Magnan de Bornier
2007-01-07 12:16 ` Daniel Iliev
2007-01-07 13:59 ` Arturo 'Buanzo' Busleiman
2007-01-08 9:38 ` Jean Magnan de Bornier
2007-01-08 13:18 ` Arturo 'Buanzo' Busleiman
2007-01-08 13:37 ` Ernst Herzberg
2007-01-08 14:12 ` Jean Magnan de Bornier
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox