I'm setting up BackupPC on a server and it uses smbclient to backup Windows 7 workstations.
smbclient logs in correctly to \\TESTHOST\C$ as TESTDOMAIN\backupoperator (Which is also a domain admin and a "Backup Operator" on the TESTHOST) but returns NT_STATUS_ACCESS_DENIED on directories within user home directories such as "My Documents" and "Desktop" etc. despite being able to list, read/open said directories and it's contents using an actual Windows client logged in with the same credentials. Everything else appears accessible.
Extract of BackupPC log:
NT_STATUS_ACCESS_DENIED listing \Users\testuser\Local Settings\*
NT_STATUS_ACCESS_DENIED listing \Users\testuser\My Documents\*
NT_STATUS_ACCESS_DENIED listing \Users\testuser\NetHood\*
NT_STATUS_ACCESS_DENIED listing \Users\testuser\PrintHood\*
NT_STATUS_ACCESS_DENIED listing \Users\testuser\Recent\*
NT_STATUS_ACCESS_DENIED listing \Users\testuser\SendTo\*
NT_STATUS_ACCESS_DENIED listing \Users\testuser\Start Menu\*
NT_STATUS_ACCESS_DENIED listing \Users\testuser\Templates\*
Same issue occurs when I just use smbclient straight from a shell and access it myself. Why is this happening? How can I fix this? Is this smbclient issue or a configuration issue on the Windows workstation?