Search code examples
cronsolaris

Unable to run cron job with standard user account


The same job can be executed as root, but it can't execute as a standard user. Is it permission problem or I need to change anything, I have no idea on it. Thanks

SunOS 5.10 Generic_150400-30 sun4v sparc SUNW,SPARC-Enterprise-T5120

Command:

1) login as a root

2) crontab -l

* * * * * /usr/bin/date > /tmp/root.log

3) /tmp/root.log is here


1) login as a Non-root user

2) crontab -l

* * * * * /usr/bin/date > /tmp/non-root.log

3) /tmp/non-root.log is not here


Solution

  • Thanks all, I finally found out the issue.

    The reason is that non-root account is locked out, I think it maybe someone did many failure attempt which make this locked.

    After I passwd -u "Account", the job can be run as expected. Thanks~