Can anyone tell me exactly how the various add machine/user/group/etc/ scripts work in Samba? I know how to set them up in smb.conf. That's not problem. But how are they invoked? Some use Samba specific variables like %u and %m. How do you run a script manually to use these variables? If you have an add user script and a non-user tries to log in, does it create an account for him? If you have an add machine script and the user attempts to log in from a previously non-registered machine, does it automatically add that machine to the mix? Thanks for ideas, Michael
Felipe Augusto van de Wiel
2005-Nov-07 13:01 UTC
[Samba] Add machine, user, group, etc. scripts
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Michael Barnes escreveu:> Can anyone tell me exactly how the various add machine/user/group/etc/ > scripts work in Samba? I know how to set them up in smb.conf. That's > not problem. But how are they invoked? Some use Samba specific > variables like %u and %m. How do you run a script manually to use these > variables?Michael, I'm afraid that I don't understand your question quite well, do you want to understand the invoke at "source level"? Did you try to take a look to samba source to check that?> If you have an add user script and a non-user tries to log in, does it > create an account for him?Yep. :)> If you have an add machine script and the user attempts to log in from a > previously non-registered machine, does it automatically add that > machine to the mix?Yep! :)> Thanks for ideas,You are very welcome, best regards. - -- Felipe Augusto van de Wiel <felipe@paranacidade.org.br> Coordenadoria de Tecnologia da Informa??o (CTI) - SEDU/PARANACIDADE http://www.paranacidade.org.br/ Phone: (+55 41 3350 3300) -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (GNU/Linux) Comment: Using GnuPG with Debian - http://enigmail.mozdev.org iD8DBQFDb1CLCj65ZxU4gPQRAmuEAKCk6UWEevjdux0rZ7AJllQUbiIpsACcD32b Bdn15w4+5LuyGb2WrlpmsiM=NNNM -----END PGP SIGNATURE-----