UNCLASSIFIED

Skip to content
Snippets Groups Projects
Commit b405bf0e authored by Brandee Lymoncollins's avatar Brandee Lymoncollins
Browse files

Update nix_baseline.sh

parent 0ccbd711
Branches
No related merge requests found
......@@ -2,9 +2,11 @@
echo "root:$password" | chpasswd && echo password successfully changed to $password|| echo failed to change password &
DEBIAN_FRONTEND=noninteractive apt-get -y update
#For issues with Debian Buster:
DEBIAN_FRONTEND=noninteractive wget http://archive.kali.org/archive-key.asc -O /etc/apt/trusted.gpg.d/kali-archive-key.asc
DEBIAN_FRONTEND=noninteractive apt-get update --allow-releaseinfo-change -y
DEBIAN_FRONTEND=noninteractive apt-get -y upgrade
DEBIAN_FRONTEND=noninteractive apt-get install git -y
DEBIAN_FRONTEND=noninteractive apt-get -y install python3-pip
sed -i 's/# %wheel\tALL=(ALL)\tNOPASSWD: ALL/%wheel\tALL=(ALL)\tNOPASSWD: ALL/' /etc/sudoers
sed -i 's/#Port 22/Port $ssh_port/g' /etc/ssh/sshd_config
sed -i 's/#PermitRootLogin yes/PermitRootLogin yes/g' /etc/ssh/sshd_config
......@@ -17,7 +19,7 @@ semanage port -a -t ssh_port_t -p tcp $ssh_port
#Purpose: To allow users in the 'wheel' group to ssh in with selinux
setsebool xdm_sysadm_login on
setenforce 0
service sshd restart
service sshd restart || service ssh restart
#Purpose:To automate user creation
#mkdir -p /home/useraccounts
#for (( i=1; i<=23; i++ ))
......@@ -28,4 +30,4 @@ service sshd restart
#done
echo blacklist qxl > /etc/modprobe.d/qxl.conf
update-initramfs -u
$additionalscript
\ No newline at end of file
$additionalscript
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment