You are not logged in.

#1 2014-10-15 12:41:48

Lockheed
Member
Registered: 2010-03-16
Posts: 1,522

Permission issues after restoring tar.gz / backup

I had a btrfs root partition issue on my server and I restored it from tar.gz backup with

 tar -zxvpf /fullbackup.tar.gz 

However, now I seem to have some strange issues. For example, when I try to run snapper to configure snapshots, I get:

Failure (org.freedesktop.DBus.Error.Spawn.PermissionsInvalid).

or trying to access user's crontab, I get:

You (malina) are not allowed to access to (crontab) because of pam configuration.

Also, mounting fusemounts as user no longer work:

fusermount: mount failed: Operation not permitted

What is causing that and is there a way to fix it?

Last edited by Lockheed (2014-10-16 08:56:09)

Offline

#2 2014-10-16 08:54:53

Lockheed
Member
Registered: 2010-03-16
Posts: 1,522

Re: Permission issues after restoring tar.gz / backup

In fact, I even get this issue when I try to switch to superuser:

$ su
Password: 
su: Authentication failure

and when I am logged-in as root and try to run snapper:

[root@malina ~]# snapper -c root list
Failure (org.freedesktop.DBus.Error.Spawn.PermissionsInvalid).

Offline

#3 2014-10-16 11:31:07

drcouzelis
Member
From: Connecticut, USA
Registered: 2009-11-09
Posts: 4,092
Website

Re: Permission issues after restoring tar.gz / backup

This post included a solution: http://askubuntu.com/questions/201681/f … k-settings Does that help?

I know "-p" is supposed to preserve permissions, but maybe the "setuid" bit didn't get preserved properly.

Offline

#4 2014-10-16 11:51:02

Lockheed
Member
Registered: 2010-03-16
Posts: 1,522

Re: Permission issues after restoring tar.gz / backup

Thanks. That helped with Failure (org.freedesktop.DBus.Error.Spawn.PermissionsInvalid) error.

However, all the other issues persist.

Last edited by Lockheed (2014-10-16 11:51:11)

Offline

#5 2014-10-16 12:08:36

drcouzelis
Member
From: Connecticut, USA
Registered: 2009-11-09
Posts: 4,092
Website

Re: Permission issues after restoring tar.gz / backup

Lockheed wrote:
You (malina) are not allowed to access to (crontab) because of pam configuration.

Maybe try checking the "/etc/security/access.conf" file: http://serverfault.com/questions/620157 … strictions
Maybe another setuid problem (see the comment here): http://rbsrhel.blogspot.com/2013/03/job … batch.html

Lockheed wrote:
fusermount: mount failed: Operation not permitted

Seems to be another setuid problem: http://forums.debian.net/viewtopic.php? … 58#p442845

That was after, like, a two minute Google search. Lockheed, are you even trying? wink But seriously, I don't know why you seem to be having so many setuid problems. Is there a possibility you created that tar file without the "-p" option or something?

Last edited by drcouzelis (2014-10-16 12:13:00)

Offline

#6 2014-10-16 12:13:29

Lockheed
Member
Registered: 2010-03-16
Posts: 1,522

Re: Permission issues after restoring tar.gz / backup

I googled it out, too, and I even tried implementing that access.conf change, but it made me unable to login through ssh at all.
I reverted it back, because - after all - I never had that set up before, and things were working. So the issue must be in some other place and instead of fighting with smoke, I try to get to the fire.

Yes, the tar file was created with "-p", more precisely with "tar -cvpzf".

Offline

#7 2014-10-16 12:14:16

drcouzelis
Member
From: Connecticut, USA
Registered: 2009-11-09
Posts: 4,092
Website

Re: Permission issues after restoring tar.gz / backup

(Oops! Please see my edit above.)

Offline

Board footer

Powered by FluxBB