2023年8月4日 星期五

Linux 帳號停用、鎖定及逾期相關指令

鎖定密碼
usermod -L
passwd -l

設定帳號逾期
chage -E0 

指定登入 shell
usermod -s /sbin/nologin 

相關檢查指令
passwd --status
chage -l
getent passwd

Cisco Switch 限制 Port 廣播封包

限制 port 每秒 廣播封包不能超過100個,超過則暫停該 port流量,低於 100 恢復流量

storm-control broadcast level pps 100
show storm-control

2023年8月2日 星期三

Cisco Switch(WS-C2960S-48TD-L)網路校時

ntp server pool.ntp.org

clock timezone CST 8

2023年8月1日 星期二

Cisco Switch(WS-C2960S-48TD-L)關閉 telnet ssh

line vty 0 15
transport input none

恢復預設
default transport input
default transport output

2023年7月20日 星期四

FreeIPA 一般帳號加入網域所需權限

所需權限

DNS Administrators
Host Administrators
Host Enrollment

變更 sssd 預設 shell

編輯 /etc/sssd/sssd.conf

default_shell = /bin/bash
override_shell = /bin/bash

Dell N1548管理界面相關指令

停用 Telnet
ip telnet server disable

停用 HTTP
no ip http server

啟用 HTTPS
crypto certificate 1 generate key
ip https certificate 1
ip http secure-server

啟用 SSH
crypto key generate rsa
crypto key generate dsa
ip ssh server

其他相關指令
show ip telnet
show ip http server status
username
show users accounts
show users login-history