shinobi user configured for keylogin
All checks were successful
learn org at code.softwareshinobi.com/linux.softwareshinobi.com/pipeline/head This commit looks good
All checks were successful
learn org at code.softwareshinobi.com/linux.softwareshinobi.com/pipeline/head This commit looks good
This commit is contained in:
@@ -17,78 +17,16 @@ set -x;
|
||||
|
||||
##
|
||||
|
||||
cat /etc/issue;
|
||||
cd server
|
||||
|
||||
echo "Shinobi Academy 24.04" > /etc/issue;
|
||||
bash sshd.bash
|
||||
|
||||
cat /etc/issue;
|
||||
cd ..
|
||||
|
||||
##
|
||||
|
||||
apt update;
|
||||
cd users/shinobi
|
||||
|
||||
##
|
||||
## install bashrc systemwide
|
||||
##
|
||||
bash provision.bash
|
||||
|
||||
##cp bashrc /usr/local/bin/bashrc
|
||||
|
||||
##ls -l /tmp/.bashrc
|
||||
|
||||
##cat /tmp/.bashrc;
|
||||
|
||||
##source /tmp/.bashrc;
|
||||
|
||||
##
|
||||
|
||||
apt install -y vim nano;
|
||||
|
||||
## apt install -y hollywood;
|
||||
|
||||
apt install -y cmatrix cmatrix-xfont;
|
||||
|
||||
##
|
||||
## shinobi academy user config
|
||||
##
|
||||
|
||||
groupadd -g 1042 shinobi
|
||||
|
||||
useradd -u 1042 -g 1042 -rm -d /home/shinobi -s /bin/bash shinobi
|
||||
|
||||
##useradd -rm -d /home/shinobi -s /bin/bash -u 1042 shinobi;
|
||||
|
||||
echo 'shinobi:shinobi' | chpasswd
|
||||
|
||||
mkdir /home/shinobi/.ssh/
|
||||
|
||||
cp /private.key /home/shinobi/.ssh/
|
||||
|
||||
##
|
||||
## restrict permissions on home
|
||||
##
|
||||
|
||||
chmod -R 555 /home/shinobi/
|
||||
|
||||
chmod -R 555 /tmp/
|
||||
|
||||
##
|
||||
## change MOTD
|
||||
##
|
||||
|
||||
## echo "hey?" > /etc/motd
|
||||
|
||||
##
|
||||
## start ssh server
|
||||
##
|
||||
|
||||
apt install -y openssh-server;
|
||||
|
||||
apt install -y sudo;
|
||||
|
||||
service ssh start;
|
||||
|
||||
##
|
||||
## finish
|
||||
##
|
||||
|
||||
echo "fin."
|
||||
cd ../..
|
||||
|
||||
Reference in New Issue
Block a user