[Samba] Samba PDC and User Management with Perl scripts
unicoletti at arpa.veneto.it
Wed Feb 20 00:16:09 GMT 2002
thanks for your answer.
thomas_tiedtke at de.schindler.com wrote:
> Hi Umberto,
> the simply way is to make a share with use of the group (%G)
> substitution. A path=/groups/%G will give you /groups/<primary
> groupname of user (%U)> ... it´s work like the homes section.
My problem is that alla users have primary group set to users or
something like that, so it doesn't help much.
> A another way is a "root preexec=<shell script> %U %G ...." for the
> netlogon share to generate the netlogon scripts for the clients. This
> script must generate a client style bat or cmd file like
> <username>.cmd , which was called by the "logon script=<username>.cmd"
> Like: netlogon LOGONSERVER\<Group_Share>
> and so on ...
> The netlogon script must have CR LF at any end of a line!
But would it be generated in time for the client to read it?
Also this does not sound portable...I mean in a pure (well, actually it
is polluted by M$ itself) NT environment user and group enum would work,
hence also my script would.
Anyway it's better than nothing...
I think I'll simply create logon scripts periodically out of a cron job
with a shell script or so, so that each user gets its custom logon
script which is spawned from the main logon.bat that is set for eveybody
at domain level.
> I hope, it help´s!
Sure it did,
> Regards, Thomas
Umberto Nicoletti - unicoletti at arpa.veneto.it | sysmaster at arpa.veneto.it
Tel. 049-8239380 (assistenza)
"We'll try to make different mistakes this time." - Larry Wall
More information about the samba