[Samba] Login Script Log

Rowland penny rpenny at samba.org
Fri Dec 13 10:19:51 UTC 2019


On 13/12/2019 09:50, basti via samba wrote:
> Hello,
>
> i have a bit more complex login script. This script add common-shares,
> user shares, set some settings on firefox profile and so on.
>
> Sometimes it is working well, sometimes some shares are missing. is
> there a simple way to log all the events of the script to a logfile?
>
> like this in bash?
>
> #
> http://serverfault.com/questions/103501/how-can-i-fully-log-all-bash-scripts-actions
>
> exec 3>&1 4>&2
> exec 1>>/root/logfile.log 2>&1
>
This all depends on what the script is written in and where it runs.

Rowland





More information about the samba mailing list