File: 10-security

package info (click to toggle)
fai 4.3.1
  • links: PTS, VCS
  • area: main
  • in suites: jessie-kfreebsd
  • size: 1,740 kB
  • sloc: perl: 5,115; sh: 4,272; makefile: 157
file content (13 lines) | stat: -rwxr-xr-x 303 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
#! /bin/bash

# (c) Michael Goetze, 2010-11, mgoetze@mgoetze.net

error=0; trap 'error=$(($?>$error?$?:$error))' ERR # save maximum error code

$ROOTCMD authconfig --enableshadow --enablemd5 \
	--enablelocauthorize --updateall
$ROOTCMD usermod -p $ROOTPW root

fcopy -v /etc/selinux/config

exit $error