Solaris 5.8 CRON doesn't work with regular user
早晨發現Crontab定義的任務,都沒有執行。
Cron日誌檔案/var/cron/log裡可以檢視到 bad user錯誤資訊:
>! bad user (oracle) 五 9月 8 08:20:00 2006
CMD: /usr/oracle8/backup/healthcheck/instance_monitor.sh
> oracle 23716 c 五 9月 8 08:20:00 2006
CMD: /usr/oracle8/backup/healthcheck/instance_monitor.sh
> oracle 23716 c 五 9月 8 08:20:00 2006
到google上搜了一下,發現:
################################################################
Change the password for the user, or unlock the account.
Hi all,
I just noticed the same messages in the cron-log:
! bad user (root)
After reading this topic I looked at the shadow-file.
I noticed that for the root-user there was no *LK* but the fields MAX and WARN (see manpage shadow) were filled.
Probably the password of root had expired which resulted in the errormessage of cron.
I removed the two fields and reset the password.
Now everything works fine again.
Thanks and I hope this will help you...
等等。
I just noticed the same messages in the cron-log:
! bad user (root)
After reading this topic I looked at the shadow-file.
I noticed that for the root-user there was no *LK* but the fields MAX and WARN (see manpage shadow) were filled.
Probably the password of root had expired which resulted in the errormessage of cron.
I removed the two fields and reset the password.
Now everything works fine again.
Thanks and I hope this will help you...
等等。
##################################################################
可以推斷,oracle使用者的密碼過期或者 oracle使用者被鎖定了。
到系統中檢視,
oracle:/etc/default>ls
cron dhcpagent inetinit kbd mpathd nss power sys-suspend utmpd
devfsadm fs init login nfslogd passwd su tar
oracle:/etc/default>ls -lt passwd
-r--r--r-- 1 root sys 76 Dec 25 2002 passwd
oracle:/etc/default>more passwd
#ident "@(#)passwd.dfl 1.3 92/07/14 SMI"
MAXWEEKS=8
MINWEEKS=
PASSLENGTH=8
cron dhcpagent inetinit kbd mpathd nss power sys-suspend utmpd
devfsadm fs init login nfslogd passwd su tar
oracle:/etc/default>ls -lt passwd
-r--r--r-- 1 root sys 76 Dec 25 2002 passwd
oracle:/etc/default>more passwd
#ident "@(#)passwd.dfl 1.3 92/07/14 SMI"
MAXWEEKS=8
MINWEEKS=
PASSLENGTH=8
發現,預設情況下,系統使用者的密碼過期為8周。
##################################
更改oracle密碼後,問題解決
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/7220098/viewspace-157776/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Fatal error: Can't open and lock privilege tables: Table 'mysql.user' doesn't exist解決辦法ErrorMySql
- 'mysql.column_stats' doesn't exist and Table 'mysql.index_stats' doesn't existMySqlIndex
- scrollTop doesn't scroll on Chrome 61Chrome
- C++ doesn't name a typeC++
- doesn't contain a valid partition tableAI
- MySQL 5.5原始碼安裝時啟動資料庫報錯"Table 'mysql.user' doesn't exist??"MySql原始碼資料庫
- about Res folder doesn't exist in android projectAndroidProject
- About login/failed_user_auto_unlock work or notAI
- mail can't send title on SolarisAI
- if doesn't support the "condition"attribute 問題解決
- user management table and t-code
- MySQL 啟動報錯 Table 'mysql.plugin' doesn't existMySqlPlugin
- Field ‘spu_id‘ doesn‘t have a default valu 解決辦法
- ERROR 1364 (HY000): Field 'ssl_cipher' doesn't have a default valueError
- OSError: [E050] Can‘t find model ‘en_core_web_sm‘. It doesn‘t seem to be a shortcut link, a Python pErrorWebPython
- 解決pgpool啟動報錯 ifup[/sbin/ip] doesn't have setuid bitUI
- 2018 icpc徐州站網路賽 H Ryuji doesn't want to study
- 資料庫報錯java.sql.SQLException: Field ‘id‘ doesn‘t have a default value資料庫JavaSQLException
- ERROR 1146 (42S02): Table 'mysql.slow_log' doesn't existErrorMySql
- 安裝mysql遇到ERROR: 1136 Column count doesn't match value count at row 1MySqlError
- mysql can't connect error about privilege----not root userMySqlError
- adb server version (31) doesn’t match this client (36); killing… 的解決方法Serverclient
- Android Studio Git No tracked branch configured for branch branch_name or the branch doesn't existAndroidGit
- pymysql.err.OperationalError: (1136, “Column count doesn‘t match value count at row 1“)報錯反省。MySqlError
- wget下載安裝時出現錯誤doesn‘t match requested host name錯誤wget
- MySQL5.6新增root使用者報錯:Field 'ssl_cipher' doesn't have a default valueMySql
- Linux環境下MySQL報Table 'xxx' doesn't exist錯誤解決方法LinuxMySql
- Provisioning profile doesn't include signing certificate問題解決,以及各種證書
- ICPC2018徐州網路賽 H.Ryuji doesn't want to study ( 樹狀陣列陣列
- lower_case_table_names引數設定解決Error Code: 1146. Table doesn't exist?Error
- golang work poolGolang
- 在sun t2000上安裝solaris sparc 10記實
- HDU 6055 Regular polygon(幾何)Go
- 正規表示式(regular expression)Express
- Using Regular Expressions in Oracle DatabaseExpressOracleDatabase
- AtCoder Regular Contest 171
- AtCoder Regular Contest 174
- [BUG反饋]子查詢報錯,Base table or view not found: 1146 Table 'onethink.(' doesn't existView