Re: [CentOS] Permissions on nginx logs

2019-05-07 Thread Warren Young
On May 7, 2019, at 7:14 AM, Bee.Lists wrote: > > As per the “7” comment, I always listen to good advice, but usually that > advice gets completely derailed with someone saying “nobody should ever be > root…”, etc. Best stated, “some people never let their kids play outside”. > I have a

Re: [CentOS] Permissions on nginx logs

2019-05-07 Thread Bee.Lists
Yeah I was still having some issues so I set a cron to rsync the directory out to another directory that I rsync to another machine to, where I do the analysis. As per the “7” comment, I always listen to good advice, but usually that advice gets completely derailed with someone saying

Re: [CentOS] Permissions on nginx logs

2019-05-07 Thread Anthony K
On 4/5/19 8:03 am, Bee.Lists wrote: Hi folks. Just wondering if I can change the ownership on the nginx logs folder so I can access them easier for analysis on a regular basis and cronjobs. /var/log/nginx is owned by nginx:nginx which shuts me out. Cheers, Bee Here's a twist to the other

Re: [CentOS] Permissions on nginx logs

2019-05-06 Thread Simon Matter via CentOS
> On May 6, 2019, at 10:14 AM, Bee.Lists wrote: >> >> I will give 770 a try. > > Try 750 first. You don’t need write access to do what you’re asking. > > Also, the group membership change won’t take effect until you log out and > back in. Thanks to correct me, both things are true, if he only

Re: [CentOS] Permissions on nginx logs

2019-05-06 Thread Warren Young
On May 6, 2019, at 10:14 AM, Bee.Lists wrote: > > I will give 770 a try. Try 750 first. You don’t need write access to do what you’re asking. Also, the group membership change won’t take effect until you log out and back in. > Nobody going to flip now that a single “7” has been posted?

Re: [CentOS] Permissions on nginx logs

2019-05-06 Thread Bee.Lists
I will give 770 a try. Nobody going to flip now that a single “7” has been posted? > On May 6, 2019, at 12:06 AM, Simon Matter via CentOS > wrote: > > What's the access mode of it? Should probably be mode 770 then. Cheers, Bee ___ CentOS

Re: [CentOS] Permissions on nginx logs

2019-05-05 Thread Simon Matter via CentOS
> Just did that, and I still can’t do this: > > $ cd /var/log/nginx > > -bash: cd: /var/log/nginx: Permission denied What's the access mode of it? Should probably be mode 770 then. Regards, Simon > > >> On May 3, 2019, at 7:22 PM, John Pierce wrote: >> >> Add group nginx to your user...

Re: [CentOS] Permissions on nginx logs

2019-05-03 Thread Bee.Lists
Just did that, and I still can’t do this: $ cd /var/log/nginx -bash: cd: /var/log/nginx: Permission denied > On May 3, 2019, at 7:22 PM, John Pierce wrote: > > Add group nginx to your user... usermod -G nginx,... username > (Where Is any other groups you're a member of, not counting

Re: [CentOS] Permissions on nginx logs

2019-05-03 Thread John Pierce
Add group nginx to your user... usermod -G nginx,... username (Where Is any other groups you're a member of, not counting your primary group) On Fri, May 3, 2019, 3:03 PM Bee.Lists wrote: > Hi folks. > > Just wondering if I can change the ownership on the nginx logs folder so I > can

[CentOS] Permissions on nginx logs

2019-05-03 Thread Bee.Lists
Hi folks. Just wondering if I can change the ownership on the nginx logs folder so I can access them easier for analysis on a regular basis and cronjobs. /var/log/nginx is owned by nginx:nginx which shuts me out. Cheers, Bee ___ CentOS