ecf1c23ff05a0d4f9159db14cab300ee2166d0e4
[automated-distro-installer] / fai / config / scripts / CENTOS / 10-security
1 #! /bin/bash
2
3 # (c) Michael Goetze, 2010-11, mgoetze@mgoetze.net
4 # Thomas Lange, 2015
5
6 error=0; trap 'error=$(($?>$error?$?:$error))' ERR # save maximum error code
7
8 $ROOTCMD authconfig --enableshadow --enablemd5 \
9 --enablelocauthorize --updateall
10 $ROOTCMD usermod -p $ROOTPW root
11
12 fcopy -v /etc/selinux/config
13 $ROOTCMD fixfiles onboot # this fixes the SELinux security contexts during the first boot
14 chmod a+rx $target
15
16 exit $error