Page 1 of 1
ERROR --> Cron <root@[my domain name]> test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.daily )
Posted: Wed Feb 24, 2016 7:26 pm
by coryrobinson42
I'm receiving an email every day with the following:
Code: Select all
/etc/cron.daily/logrotate:
error: nginx:8 unknown user 'nginx'
error: found error in /var/log/nginx/*log /var/log/nginx/domains/*log , skipping
I looked in the error.log and it showed a rejected connection from an IP in china that's known for port scanning.. I deleted the log and created a new log. The error.log is now empty but I still receive this email.
Re: ERROR --> Cron <root@[my domain name]> test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.daily )
Posted: Mon Feb 29, 2016 10:00 pm
by skamasle
Have you nginx installed ?
If yes, is there a nginx user ?
You can edit logrotate or crond.daily or create a nginx user.
Re: ERROR --> Cron <root@[my domain name]> test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.daily )
Posted: Tue Mar 01, 2016 4:22 am
by coryrobinson42
Nginx is installed and running without any issues.
There is no nginx user in /etc/passwd. After I create a user 'nginx' what should I set the password to and where do I define this password?
Re: ERROR --> Cron <root@[my domain name]> test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.daily )
Posted: Tue Mar 01, 2016 1:07 pm
by skamasle
You dont need a password, you need create user whit nologin
Edited*****
On centos, in debian /sbin/login may vary.
You can read
man pagefor more information
** I edit comand to do nologin shell.