su - root could not open session
su - root could not open session
今天一同事在登入linux之後,進行su - 切換使用者的時候,發現報錯su - root could not open session
切換不好。
經過檢視,limit.conf 配置是可以的,但是配置之後不生效。
然後檢視到日誌存放的為/var/log/secure
Jun 13 15:25:19 hlsjserver08 su: PAM pam_parse: expecting return value; [...retry=3]
Jun 13 15:25:19 hlsjserver08 su: PAM (su-l) illegal module type: try_first_pass
Jun 13 15:25:19 hlsjserver08 su: PAM pam_parse: expecting return value; [...retry=3]
Jun 13 15:25:25 hlsjserver08 su: pam_unix(su-l:session): session opened for user btmon by btmon(uid=503)
檢視配置檔案中包含此關鍵字的檔案,使用命令如下:
find ./* -name \* -type f -print|xargs grep "retry=3"
./pam.d/system-auth-ac:password requisite pam_cracklib.so try_first_pass retry=3 type= minlen=8 minclass=2
開啟檔案,發現
password requisite pam_cracklib.so password requisite pam_cracklib.so minlen=8 minclass=3 ucredit=-2 lcredit=-1 dcredit=-4 ocredit=-1
try_first_passretry=3 type=
進行了換行。
所以需要
password requisite pam_cracklib.so
password requisite pam_cracklib.so minlen=8 minclass=3 ucredit=-2 lcredit=-1 dcredit=-4 ocredit=-1 try_first_passretry=3 type=
問題解決
今天一同事在登入linux之後,進行su - 切換使用者的時候,發現報錯su - root could not open session
切換不好。
經過檢視,limit.conf 配置是可以的,但是配置之後不生效。
然後檢視到日誌存放的為/var/log/secure
Jun 13 15:25:19 hlsjserver08 su: PAM pam_parse: expecting return value; [...retry=3]
Jun 13 15:25:19 hlsjserver08 su: PAM (su-l) illegal module type: try_first_pass
Jun 13 15:25:19 hlsjserver08 su: PAM pam_parse: expecting return value; [...retry=3]
Jun 13 15:25:25 hlsjserver08 su: pam_unix(su-l:session): session opened for user btmon by btmon(uid=503)
檢視配置檔案中包含此關鍵字的檔案,使用命令如下:
find ./* -name \* -type f -print|xargs grep "retry=3"
./pam.d/system-auth-ac:password requisite pam_cracklib.so try_first_pass retry=3 type= minlen=8 minclass=2
開啟檔案,發現
password requisite pam_cracklib.so password requisite pam_cracklib.so minlen=8 minclass=3 ucredit=-2 lcredit=-1 dcredit=-4 ocredit=-1
try_first_passretry=3 type=
進行了換行。
所以需要
password requisite pam_cracklib.so
password requisite pam_cracklib.so minlen=8 minclass=3 ucredit=-2 lcredit=-1 dcredit=-4 ocredit=-1 try_first_passretry=3 type=
問題解決
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/28869493/viewspace-2119588/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- su的時候報:could not open sessionSession
- su - xxx Could not create sessionSession
- Linux su 切換到某使用者時報錯: could not open sessionLinuxSession
- 解決“su: cannot open session: Permission denied”Session
- XIII Open Grodno SU Championship
- 啟動Jmeter5.3 後彈出警告: WARNING: Could not open/create prefs root node Software\JavaSoft\Prefs at root 0JMeterJava
- could not initialize proxy - no SessionSession
- open session in viewSessionView
- session_max_open_filesSession
- 請教open session in viewSessionView
- Open Session In View 探討SessionView
- cmake報錯CMake Error: Could not find CMAKE_ROOTError
- SESSION_CURSOR_CACHE open_cursorsSession
- linux 禁止普通使用者su到root使用者Linux
- 錯誤記錄(八)could not initialize proxy - no SessionSession
- RMAN-06403: could not obtain a fully authorized sessionAIZedSession
- open_cursors與session_cached_cursorsSession
- Not Able To Open Forms Session After Cloning.ORMSession
- Many To Many could not initialize proxy – no Session的解決方法Session
- open_cursor session_cached_cursors 優化Session優化
- open_cursor & session_cached_cursor實驗Session
- 關於open session in view,想在此請教!SessionView
- open session in view引起的事務問題SessionView
- dbms_session.set_close_cached_open_cursors(true)Session
- 理解V$OPEN_CURSOR,SESSION_CACHED_CURSORSession
- Execute to Parse% 及open_cursors,session_cached_cursorsSession
- 理解V$OPEN_CURSOR, V$SESSION_CACHED_CURSORSession
- su和su - 的區別
- ORA-15180: could not open dynamic library ASM LibraryASM
- vmwar出現Could not open...Please make sure that the kernel modul的問題
- [zt] 理解V$OPEN_CURSOR, V$SESSION_CACHED_CURSORSession
- Nginx報錯: "Too many open files accept" 和 "could not build the server_names_hash"NginxUIServer
- MSSQLServer 上討厭的錯誤error: 40 - Could not open a connection to SQL ServerSQLServerError
- ascp: Failed to open TCP connection for SSH, exiting. Session Stop (Error: Failed to open TCP connection for SSH)AITCPSessionError
- Oracle檢視已被使用的open_cursors&session_cached_cursorsOracleSession
- 引數 session_cached_cursors 與 open_cursors詳解Session
- hibernate open session in view 丟擲異常解決方法SessionView
- 異常資訊解決:Could not obtain transaction-synchronized Session for current threadAIsynchronizedSessionthread