Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Main Section Web Server
  • Search

ERROR --> Cron <root@[my domain name]> test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.daily )

Questions regarding the Web Server
Apache + Nginx, Nginx + PHP5-FPM
Post Reply
  • Print view
Advanced search
4 posts • Page 1 of 1
coryrobinson42
Posts: 6
Joined: Wed Feb 17, 2016 10:56 pm

ERROR --> Cron <root@[my domain name]> test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.daily )
  • Quote

Post by coryrobinson42 » Wed Feb 24, 2016 7:26 pm

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.
Top

skamasle
Collaborator
Posts: 592
Joined: Mon Feb 29, 2016 6:36 pm

Re: ERROR --> Cron <root@[my domain name]> test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.daily )
  • Quote

Post by skamasle » Mon Feb 29, 2016 10:00 pm

Have you nginx installed ?

If yes, is there a nginx user ?

Code: Select all

grep nginx /etc/passwd
You can edit logrotate or crond.daily or create a nginx user.
Top

coryrobinson42
Posts: 6
Joined: Wed Feb 17, 2016 10:56 pm

Re: ERROR --> Cron <root@[my domain name]> test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.daily )
  • Quote

Post by coryrobinson42 » Tue Mar 01, 2016 4:22 am

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?
Top

skamasle
Collaborator
Posts: 592
Joined: Mon Feb 29, 2016 6:36 pm

Re: ERROR --> Cron <root@[my domain name]> test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.daily )
  • Quote

Post by skamasle » Tue Mar 01, 2016 1:07 pm

You dont need a password, you need create user whit nologin

Code: Select all

useradd -M nginx
Edited*****
On centos, in debian /sbin/login may vary.

Code: Select all

usermod -s /sbin/nologin nginx
You can read man pagefor more information

** I edit comand to do nologin shell.
Top


Post Reply
  • Print view

4 posts • Page 1 of 1

Return to “Web Server”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

Login  •  Register

I forgot my password