Recovering system...

General support questions
Post Reply
wp.rauchholz
Posts: 133
Joined: 2016/11/20 11:58:45

Recovering system...

Post by wp.rauchholz » 2018/12/17 08:14:53

By mistake I deleted /usr/bin, but was able to recover.
On of the few things missing is to set the file properties of selinux permissions right.
Currently, selinux is disbaled.

ls --lcontext provides this
-rwxr-xr-x 1 ? root root 155264 Dec 16 20:58 cp

How can I set this correctly?

THanks, Wolfgang

User avatar
TrevorH
Site Admin
Posts: 33220
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Recovering system...

Post by TrevorH » 2018/12/17 08:23:49

You'll need to turn selinux back on and put it in permissive mode first. Once you've booted in permissive mode, touch /.autorelabel;reboot and then wait while it relabels the filesystem.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

wp.rauchholz
Posts: 133
Joined: 2016/11/20 11:58:45

Re: Recovering system...

Post by wp.rauchholz » 2018/12/18 12:40:43

Thank you very much Trevor.
Well I guess it is now time to get a grip on selinux next...

Wolfgang

Post Reply