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密碼後,問題解決 ![Solaris 5.8 CRON doesn't work with regular user](https://i.iter01.com/images/0a16cce2ad0ce425097ffe44b1461a43299f186e750d1c14b8ec69a4ac8b8f0b.gif)
![Solaris 5.8 CRON doesn't work with regular user](https://i.iter01.com/images/0a16cce2ad0ce425097ffe44b1461a43299f186e750d1c14b8ec69a4ac8b8f0b.gif)
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/7220098/viewspace-157776/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 115 svn: URL 'svn://132.232.108.38/think' doesn't exist
- 2018 icpc徐州站網路賽 H Ryuji doesn't want to study
- Field ‘spu_id‘ doesn‘t have a default valu 解決辦法
- Android Studio Git No tracked branch configured for branch branch_name or the branch doesn't existAndroidGit
- adb server version (31) doesn’t match this client (36); killing… 的解決方法Serverclient
- 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
- 錯誤訊息 This computer doesn't have VT-X/AMD-v enabled
- 資料庫報錯java.sql.SQLException: Field ‘id‘ doesn‘t have a default value資料庫JavaSQLException
- pymysql.err.OperationalError: (1136, “Column count doesn‘t match value count at row 1“)報錯反省。MySqlError
- 5.8
- ICPC2018徐州網路賽 H.Ryuji doesn't want to study ( 樹狀陣列陣列
- wget下載安裝時出現錯誤doesn‘t match requested host name錯誤wget
- AtCoder Regular Contest 171
- AtCoder Regular Contest 177
- AtCoder Regular Contest 174
- AtCoder Regular Contest 186
- AtCoder Regular Contest 185
- [BUG反饋]子查詢報錯,Base table or view not found: 1146 Table 'onethink.(' doesn't existView
- [ERR] 1231 - Variable 'sql_mode' can't be set to the value of 'NO_AUTO_CREATE_USER'SQL
- cron with recover
- Android workAndroid
- 解決安裝ubuntu系統時出現錯誤:(10, “debian-installer/locale doesn‘t exist“)Ubuntu
- Leetcode 10 Regular Expression MatchingLeetCodeExpress
- scp 報錯 not a regular file
- Cron 表示式
- cron表示式
- golang work poolGolang
- work 10月
- 帝國CMS重新整理資料表article提示Table ‘empirecms.phome_ecms_’ doesn’t exist的解決
- HDU 6055 Regular polygon(幾何)Go
- AtCoder Regular Contest 185 總結
- cron 秒級控制
- adb連線失敗報錯“AdbProcess::error:adb server version (32) doesn‘t match this client (41); killing...”的修復ErrorServerclient
- Solaris常用命令
- RabbitMQ-Work模式MQ模式
- 軟體工程5.8軟體工程
- MySQL-workbench not workMySql
- queue:work 原理分析