-6

I'm using REDHAT 6.x and I think something went wrong so I'd like to reset EVERYTHING (selinux wise) and just redo it, how would one go about it?

alexus
  • 13,112
  • 32
  • 117
  • 174

3 Answers3

8

You can try this:

# setenforce 0
# yum erase selinux\*
# rm -rf /etc/selinux
# yum install selinux-policy-targeted 
# touch /.autorelabel
# reboot
mricon
  • 1,164
  • 7
  • 9
1

You can accomplish this in 2 simple steps:

  1. dd if=/dev/zero of=/dev/sda bs=4096
  2. Provision using the method of your choice onto your freshly cleaned drive.
Scott Pack
  • 14,907
  • 10
  • 53
  • 83
1

Format disk, reinstall RHEL 6.

Really the only way to reset "EVERYTHING".

HopelessN00b
  • 53,795
  • 33
  • 135
  • 209