Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Problema con 'su'
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

Goto page 1, 2, 3  Next  
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian)
View previous topic :: View next topic  
Author Message
KyoKu
n00b
n00b


Joined: 21 Aug 2003
Posts: 23

PostPosted: Thu Aug 21, 2003 7:13 pm    Post subject: Problema con 'su' Reply with quote

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
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 30966
Location: here

PostPosted: Thu Aug 21, 2003 7:21 pm    Post subject: Reply with quote

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
View user's profile Send private message
KyoKu
n00b
n00b


Joined: 21 Aug 2003
Posts: 23

PostPosted: Thu Aug 21, 2003 7:55 pm    Post subject: Reply with quote

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
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 30966
Location: here

PostPosted: Thu Aug 21, 2003 8:08 pm    Post subject: Reply with quote

Mi scuso con KyoKu ho capito male il problema. Chiedo scusa ho sbagliato.
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
Ginko
Guru
Guru


Joined: 01 May 2002
Posts: 371
Location: nearby my linux laptop

PostPosted: Fri Aug 22, 2003 7:26 am    Post subject: Re: Problema con 'su' Reply with quote

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
View user's profile Send private message
morellik
l33t
l33t


Joined: 03 Feb 2003
Posts: 629
Location: Firenze

PostPosted: Fri Aug 22, 2003 8:10 am    Post subject: Reply with quote

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
View user's profile Send private message
dnix
Apprentice
Apprentice


Joined: 17 Jun 2003
Posts: 271
Location: Italy

PostPosted: Fri Aug 22, 2003 9:12 am    Post subject: Reply with quote

l'utente in questione fa parte del gruppo wheel?
Back to top
View user's profile Send private message
shev
Bodhisattva
Bodhisattva


Joined: 03 Feb 2003
Posts: 4084
Location: Italy

PostPosted: Fri Aug 22, 2003 9:34 am    Post subject: Reply with quote

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 :lol:

(per un consiglio aspetto che KyoKu ci dica se i consigli di morellik e degli altri hanno risolto il problema :P )
_________________
Se per vivere ti dicono "siediti e stai zitto" tu alzati e muori combattendo
Back to top
View user's profile Send private message
dnix
Apprentice
Apprentice


Joined: 17 Jun 2003
Posts: 271
Location: Italy

PostPosted: Fri Aug 22, 2003 9:38 am    Post subject: Reply with quote

hai ragione scusa :oops:
dovrei imparare a leggere tutto prima di rispondere
Back to top
View user's profile Send private message
shev
Bodhisattva
Bodhisattva


Joined: 03 Feb 2003
Posts: 4084
Location: Italy

PostPosted: Fri Aug 22, 2003 9:55 am    Post subject: Reply with quote

dnix wrote:
hai ragione scusa :oops:
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 :lol: (scherzo ovviamente ;) )
_________________
Se per vivere ti dicono "siediti e stai zitto" tu alzati e muori combattendo
Back to top
View user's profile Send private message
bsolar
Bodhisattva
Bodhisattva


Joined: 12 Jan 2003
Posts: 2764

PostPosted: Fri Aug 22, 2003 12:21 pm    Post subject: Reply with quote

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
View user's profile Send private message
KyoKu
n00b
n00b


Joined: 21 Aug 2003
Posts: 23

PostPosted: Fri Aug 22, 2003 7:58 pm    Post subject: Reply with quote

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
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 30966
Location: here

PostPosted: Fri Aug 22, 2003 8:24 pm    Post subject: Reply with quote

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
View user's profile Send private message
cerri
Bodhisattva
Bodhisattva


Joined: 05 Mar 2003
Posts: 2957
Location: # init S

PostPosted: Sat Aug 23, 2003 7:47 am    Post subject: Reply with quote

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
View user's profile Send private message
KyoKu
n00b
n00b


Joined: 21 Aug 2003
Posts: 23

PostPosted: Sun Aug 24, 2003 4:29 pm    Post subject: Reply with quote

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
View user's profile Send private message
cerri
Bodhisattva
Bodhisattva


Joined: 05 Mar 2003
Posts: 2957
Location: # init S

PostPosted: Sun Aug 24, 2003 5:16 pm    Post subject: Reply with quote

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
View user's profile Send private message
KyoKu
n00b
n00b


Joined: 21 Aug 2003
Posts: 23

PostPosted: Sun Aug 24, 2003 6:01 pm    Post subject: Reply with quote

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
View user's profile Send private message
cerri
Bodhisattva
Bodhisattva


Joined: 05 Mar 2003
Posts: 2957
Location: # init S

PostPosted: Sun Aug 24, 2003 6:22 pm    Post subject: Reply with quote

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
View user's profile Send private message
KyoKu
n00b
n00b


Joined: 21 Aug 2003
Posts: 23

PostPosted: Sun Aug 24, 2003 8:35 pm    Post subject: Reply with quote

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
View user's profile Send private message
shev
Bodhisattva
Bodhisattva


Joined: 03 Feb 2003
Posts: 4084
Location: Italy

PostPosted: Sun Aug 24, 2003 10:02 pm    Post subject: Reply with quote

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
View user's profile Send private message
Ginko
Guru
Guru


Joined: 01 May 2002
Posts: 371
Location: nearby my linux laptop

PostPosted: Mon Aug 25, 2003 1:15 pm    Post subject: Reply with quote

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
View user's profile Send private message
KyoKu
n00b
n00b


Joined: 21 Aug 2003
Posts: 23

PostPosted: Mon Aug 25, 2003 5:43 pm    Post subject: Reply with quote

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
View user's profile Send private message
neon
l33t
l33t


Joined: 04 Aug 2003
Posts: 759
Location: Catania, Italy, Europe

PostPosted: Mon Aug 25, 2003 6:37 pm    Post subject: Reply with quote

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
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 30966
Location: here

PostPosted: Mon Aug 25, 2003 6:46 pm    Post subject: Reply with quote

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
View user's profile Send private message
KyoKu
n00b
n00b


Joined: 21 Aug 2003
Posts: 23

PostPosted: Tue Aug 26, 2003 12:30 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian) All times are GMT
Goto page 1, 2, 3  Next
Page 1 of 3

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum