View previous topic :: View next topic |
Author |
Message |
KyoKu n00b

Joined: 21 Aug 2003 Posts: 23
|
Posted: Thu Aug 21, 2003 7:13 pm Post subject: Problema con 'su' |
|
|
Salve a tutti. Di recente, dopo aver updatato system e world, ho riscontrato un problema con il comando 'su'.
Se da utente digito il comando su root mi viene chiesta di inserire la password e successivamente la shell mi ritorna il seguente errore:
kyoku@kof etc $ su root
Password:
su: Authentication failure
Sorry.
Ho dunque verificato che l'utente kyoku fosse nel gruppo wheel ma nn è cambiato nulla. Ho anche provato a creare da zero un nuovo utente ma riscontro lo stesso errore.
Sotto consiglio di un amico ho provato ad editare il file /etc/pam.d/su eliminando la richiesta di password per gli utenti appartenenti al gruppo wheel. La shell in questo caso mi ritorna il seguente errore:
kyoku@kof etc $ su root
su: Authentication service cannot retrieve authentication info.
Sorry.
Avete per caso qualche consiglio da darmi?
Grazie anticipatamente, KyoKu |
|
Back to top |
|
 |
fedeliallalinea Administrator


Joined: 08 Mar 2003 Posts: 31492 Location: here
|
Posted: Thu Aug 21, 2003 7:21 pm Post subject: |
|
|
Guarda le faq qui prima che qualcono ti cazzi. Comunque e' buion abitudine guardare la doc su gentto.org e gentoo.it cosi' evitiamo duplicati di post. _________________ Questions are guaranteed in life; Answers aren't. |
|
Back to top |
|
 |
KyoKu n00b

Joined: 21 Aug 2003 Posts: 23
|
Posted: Thu Aug 21, 2003 7:55 pm Post subject: |
|
|
Proverò a dare un'occhiata ai post dunque xké nel link a cui mi hai mandato nn ho trovato nulla di utile riguardo il mio problema. |
|
Back to top |
|
 |
fedeliallalinea Administrator


Joined: 08 Mar 2003 Posts: 31492 Location: here
|
Posted: Thu Aug 21, 2003 8:08 pm Post subject: |
|
|
Mi scuso con KyoKu ho capito male il problema. Chiedo scusa ho sbagliato. _________________ Questions are guaranteed in life; Answers aren't. |
|
Back to top |
|
 |
Ginko Guru


Joined: 01 May 2002 Posts: 371 Location: nearby my linux laptop
|
Posted: Fri Aug 22, 2003 7:26 am Post subject: Re: Problema con 'su' |
|
|
KyoKu wrote: | Salve a tutti. Di recente, dopo aver updatato system e world, ho riscontrato un problema con il comando 'su'.
Se da utente digito il comando su root mi viene chiesta di inserire la password e successivamente la shell mi ritorna il seguente errore:
kyoku@kof etc $ su root
Password:
su: Authentication failure
Sorry. |
Sembrerebbe un problama di PAM. Posso solo consigliarti - nel frattempo che indaghi - di mettere un alias : Code: | alias su='ssh -X -l root localhost' |
Saluti
--Gianluca |
|
Back to top |
|
 |
morellik l33t


Joined: 03 Feb 2003 Posts: 629 Location: Firenze
|
Posted: Fri Aug 22, 2003 8:10 am Post subject: |
|
|
Hai controllato le permissions del programma /bin/su?
Io ho le seguenti : -rwsr-xr-x.
Se le cambio in -rwxr-xr-x ho il seguente errore quando tento di usare il comando su.
Password:
su: Authentication failure
Sorry.
Ciauz
morellik |
|
Back to top |
|
 |
dnix Apprentice


Joined: 17 Jun 2003 Posts: 271 Location: Italy
|
Posted: Fri Aug 22, 2003 9:12 am Post subject: |
|
|
l'utente in questione fa parte del gruppo wheel? |
|
Back to top |
|
 |
shev Bodhisattva


Joined: 03 Feb 2003 Posts: 4084 Location: Italy
|
Posted: Fri Aug 22, 2003 9:34 am Post subject: |
|
|
dnix wrote: | l'utente in questione fa parte del gruppo wheel? |
Citando il primo post:
KyoKu wrote: | Ho dunque verificato che l'utente kyoku fosse nel gruppo wheel ma nn è cambiato nulla |
Basta tartassare questo povero KyoKu
(per un consiglio aspetto che KyoKu ci dica se i consigli di morellik e degli altri hanno risolto il problema ) _________________ Se per vivere ti dicono "siediti e stai zitto" tu alzati e muori combattendo |
|
Back to top |
|
 |
dnix Apprentice


Joined: 17 Jun 2003 Posts: 271 Location: Italy
|
Posted: Fri Aug 22, 2003 9:38 am Post subject: |
|
|
hai ragione scusa
dovrei imparare a leggere tutto prima di rispondere |
|
Back to top |
|
 |
shev Bodhisattva


Joined: 03 Feb 2003 Posts: 4084 Location: Italy
|
Posted: Fri Aug 22, 2003 9:55 am Post subject: |
|
|
dnix wrote: | hai ragione scusa
dovrei imparare a leggere tutto prima di rispondere |
Figurati, capita a tutti. A me è già successo due o tre volte in questi giorni (vedi topic del logo aperto da Hellraiser), per questo t'ho risposto, per fare lo stronzo e sottolineare che non sono l'unico distratto in questo periodo (scherzo ovviamente ) _________________ Se per vivere ti dicono "siediti e stai zitto" tu alzati e muori combattendo |
|
Back to top |
|
 |
bsolar Bodhisattva


Joined: 12 Jan 2003 Posts: 2764
|
Posted: Fri Aug 22, 2003 12:21 pm Post subject: |
|
|
Che permessi hanno passwd, group e shadow? _________________ I may not agree with what you say, but I'll defend to the death your right to say it. |
|
Back to top |
|
 |
KyoKu n00b

Joined: 21 Aug 2003 Posts: 23
|
Posted: Fri Aug 22, 2003 7:58 pm Post subject: |
|
|
Ggrazie per l'aiuto.^_^
Ho provato a creare l'alias e a settare i permessi a 'su' come detto ma continua a darmi lo stesso errore. :\
I permessi di quei file sono i seguenti:
-rw-r--r-- 1 root root 1811 Aug 21 22:26 passwd
-rw-r--r-- 1 root root 726 Aug 21 22:26 group
-rw------- 1 root root 538 Aug 21 22:26 shadow |
|
Back to top |
|
 |
fedeliallalinea Administrator


Joined: 08 Mar 2003 Posts: 31492 Location: here
|
Posted: Fri Aug 22, 2003 8:24 pm Post subject: |
|
|
KyoKu wrote: | Ggrazie per l'aiuto.^_^
Ho provato a creare l'alias e a settare i permessi a 'su' come detto ma continua a darmi lo stesso errore. :\
I permessi di quei file sono i seguenti:
-rw-r--r-- 1 root root 1811 Aug 21 22:26 passwd
-rw-r--r-- 1 root root 726 Aug 21 22:26 group
-rw------- 1 root root 538 Aug 21 22:26 shadow |
I permessi dei tre file sembrano giusti. _________________ Questions are guaranteed in life; Answers aren't. |
|
Back to top |
|
 |
cerri Bodhisattva


Joined: 05 Mar 2003 Posts: 2957 Location: # init S
|
Posted: Sat Aug 23, 2003 7:47 am Post subject: |
|
|
Controlla che /etc/pam.d/su contenga le seguenti scritte:
Code: | auth required /lib/security/pam_wheel.so use_uid
auth required /lib/security/pam_stack.so service=system-auth
account required /lib/security/pam_stack.so service=system-auth
password required /lib/security/pam_stack.so service=system-auth
session required /lib/security/pam_stack.so service=system-auth
session optional /lib/security/pam_xauth.so |
_________________ Enjoy your freedom.
Sex is like hacking. You get in, you get out, and you hope you didnt leave something behind that can be traced back to you.
<----------------------->
Andrea Cerrito |
|
Back to top |
|
 |
KyoKu n00b

Joined: 21 Aug 2003 Posts: 23
|
Posted: Sun Aug 24, 2003 4:29 pm Post subject: |
|
|
Il mio file /etc/pam.d/su olter quelle righe ha in più questa:
auth sufficient /lib/security/pam_rootok.so
Ho provato a commentarla ma il problema persiste.
Ho anche riemerso il pam ma nulla da fare.
Possibile che sia un problema di hostname? (nn mi picchiate se pensate sia un'eresia ciò che ho scritto^^) |
|
Back to top |
|
 |
cerri Bodhisattva


Joined: 05 Mar 2003 Posts: 2957 Location: # init S
|
Posted: Sun Aug 24, 2003 5:16 pm Post subject: |
|
|
Cosa ti dicono i log? _________________ Enjoy your freedom.
Sex is like hacking. You get in, you get out, and you hope you didnt leave something behind that can be traced back to you.
<----------------------->
Andrea Cerrito |
|
Back to top |
|
 |
KyoKu n00b

Joined: 21 Aug 2003 Posts: 23
|
Posted: Sun Aug 24, 2003 6:01 pm Post subject: |
|
|
Se è a questo log che ti riferisci:
Aug 22 22:01:25 [login(pam_unix)] session opened for user provolo by (uid=0)
Aug 22 22:01:29 [su(pam_unix)] authentication failure; logname=provolo uid=1001 euid=1001 tty=vc/3 ruser=provolo rhost= user=root
Aug 22 22:01:32 [su] pam_authenticate: Authentication failure |
|
Back to top |
|
 |
cerri Bodhisattva


Joined: 05 Mar 2003 Posts: 2957 Location: # init S
|
Posted: Sun Aug 24, 2003 6:22 pm Post subject: |
|
|
Controlla:
Code: | cerri@cerrito pam.d $ pwd
/etc/pam.d
cerri@cerrito pam.d $ cat system-auth
#%PAM-1.0
auth required /lib/security/pam_env.so
auth sufficient /lib/security/pam_unix.so likeauth nullok
auth required /lib/security/pam_deny.so
account required /lib/security/pam_unix.so
password required /lib/security/pam_cracklib.so retry=3
password sufficient /lib/security/pam_unix.so nullok md5 shadow use_authtok
password required /lib/security/pam_deny.so
session required /lib/security/pam_limits.so
session required /lib/security/pam_unix.so
|
_________________ Enjoy your freedom.
Sex is like hacking. You get in, you get out, and you hope you didnt leave something behind that can be traced back to you.
<----------------------->
Andrea Cerrito |
|
Back to top |
|
 |
KyoKu n00b

Joined: 21 Aug 2003 Posts: 23
|
Posted: Sun Aug 24, 2003 8:35 pm Post subject: |
|
|
Tutto uguale:
cat /etc/pam.d/system-auth
#%PAM-1.0
auth required /lib/security/pam_env.so
auth sufficient /lib/security/pam_unix.so likeauth nullok
auth required /lib/security/pam_deny.so
account required /lib/security/pam_unix.so
password required /lib/security/pam_cracklib.so retry=3
password sufficient /lib/security/pam_unix.so nullok md5 shadow use_authtok
password required /lib/security/pam_deny.so
session required /lib/security/pam_limits.so
session required /lib/security/pam_unix.so |
|
Back to top |
|
 |
shev Bodhisattva


Joined: 03 Feb 2003 Posts: 4084 Location: Italy
|
Posted: Sun Aug 24, 2003 10:02 pm Post subject: |
|
|
Scusami la domanda sicuramente banale, ma riesci a fare il login direttamente da root (senza passare da su)? _________________ Se per vivere ti dicono "siediti e stai zitto" tu alzati e muori combattendo |
|
Back to top |
|
 |
Ginko Guru


Joined: 01 May 2002 Posts: 371 Location: nearby my linux laptop
|
Posted: Mon Aug 25, 2003 1:15 pm Post subject: |
|
|
KyoKu wrote: | Ggrazie per l'aiuto.^_^
Ho provato a creare l'alias [..] ma continua a darmi lo stesso errore. :\ |
Cioe' anche con il comando Code: | ssh -l root localhost | non riesci a loggarti come root?
--Gianluca |
|
Back to top |
|
 |
KyoKu n00b

Joined: 21 Aug 2003 Posts: 23
|
Posted: Mon Aug 25, 2003 5:43 pm Post subject: |
|
|
Mi da il seguente errore:
kyoku@kof log $ ssh -l root kof
ssh: connect to host kof port 22: Connection refused
Da root riesco a fare il login in modo corretto. |
|
Back to top |
|
 |
neon l33t


Joined: 04 Aug 2003 Posts: 759 Location: Catania, Italy, Europe
|
Posted: Mon Aug 25, 2003 6:37 pm Post subject: |
|
|
KyoKu wrote: | Mi da il seguente errore:
kyoku@kof log $ ssh -l root kof
ssh: connect to host kof port 22: Connection refused |
Questo dipende solo dal fatto che non hai installato un server ssh, non c'entra con i problemi di su _________________ Io credo che le tecnologie siano moralmente neutrali fino a quando non le utilizziamo - William Gibson
LINEE GUIDA DEL FORUM |
|
Back to top |
|
 |
fedeliallalinea Administrator


Joined: 08 Mar 2003 Posts: 31492 Location: here
|
Posted: Mon Aug 25, 2003 6:46 pm Post subject: |
|
|
KyoKu wrote: | Mi da il seguente errore:
kyoku@kof log $ ssh -l root kof
ssh: connect to host kof port 22: Connection refused |
Qua devi fare
Code: | /etc/init.d/sshd start |
_________________ Questions are guaranteed in life; Answers aren't. |
|
Back to top |
|
 |
KyoKu n00b

Joined: 21 Aug 2003 Posts: 23
|
Posted: Tue Aug 26, 2003 12:30 am Post subject: |
|
|
Vi ringrazio, installando il server ssh (di cui ignoravo il funzionamento) riesco ad eseguire correttamente il login a rood da utente.
Grazie ancora a tutti per l'aiuto.
KyoKu |
|
Back to top |
|
 |
|