Once the user disconnects from the share, the command specified with
postexec
is run as the user on the Samba server to do any necessary cleanup. This option is essentially the same as the
preexec
option. Again, remember that the command is run as the user represented by
%u
and any information sent to standard output will be ignored.