Thank you very much for your reply. I understand what you mean.
When I run whoami through anisble, the launching user and the user show that it is on and SeTcbPrivilege = enable and SeDebugPrivilege=enable
There is some software and I can only install it this way:
1. I log on to the windows computer myself - I am in the domain administrator group. (I am the one who starts the Ansible)
2. I open samba share and right click on the launcher and select run as administrator.
This is the only way it works correctly.
But for some reason as soon as I set up a system user in the ansiblel I can't copy anything from samba share.
In samba logs all the time it says that :
[2023/05/25 23:22:28.105807, 0] ../../source3/auth/auth_util.c:1889(check_account)
check_account: Failed to convert SID S-1-5-21-1374489729-2609897191-470403182-4723 to a UID (dom_user[AD\vm-win81-1$])
If I look on my computer with samba, I see
wbinfo -s S-1-5-21-1374489729-2609897191-470403182-4723
AD\VM-WIN81-1$ 1
But when I change the ansible to 2.7, there is no such error.
That's right, users have UID but computers don't.