Koozali.org: home of the SME Server

Restored server permissions problem

Offline Alex Schaft

  • ****
  • 97
  • +0/-0
Restored server permissions problem
« 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
« Last Edit: April 16, 2009, 04:32:18 PM by Alex Schaft »
......

Offline Alex Schaft

  • ****
  • 97
  • +0/-0
Re: Restored server permissions problem
« Reply #1 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...
......

Offline David Harper

  • *
  • 653
  • +0/-0
  • Watch this space
    • Workgroup Technology Solutions
Re: Restored server permissions problem
« Reply #2 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.

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: Restored server permissions problem
« Reply #3 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

Offline Alex Schaft

  • ****
  • 97
  • +0/-0
Re: Restored server permissions problem
« Reply #4 on: April 18, 2009, 10:40:50 AM »
This was done from a second SME server running BackupPC. The -p was present though
......

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: Restored server permissions problem
« Reply #5 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

Ciao
Stefano

Offline Alex Schaft

  • ****
  • 97
  • +0/-0
Re: Restored server permissions problem
« Reply #6 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

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'
  ]
};
......