Explorar el Código

SUDO check

master
Vitalijss hace 2 años
padre
commit
63a610fcfd
Se han modificado 1 ficheros con 2 adiciones y 5 borrados
  1. +2
    -5
      bash/kubuntu-skola.sh

+ 2
- 5
bash/kubuntu-skola.sh Ver fichero

@@ -1,12 +1,9 @@
#!/bin/bash
if (( $EUID != 0 )); then
echo "Palaid šo ar root tiesībām!"
exit
fi
if [ "$(id -u)" -ne 0 ]; then echo "Tev jābūt SUDO tiesībām." >&2; exit 1; fi
#Atjauninām repozitorijus un atjauninām sistēmu
apt update && apt upgrade -y
#Instalējam pamata programmas
apt install p7zip vlc unrar git htop mc
apt install p7zip vlc unrar git htop mc curl wget
#Izveidojam lietotājus
$pass = "Parole1"
useradd -m -p "$pass" sk1dt


Cargando…
Cancelar
Guardar

Powered by TurnKey Linux.