#!/bin/bash## Script Bash untuk menonaktifkan pesan selamat datang saat login SSH# Dibuat oleh: Rofi (Fixploit03)## Linux: Ubuntu Server 26.04if[[$EUID-ne 0 ]];then
echo"[-] Script ini harus dijalankan sebagai root!"exit 1
fi
path=/etc/update-motd.d
for file in"${path}"/*;do
if[[-L"${file}"]];then
echo"[*] Menghapus symlink '${file}'..."unlink"${file}"else
echo"[*] Menghapus izin eksekusi file '${file}'..."chmod-x"${file}"fi
done
echo"[*] Merestart service SSH..."
systemctl restart ssh
echo"[+] Selesai!"
Top comments (0)
Subscribe
We're a place where coders share, stay up-to-date and grow their careers.
Top comments (0)