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

Title: Restored server permissions problem
Post 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
Title: Re: Restored server permissions problem
Post by: Alex Schaft on April 16, 2009, 04:56:57 PM
Sorted it out. Added o+rx to /etc and /home and all was well. Not sure why the backup removed those...
Title: Re: Restored server permissions problem
Post by: David Harper on April 18, 2009, 09:43:22 AM
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.
Title: Re: Restored server permissions problem
Post by: Stefano on April 18, 2009, 09:55:36 AM
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
Title: Re: Restored server permissions problem
Post by: Alex Schaft on April 18, 2009, 10:40:50 AM
This was done from a second SME server running BackupPC. The -p was present though
Title: Re: Restored server permissions problem
Post by: Stefano on April 18, 2009, 10:56:16 AM
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
Title: Re: Restored server permissions problem
Post by: Alex Schaft on April 20, 2009, 08:02:16 AM
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:

Code: [Select]
$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'
  ]
};