Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
samba + pdc non cambia le password
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
Atomikramp
Apprentice
Apprentice


Joined: 27 Sep 2004
Posts: 200

PostPosted: Fri Dec 10, 2004 2:04 am    Post subject: samba + pdc non cambia le password Reply with quote

Ho recentemente ritirato up il mio serverino di rete e come di consueto ho rimesso up il mio controller di dominio per la mia piccola rete di casa..

il problema è che quando mi loggo con un utente del dominio non riesco a cambiargli la password... perchè mi dice che l'utente non ha il permesso...

la cosa è anche abbastanza curiosa perchè all'interno del file di configurazione di samba ho inserito un piccolo script per sincronizzare le password con quelle del sistema....
e indovinate un po'?
la password di sistema la cambia!

ora mi chiedo.. secondo voi in che cosa può consistere il problema?
Back to top
View user's profile Send private message
fat_penguin
Apprentice
Apprentice


Joined: 25 Jul 2004
Posts: 294
Location: sud side of Switzerland

PostPosted: Fri Dec 10, 2004 6:43 am    Post subject: Reply with quote

Ma usi smbpasswd per cambiare la password? Non devi forse rigenerare le password di samba dopo che vengono cambiate sul sistema?

byebye
fat_penguin
Back to top
View user's profile Send private message
Atomikramp
Apprentice
Apprentice


Joined: 27 Sep 2004
Posts: 200

PostPosted: Fri Dec 10, 2004 12:46 pm    Post subject: Reply with quote

o abilitato l'opzione Unix Password Sync..... ma non va
:(
Back to top
View user's profile Send private message
fat_penguin
Apprentice
Apprentice


Joined: 25 Jul 2004
Posts: 294
Location: sud side of Switzerland

PostPosted: Fri Dec 10, 2004 1:33 pm    Post subject: Reply with quote

Atomikramp wrote:
o abilitato l'opzione Unix Password Sync..... ma non va
:(

Posta lo script... magari da li si cava qualcosa.

fat_penguin
Back to top
View user's profile Send private message
Atomikramp
Apprentice
Apprentice


Joined: 27 Sep 2004
Posts: 200

PostPosted: Fri Dec 10, 2004 6:05 pm    Post subject: Reply with quote

ti posto tutto il file di configurazione :) faccio prima

Code:

[global]
   workgroup = CASA
   netbios name = Server
   server string = Samba PDC - Versione %v
   socket options = TCP_NODELAY IPTOS_LOWDELAY SO_SNDBUF=8192 SO_RCVBUF=8192
   os level = 64
   preferred master = yes
   local master = yes
   domain master = yes
   security = user
   encrypt passwords = yes
   domain logons = yes
   add machine script = /usr/sbin/useradd -d /dev/null -g machines -s /bin/false -M %u
   log file = /var/log/samba/log.%m
   log level = 2
   max log size = 50
   logon home = \\%L\%U\.profile
   logon path = \\%L\profiles\%U
   logon drive = H:
   unix password sync = yes
   passwd program = /usr/bin/passwd %u
   passwd chat = *New*UNIX*password* %n\n *Retype*new*UNIX*password* %n\n *Enter* new*UNIX*password* %n\n *Retype*new*UNIX*password* %n\n *passwd: *all* authentication*tokens*updated*successfully*

[homes]
   comment = Home Directory
   browsable = no
   writeable = yes

[profiles]
   path = /home/profiles
   writeable = yes
   browsable = no
   create mask = 0600
   directory mask = 0700

[netlogon]
   path = /home/netlogon
   read only = yes
   write lost = @admin
   browsable = no

Back to top
View user's profile Send private message
fat_penguin
Apprentice
Apprentice


Joined: 25 Jul 2004
Posts: 294
Location: sud side of Switzerland

PostPosted: Sat Dec 11, 2004 9:47 am    Post subject: Reply with quote

Stano...
Ti consiglio di fare questo test:
Code:

testparm /etc/samba/smb.conf

e vedi se ti da qualche errore.
Inoltre controlla nei log se al momento del tentativo di cambiamento delle password ti ritorna qualche errore.

Ho trovato sul sito ufficiale di samba questa parte riguardante la sincronizzazione delle password: http://us1.samba.org/samba/docs/man/Samba-HOWTO-Collection/pam.html#id2585126
magari trovi qualche spunto interessante.

Ma hai la necessità di tenere sincronizzate le password di sistema con quelle di samba? Se no puoi optare per smbpasswd per il cambiamento di pass...

byebye
fat_penguin
Back to top
View user's profile Send private message
Atomikramp
Apprentice
Apprentice


Joined: 27 Sep 2004
Posts: 200

PostPosted: Sat Dec 11, 2004 12:01 pm    Post subject: Reply with quote

diciamo che non è che ne ho la necessità.... ma è una cosa che può far comodo
inoltre il problema non è sulla sincronia ( penso ) ma sul fatto che non mi cambia quelle di samba
perchè quella di sistema risulta cambiata
se faccio change password da una workstation winxp

cmq ecco il risultato di testparm

Code:

 # testparm smb.conf
Load smb config files from smb.conf
Processing section "[homes]"
Processing section "[profiles]"
Processing section "[netlogon]"
Loaded services file OK.
ERROR: the 'passwd program' (/usr/bin/passwd %u) requires a '%u' parameter.
Server role: ROLE_DOMAIN_PDC
Press enter to see a dump of your service definitions



Last edited by Atomikramp on Sat Dec 11, 2004 12:05 pm; edited 1 time in total
Back to top
View user's profile Send private message
fat_penguin
Apprentice
Apprentice


Joined: 25 Jul 2004
Posts: 294
Location: sud side of Switzerland

PostPosted: Sat Dec 11, 2004 12:04 pm    Post subject: Reply with quote

hai fatto i test che ti ho detto e hai seguito la guida sul sito ufficiale di samba?

fat_penguin
Back to top
View user's profile Send private message
Atomikramp
Apprentice
Apprentice


Joined: 27 Sep 2004
Posts: 200

PostPosted: Sat Dec 11, 2004 12:09 pm    Post subject: Reply with quote

accidenti non mi aspettavo una risposta così repentina
tuttavia ho postato il log sopra editando il post per non spammare....
per quanto riguarda i Log non mi da errori di alcun genere
Back to top
View user's profile Send private message
fat_penguin
Apprentice
Apprentice


Joined: 25 Jul 2004
Posts: 294
Location: sud side of Switzerland

PostPosted: Sat Dec 11, 2004 12:22 pm    Post subject: Reply with quote

Da quel che ho letto di volata su internet sembrerebbe un errore conosciuto della versione 3.0.8 di samba.

Fai un
Code:
etcat -v samba
e vedi se stai usando proprio quella...

(( etcat è un comando del pacchetto app-portage/gentoolkit ))

byebye
fat_penguin
Back to top
View user's profile Send private message
Atomikramp
Apprentice
Apprentice


Joined: 27 Sep 2004
Posts: 200

PostPosted: Sat Dec 11, 2004 12:42 pm    Post subject: Reply with quote

sono sicuro di avere la 3.0.8
l'ho emersa qualche giorno fa
Back to top
View user's profile Send private message
fat_penguin
Apprentice
Apprentice


Joined: 25 Jul 2004
Posts: 294
Location: sud side of Switzerland

PostPosted: Sat Dec 11, 2004 12:48 pm    Post subject: Reply with quote

Prova ad emergiare una versione piu recente...
Code:
ACCEPT_KEYWORDS=~x86 emerge =samba-3.0.9

in questa versione il problema dovrebbe essere stao risolto.

byebye
fat_penguin
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