Solaris 5.8 CRON doesn't work with regular user

Dodd發表於2008-01-23
早晨發現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
 
到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...
等等。
##################################################################
可以推斷,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
發現,預設情況下,系統使用者的密碼過期為8周。
##################################
 
更改oracle密碼後,問題解決 Solaris 5.8 CRON doesn't work with regular user

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/7220098/viewspace-157776/,如需轉載,請註明出處,否則將追究法律責任。

相關文章