[Samba] Fwd: RE: Welcome to the "samba" mailing list

Felipe Augusto van de Wiel felipe at paranacidade.org.br
Tue Oct 3 14:18:27 GMT 2006

Hash: SHA1

On 09/25/2006 03:05 PM, dimidivi escreveu:
> Hello, 


> I have a Solaris 10 machine (SunOS 5.10
> Generic_118833-18 sun4u sparc)
> installed with Samba Version 3.0.23a.
> Samba has been compiled from source with PAM modules. 
> The modules 'pam_smbpass.so' and 'pam_winbind.so'
> reside at: /usr/local/samba/lib/security
> smb.conf is located at /usr/local/samba/lib/
> We are talking about /etc/pam.conf, not /etc/pam.d/
> configuration with separate files. 
> The modules for pam.conf are in /usr/lib/security/$ISA
> (default).
> This is what I want: 
> Users have a unix shell and use a tool that exports
> the output to an CSV file on the samba share. 
> I'm forced to use password expiration. I would like
> the users to change their password only once. 
> Either by syncing the /etc/password or /etc/shadow
> file with the smbpassword file, or by just validating
> the samba login against the
> /etc/password or /etc/shadow file. I don't really
> care, as long as it works.

	LDAP is not an option?

	You can use 'unix passwd sync' and ask them to
use smbpasswd to change their password, it will do the
trick in the other way. Or you can do some "ninja magic"
to make the expiration date changes from time to time
(but it is not a real solution).

> I've been searching documentation, mail list archives,
> How-to's and man pages, I've tried with trial and
> error. I raised the debug levels for
> smbd and nmbd and checked the log files for hints,
> including the system log files. 
> I just cannot get it to work. The smbpasswd file
> remains unchanged after a password change. Am I just
> not understanding the concept here, or is
> there a simple thing I've forgotten or overlooking??

	Try the other way around, using smbpasswd to
change the samba password and get it in sync with unix

> Question: 
> What is the service name for samba to be used in
> pam.conf?? I assumed (and read her and there) it is
> 'samba'. But is it really?? 

	Yes. :)

	Did you read the PAM chapter in the Samba Official HOWTO?


> PAM describes the service name should stated in the
> man page of the service. This is not the case with
> smnd or nmbd (at least, I can't find it). 
> Below are some summaries from both pam.conf and
> smb.conf. Just the things I think that are related.
> But if someone need the whole thing, please let me
> know.
> Is there anyone who can help me?? I really need to
> get it working one way or another. 

	I hope this helps, I'm not using pam... I'm using LDAP.

> Many thanks for your effort. It's much appreciated!
> Dimitry

	Kind regards,

- --
Felipe Augusto van de Wiel <felipe at paranacidade.org.br>
Coordenadoria de Tecnologia da Informação (CTI) - SEDU/PARANACIDADE
http://www.paranacidade.org.br/           Phone: (+55 41 3350 3300)
Version: GnuPG v1.4.5 (GNU/Linux)
Comment: Using GnuPG with Debian - http://enigmail.mozdev.org


More information about the samba mailing list