GSoC: Community bonding questions
Alexander Bokovoy
ab at samba.org
Fri May 22 09:32:11 UTC 2020
On to, 21 touko 2020, hezekiah maina wrote:
> G'day everyone,
>
> Please correct me if I am wrong. So when you provision an AD DC using the
> samba-tool command line utility the following files are created or modified:
> smb.conf
> *.ldb / *.tdb
> krb5.conf
> resolv.conf
> /etc/hosts
>
> Are there any other files that Samba creates or changes?
I don't remember the full list but you can generate a difference by
using 'find' command with -newer check:
- touch a file before running samba-tool on a system
- run samba-tool ...
- run find after running samba-tool on a new system
For example, create a reference point by creating an empty file:
# touch /root/timestamp
Run samba-tool and then run 'find' to see files in /var, /etc, /tmp that
were newer than the reference file:
# find /var /etc /tmp -newer /root/timestamp -fls /root/list
The /root/list file will contain an output of everything that was
created or changed since the /root/timestamp file was created. It will
have some cahnges unrealted to samba-tool because other applications run
on the system anyway (for example, there might be a journal update) but
it should be able to capture all changes done to files by samba-tool.
For example, on my desktop system, when I ran the test above, without
running samba-tool, just 'touch' and then 'find', the resulting content
of /root/list was
538817386 12 drwx------ 2 root root 8192 touko 22 12:21 /var/lib/NetworkManager
569212108 12 -rw-r--r-- 1 root root 9184 touko 22 12:21 /var/lib/NetworkManager/timestamps
24183816 24580 -rw-r----- 1 root systemd-journal 25165824 touko 22 12:20 /var/log/journal/93d3bf53b5f243388193a0c43a1dba1f/user-1000.journal
So, there was some activity from NetworkManager and a systemd-journal
wrote some entries into a user-specific journal, most likely because
some of applications in my desktop session produced some background
'noise'.
We can filter out those unrelated changes manually.
This output corresponds using 'ls -dils', you can see definitions of
options in 'man ls'.
--
/ Alexander Bokovoy
More information about the samba-technical
mailing list