Votre Nom dd7bb3984b first commit | 5 years ago | |
---|---|---|
data | 5 years ago | |
README.md | 5 years ago | |
addlog.sh | 5 years ago | |
dynmodt.sh | 5 years ago | |
listlog.sh | 5 years ago | |
rmlog.sh | 5 years ago |
Dynamic Motd (Message of the Day) an old script to print out some system-specific information.
awk, egrep, sed, whoami, hostname, touch, source, rm, who, sort, uniq, tty, ps, ulimit, groups, cat, cut, wc, uptime, bc, uname, host, id, bash, df,
download
git clone https://github.com/rtulke/dynmotd.git
cd dynmotd
rename files
mv addlog.sh /usr/local/bin/addlog
mv rmlog.sh /usr/local/bin/rmlog
mv listlog.sh /usr/local/bin/listlog
mv dynmotd.sh /usr/local/bin/dynmotd
change permissions
chmod 700 /usr/local/bin/addlog
chmod 700 /usr/local/bin/rmlog
chmod 700 /usr/local/bin/listlog
chmod 777 /usr/local/bin/dynmotd
enabled dynmotd to display all informations after user login (only root)
echo "/usr/local/bin/dynmotd" > /etc/profile.d/motd.sh