-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Greetings to everyone.

I'm trying to migrate about 90 linux user accounts to /etc/samba/smbpasswd 
using pam_smbpass. As mentioned in the Samba3-HOWTO, I've modified 
the /etc/pam.d/system-auth file as follows:

*******************************************************
#%PAM-1.0
# This file is auto-generated.
# User changes will be destroyed the next time authconfig is run.
auth        required      pam_env.so
auth        sufficient    pam_unix.so nullok try_first_pass
auth        requisite     pam_succeed_if.so uid >= 500 quiet
auth        optional      pam_smbpass.so migrate
auth        required      pam_deny.so

account     required      pam_unix.so
account     sufficient    pam_succeed_if.so uid < 500 quiet
account     required      pam_permit.so

password    requisite     pam_cracklib.so try_first_pass retry=3
password    sufficient    pam_unix.so md5 shadow nullok try_first_pass 
use_autht ok
password optional pam_smbpass.so nullok use_authtok try_first_pass
password    required      pam_deny.so

session     required      pam_limits.so
session     required      pam_unix.so
*******************************************************

But this seems to do the opposite of what I would like it to do. Instead of 
adding the user to smbpasswd whenever a user authenticates successfully, the 
script adds a user to the smbpasswd file when user authentication fails!

I'm no wizard in the secrets of PAM and would be grateful to someone who could 
point out where I'm blotching things up.

FWIW, I'm using a Fedora Core 6 box with all current updates applied.

Thank you.

- --Vinu.
-----BEGIN PGP SIGNATURE-----

iD8DBQFFWyO2fQe5A1YbfuURAn8fAKCpCWjHejXOFi1POKfeIao+6XJe4ACg38bJ
0WsbAu3/YuuoVnPUEGWkN8M=
=ZdE5
-----END PGP SIGNATURE-----

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
linux-india-help mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-india-help

Reply via email to