Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
che pass mette Emerge agli utenti che crea?
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian)
View previous topic :: View next topic  
Author Message
Naspe
Guru
Guru


Joined: 10 Dec 2003
Posts: 321
Location: Genova - Italy

PostPosted: Thu Apr 15, 2004 1:57 pm    Post subject: che pass mette Emerge agli utenti che crea? Reply with quote

Dovrei eseguire uno script, qmail-scanner-queue.pl, come utente qmaild.
Ho provato a fare
Code:
su qmaild
ma mi chiede la pass e io nn la so.
Posso, da utente root, settarne una o si incasina di tutto di piu?
_________________
God Is Real... Unless Declared As Integer...

Provoca Il Più Bravo... Morirai Come Uno Schiavo!!!

Hai Evocato Il Tuono!!! Ora Raccogli Tempesta!!!
Back to top
View user's profile Send private message
MyZelF
Bodhisattva
Bodhisattva


Joined: 25 Feb 2003
Posts: 2010
Location: Venice, Italy

PostPosted: Thu Apr 15, 2004 2:12 pm    Post subject: Reply with quote

con
Code:
# passwd <utente>

cambi la password a chi vuoi. Comunque se fai il su da root ad altro utente non ti chiede la password.

E se setti il proprietario dello script a qmaild e gli dai il SUID?
_________________
"Larry the Cow was a bit frustrated at the current state of Linux Distributions..."
Back to top
View user's profile Send private message
Naspe
Guru
Guru


Joined: 10 Dec 2003
Posts: 321
Location: Genova - Italy

PostPosted: Thu Apr 15, 2004 2:26 pm    Post subject: Reply with quote

Ok ho fatto su da root ma nn cambia utente... è possibile che sia xchè qmaild nn ha di shell?

Io devo solo fare una prova... che faccio? do una shell a qmaild e poi gliela levo? Per fare cio modifico a mano il file /etc/passwd ok?
_________________
God Is Real... Unless Declared As Integer...

Provoca Il Più Bravo... Morirai Come Uno Schiavo!!!

Hai Evocato Il Tuono!!! Ora Raccogli Tempesta!!!
Back to top
View user's profile Send private message
MyZelF
Bodhisattva
Bodhisattva


Joined: 25 Feb 2003
Posts: 2010
Location: Venice, Italy

PostPosted: Thu Apr 15, 2004 2:48 pm    Post subject: Reply with quote

Naspe wrote:
è possibile che sia xchè qmaild nn ha di shell?


Molto possibile, praticamente certo... ;)

Puoi fare anche come ti ho proposto sopra:

Code:
# chown qmaild tuoscript
# chmod u+s tuoscript


Oppure ancora puoi usare sudo.
_________________
"Larry the Cow was a bit frustrated at the current state of Linux Distributions..."
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
Page 1 of 1

 
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