[20220623]linux 口令expire問題.txt
[20220623]linux 口令expire問題.txt
--//今天登入伺服器提示:
root@192.xxx.xx.xxx's password:
Send automatic password
Warning: your password will expire in 4 days
# chage -l root
Last password change : Apr 28, 2022
Password expires : Jun 27, 2022
Password inactive : never
Account expires : never
Minimum number of days between password change : 1
Maximum number of days between password change : 60
Number of days of warning before password expires : 7
# chage -l oracle
Last password change : Apr 30, 2022
Password expires : Jun 29, 2022
Password inactive : never
Account expires : never
Minimum number of days between password change : 1
Maximum number of days between password change : 60
Number of days of warning before password expires : 7
--//可以發現兩個使用者快到expires時間點。
--//執行如下:
chage -d 9999 -E -1 -m -1 -M -1 -W -1 oracle
chage -d 9999 -E -1 -m -1 -M -1 -W -1 root
chage -d 9999 -E -1 -m -1 -M -1 -W -1 grid
# chage -l oracle
Last password change : May 18, 1997
Password expires : never
Password inactive : never
Account expires : never
Minimum number of days between password change : -1
Maximum number of days between password change : -1
Number of days of warning before password expires : -1
--//這樣可以一勞永逸解決問題,當然安全問題是另當別論。
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/267265/viewspace-2903032/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- [20211214]ezconnect輸入口令的問題.txt
- [20191106]12c DCD SQLNET.EXPIRE_TIME.txtSQL
- Linux設定口令複雜度和口令定期更換策略Linux複雜度
- [20200220]關於SQLNET.EXPIRE_TIME and ENABLE=BROKEN的總結.txtSQL
- [20190411]linux stat 命令疑問.txtLinux
- [20180316]改變oracle使用者口令時限.txtOracle
- [20220623]grid使用者執行srvctl status service -d xxx報PRCD-1229.txt
- [20190221]sql patch 問題.txtSQL
- [20181217]strace使用問題.txt
- [20181204]bbed修改問題.txt
- [20190313]備份問題.txt
- [20180619]bbed verify問題.txt
- [20210812]windows xcopy問題.txtWindows
- RedHat Linux口令恢復任我行RedhatLinux
- [20190116]rman的老問題.txt
- [20181206]toad 12小問題.txt
- [20180509]函式索引問題.txt函式索引
- [20190522]rman備份問題.txt
- [20181227]bbed的使用問題.txt
- [20220329]windows xcopy命令問題.txtWindows
- [20221203]sqlplus set trimspool 問題.txtSQL
- [20221107]除錯crontab問題.txt除錯
- [20221202]sqlplus set trimout 問題.txtSQL
- [20210303]bbed使用小問題.txt
- [20201221]spfile設定問題.txt
- [20240804]關於kitty設定與linux LANG環境設定問題.txtLinux
- [20181031]模擬網路問題.txt
- [20190114]conemu與kitty小問題.txt
- [20181123]關於降序索引問題.txt索引
- [20190314]使用strace注意的問題.txt
- [20240202]windows時間同步問題.txtWindows
- [20231020]增加欄位的問題.txt
- [20191129]關於hugepages的問題.txt
- [20200227]使用tcpdump or and ()語法問題.txtTCP
- [20240807]數值累加的問題.txt
- [20180403]關於時區問題.txt
- [20211206]修改job屬性問題.txt
- [20210902]cut使用輸出問題.txt