automated terminal push
This commit is contained in:
@@ -13,7 +13,7 @@ services:
|
|||||||
|
|
||||||
dockerfile: Dockerfile
|
dockerfile: Dockerfile
|
||||||
|
|
||||||
hostname: academy
|
hostname: shinobilinux
|
||||||
|
|
||||||
domainname: linux.softwareshinobi.com
|
domainname: linux.softwareshinobi.com
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
FROM ubuntu
|
FROM ubuntu:noble
|
||||||
|
|
||||||
##
|
##
|
||||||
|
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ set -x;
|
|||||||
|
|
||||||
cat /etc/issue;
|
cat /etc/issue;
|
||||||
|
|
||||||
##echo "Shinobi Academy Linux 10x" > /etc/issue;
|
echo "Shinobi Academy 24.04" > /etc/issue;
|
||||||
|
|
||||||
cat /etc/issue;
|
cat /etc/issue;
|
||||||
|
|
||||||
@@ -43,7 +43,7 @@ apt update;
|
|||||||
|
|
||||||
apt install -y vim nano;
|
apt install -y vim nano;
|
||||||
|
|
||||||
apt install -y hollywood;
|
## apt install -y hollywood;
|
||||||
|
|
||||||
apt install -y cmatrix;
|
apt install -y cmatrix;
|
||||||
|
|
||||||
@@ -51,7 +51,11 @@ apt install -y cmatrix;
|
|||||||
## shinobi academy user config
|
## shinobi academy user config
|
||||||
##
|
##
|
||||||
|
|
||||||
useradd -rm -d /home/shinobi -s /bin/bash -u 1042 shinobi;
|
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
|
echo 'shinobi:shinobi' | chpasswd
|
||||||
|
|
||||||
@@ -59,12 +63,16 @@ echo 'shinobi:shinobi' | chpasswd
|
|||||||
## restrict permissions on home
|
## restrict permissions on home
|
||||||
##
|
##
|
||||||
|
|
||||||
chown -R nobody: /home/shinobi/
|
|
||||||
|
|
||||||
chmod -R 555 /home/shinobi/
|
chmod -R 555 /home/shinobi/
|
||||||
|
|
||||||
chmod -R 555 /tmp/
|
chmod -R 555 /tmp/
|
||||||
|
|
||||||
|
##
|
||||||
|
## change MOTD
|
||||||
|
##
|
||||||
|
|
||||||
|
## echo "hey?" > /etc/motd
|
||||||
|
|
||||||
##
|
##
|
||||||
## start ssh server
|
## start ssh server
|
||||||
##
|
##
|
||||||
|
|||||||
Reference in New Issue
Block a user