> Jul 22 14:39:39 dc1 named[27846]: samba_dlz: Failed to connect to > /var/lib/samba/private/dns/sam.ldbThe good news is I believe I've found the problem: RUNNING: # file: samba/private # owner: root # group: root user::rwx group::r-x group:bind:r-x mask::r-x other::--- RESTORE: # file: samba/private # owner: root # group: root user::rwx group::r-x other::--- The bad news is everything under sysvol has the same problem. So I have over a hundred of permissions discrepancies to manually reconcile before I can attempt another roll back :( And, moving forward, I need to modify Bacula backup parameters.
On 23/07/19 11:15, Adam Weremczuk via samba wrote:> So I have over a hundred of permissions discrepancies to manually > reconcile before I can attempt another roll back :(The best way to clone permissions appears to be: getfacl -R samba > file setfacl --restore file samba Unfortunately I'm getting a bunch of errors on ACL restore: setfacl: samba/winbindd_privileged/pipe: No such file or directory setfacl: samba/ntp_signd/socket: No such file or directory setfacl: samba/private/smbd.tmp/msg/msg.0: No such file or directory setfacl: samba/private/smbd.tmp/msg/msg.27087: No such file or directory setfacl: samba/private/smbd.tmp/msg/msg.27089: No such file or directory setfacl: samba/private/smbd.tmp/msg/msg.27084: No such file or directory setfacl: samba/private/smbd.tmp/msg/msg.27090: No such file or directory setfacl: samba/private/smbd.tmp/msg/msg.27083: No such file or directory setfacl: samba/private/smbd.tmp/msg/msg.27088.30: No such file or directory setfacl: samba/private/smbd.tmp/msg/msg.27082: No such file or directory setfacl: samba/private/smbd.tmp/msg/msg.27088: No such file or directory setfacl: samba/private/smbd.tmp/msg/msg.27091: No such file or directory setfacl: samba/private/smbd.tmp/msg/msg.27079: No such file or directory setfacl: samba/private/smbd.tmp/msg/msg.27084.29: No such file or directory setfacl: samba/private/smbd.tmp/msg/msg.27085: No such file or directory setfacl: samba/private/smbd.tmp/msg/msg.27086: No such file or directory setfacl: samba/private/smbd.tmp/msg/msg.27080: No such file or directory setfacl: samba/private/ldapi: No such file or directory setfacl: samba/private/ldap_priv/ldapi: No such file or directory None of these are regular files or folders as they haven't been picked up by "find -type f -o -type d". QUESTION: Do I need any of the above in the samba restored folder before starting samba?
On 23/07/2019 13:17, Adam Weremczuk via samba wrote:> On 23/07/19 11:15, Adam Weremczuk via samba wrote: > >> So I have over a hundred of permissions discrepancies to manually >> reconcile before I can attempt another roll back :( > > The best way to clone permissions appears to be: > > getfacl -R samba > file > setfacl --restore file samba > > Unfortunately I'm getting a bunch of errors on ACL restore: > > setfacl: samba/winbindd_privileged/pipe: No such file or directory > setfacl: samba/ntp_signd/socket: No such file or directory > setfacl: samba/private/smbd.tmp/msg/msg.0: No such file or directory > setfacl: samba/private/smbd.tmp/msg/msg.27087: No such file or directory > setfacl: samba/private/smbd.tmp/msg/msg.27089: No such file or directory > setfacl: samba/private/smbd.tmp/msg/msg.27084: No such file or directory > setfacl: samba/private/smbd.tmp/msg/msg.27090: No such file or directory > setfacl: samba/private/smbd.tmp/msg/msg.27083: No such file or directory > setfacl: samba/private/smbd.tmp/msg/msg.27088.30: No such file or > directory > setfacl: samba/private/smbd.tmp/msg/msg.27082: No such file or directory > setfacl: samba/private/smbd.tmp/msg/msg.27088: No such file or directory > setfacl: samba/private/smbd.tmp/msg/msg.27091: No such file or directory > setfacl: samba/private/smbd.tmp/msg/msg.27079: No such file or directory > setfacl: samba/private/smbd.tmp/msg/msg.27084.29: No such file or > directory > setfacl: samba/private/smbd.tmp/msg/msg.27085: No such file or directory > setfacl: samba/private/smbd.tmp/msg/msg.27086: No such file or directory > setfacl: samba/private/smbd.tmp/msg/msg.27080: No such file or directory > setfacl: samba/private/ldapi: No such file or directory > setfacl: samba/private/ldap_priv/ldapi: No such file or directory > > None of these are regular files or folders as they haven't been picked > up by "find -type f -o -type d". > > QUESTION: Do I need any of the above in the samba restored folder > before starting samba? > >No, you only need the .ldb and .tdb files Your problems stem from using an unsupported (by Samba) backup system. I am going to send you a couple of bash scripts, I haven't used them in sometime, but I hope they can help you identify what you actually need to backup and what to restore. Rowland