I moved the original user home folder and created a new folder with 777 rights. This time I have been able to access the folder. After this I created a file in this new user home folder and the weird thing is, that this file has a complete different UID. Originally the user has 2062 but the file that have been created via smb has 3000024.
I found the following thread in this forum and checked ldbedit -e vi -H /var/lib/samba/private/idmap.ldb
but the user looks good. I am wondering why the mapping is made to uid 3000024.
# record 40
dn: CN=S-1-5-21-239385056-1278794407-800825067-1173
objectClass: sidMap
type: ID_TYPE_UID
xidNumber: 2062
cn: S-1-5-21-239385056-1278794407-800825067-1173
objectSid: S-1-5-21-239385056-1278794407-800825067-1173
distinguishedName: CN=S-1-5-21-239385056-1278794407-800825067-1173
# record 74
dn: CN=S-1-5-21-239385056-1278794407-800825067-1242
cn: S-1-5-21-239385056-1278794407-800825067-1242
objectClass: sidMap
objectSid: S-1-5-21-239385056-1278794407-800825067-1242
type: ID_TYPE_BOTH
xidNumber: 3000024
distinguishedName: CN=S-1-5-21-239385056-1278794407-800825067-1242
The UID 1242 does not exist in the LDAP. So where is this coming from?