[Samba] Samba PDC
adam at morrison-ind.com
Thu Oct 23 20:46:38 GMT 2003
Your subject line isn't very appropriate to the question.
> Hi all. how can i do to run a sript in a Samba PDC
> server (Redhat 9.0, Samba 3.0) each time that someboy
> connects to a share on the server from a client? The
> script is a shell script. IT IS NOT THE LOGON SCRIPT.
> I tried with some parameters like exec, preexec and
> root preexec, but i got nothing. this is the script:
You were correct, it is "preexec"
This option specifies a command to be run whenever
the service is connected to. It takes the usual
An interesting example is to send the users a wel
come message every time they log in. Maybe a mes
sage of the day?
> for i in `cat /etc/group |grep $1 | cut -d: -f1` ; do
> touch /home/$1/._$i
Something else must be wrong as it does work. Check your file
permissions, path, etc... Remember a script executed there may not have
the same environment as you executing it as you.
More information about the samba