Koozali.org: home of the SME Server
Obsolete Releases => SME Server 7.x => Topic started by: Alex Schaft on April 16, 2009, 04:13:14 PM
-
Hi,
I remotely restored via tar a server. Now smbd is logging Permission denied errors in /var/log/messages for the home folders. I've checked that the user name on the home folder is correct, and that the numeric id's match too.
Furthermore, mail doesn't get delivered either, and lpd is complaining about not being able to access /etc/printcap.
I'm sure all of these are related, but I'm not sure how to fix this. I've done restores like this before without any problems. Should I reinstall the server and restore from scratch? I wouldn't want to lose the mail currently queued if at all possible
Alex
EDIT:
I just noticed that a regular user can't resolve user id's to names
-
Sorted it out. Added o+rx to /etc and /home and all was well. Not sure why the backup removed those...
-
This may be a bug in the restore and/or backup process. Could you please file a bug report so an investigation can take place? Thanks.
-
I remotely restored via tar a server
can you please explain exactly what you did?
I suspect you missed the -p option in tar command
Ciao
Stefano
-
This was done from a second SME server running BackupPC. The -p was present though
-
ok.. let's go on..
- tar created by backuppc
- untarred with -p option
what did the tar contain? I mean, what files/dir? cfr here (http://wiki.contribs.org/Backup_server_config#Manually_transferring_configuration_information)
Ciao
Stefano
-
ok.. let's go on..
- tar created by backuppc
- untarred with -p option
what did the tar contain? I mean, what files/dir? cfr here (http://wiki.contribs.org/Backup_server_config#Manually_transferring_configuration_information)
Ciao
Stefano
Below an extract of the backuppc configuration. I read up on the wiki as to what is needed:
$Conf{BackupFilesOnly} = {
'/' => [
'/etc/smbpasswd',
'/etc/samba/smbpasswd',
'/etc/samba/secrets.tdb',
'/etc/gshadow',
'/etc/group',
'/etc/shadow',
'/etc/passwd',
'/etc/sudoers',
'/root',
'/etc/ssh',
'/etc/e-smith/templates-user-custom',
'/etc/e-smith/templates-custom',
'/home/e-smith'
]
};