Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rear changing permission on bin files #1896

Closed
ghost opened this issue Aug 9, 2018 · 3 comments
Closed

Rear changing permission on bin files #1896

ghost opened this issue Aug 9, 2018 · 3 comments
Assignees
Labels
not ReaR / invalid The root cause is not in the ReaR code or ReaR is misused. support / question

Comments

@ghost
Copy link

ghost commented Aug 9, 2018

Relax-and-Recover (ReaR) Issue Template
Fill in the following items before submitting a new issue
(quick response is not guaranteed with free support):

ReaR version ("/usr/sbin/rear -V"): 2.4 / 2018-06.21

OS version ("cat /etc/rear/os.conf" or "lsb_release -a" or "cat /etc/os-release"):

CentOS Linux release 7.4.1708 (Core)
NAME="CentOS Linux"
VERSION="7 (Core)"
ID="centos"
ID_LIKE="rhel fedora"
VERSION_ID="7"
PRETTY_NAME="CentOS Linux 7 (Core)"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:centos:centos:7"
HOME_URL="https://www.centos.org/"
BUG_REPORT_URL="https://bugs.centos.org/"

CENTOS_MANTISBT_PROJECT="CentOS-7"
CENTOS_MANTISBT_PROJECT_VERSION="7"
REDHAT_SUPPORT_PRODUCT="centos"
REDHAT_SUPPORT_PRODUCT_VERSION="7"

CentOS Linux release 7.4.1708 (Core)
CentOS Linux release 7.4.1708 (Core)
ReaR configuration files ("cat /etc/rear/site.conf" or "cat /etc/rear/local.conf"):
OUTPUT=ISO
OUTPUT_URL=cifs://192.168.0.5/System_backup/
BACKUP_URL=cifs://192.168.0.5/System_backup/
BACKUP=NETFS
BACKUP_OPTIONS="cred=/etc/rear/cifs"
OUTPUT_OPTIONS="cred=/etc/rear/cifs"

Real hardware (PC or PowerNV BareMetal or ARM) and/or virtual machine (KVM guest or PoverVM LPAR):
PC

System architecture (x86 compatible or POWER PPC64/PPC64LE or what excat ARM device):
x86_64

Are you using BIOS or UEFI or another way to boot (Open Firmware or Petitboot)?
BIOS

Brief description of the issue:
After restoring the system, the bin commands, e.g. ping, ls, cp and so on, are getting "permission denied" with regular user( e.g. user named silentmobius that is listed at /etc/passwd)
Work-around, if any:
I am changin the permissions with root and setting the id with setuid.

@jsmeix
Copy link
Member

jsmeix commented Aug 10, 2018

I am not a Red Hat / Fedora or CentOS user but
I think this issue is basically the same or at least similar as
#1175
therein see in particular
#1175 (comment)
and
#1411

In genaral when you need to do some special adaptions after "rear recover"
you can automate that via POST_RECOVERY_SCRIPT,
see usr/share/rear/conf/default.conf

@gdha gdha self-assigned this Sep 3, 2018
@gdha
Copy link
Member

gdha commented Sep 3, 2018

@silent-mobius could you list the exact permissions after the recovery? Never encountered this problem description before.

@ghost
Copy link
Author

ghost commented Sep 6, 2018

After some research, we found that it's tar issue. When backup.tar.gz is created it's changing the permissions of bin files to 600.

@gdha gdha added not ReaR / invalid The root cause is not in the ReaR code or ReaR is misused. and removed waiting for info labels Sep 10, 2018
@gdha gdha closed this as completed Sep 10, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
not ReaR / invalid The root cause is not in the ReaR code or ReaR is misused. support / question
Projects
None yet
Development

No branches or pull requests

2 participants