Shreenidhi Shedi via nginx
March 18, 2023 04:32PM
Thanks for the inputs but if user has different paths configured for these temp files in nginx.conf; then again this permssion issue pops up. I also referred Fedora nginx spec file and considered this possibility but it's a bit complex on an already configured and running server instance.

I have created a bug at https://trac.nginx.org/nginx/ticket/2469 and submitted a patch, please review it when you get time.

--
Shedi
________________________________
From: Sergey A. Osokin <osa@freebsd.org.ru>
Sent: 17 March 2023 19:56
To: Shreenidhi Shedi <sshedi@vmware.com>
Cc: nginx@nginx.org <nginx@nginx.org>
Subject: Re: Changing ownership of proxy_temp and other temp directories

!! External Email

Hi Shedi,

On Fri, Mar 17, 2023 at 05:13:24AM +0000, Shreenidhi Shedi wrote:
> Thanks for the response Sergey A. Osokin.
>
> The problem is these temp locations are configurable parameters.
> So, from a spec file perspective it's hard to fetch these parameters
> and change the permissions.
>
> As ngnix is already doing the task of changing permission of top
> directory, is there any problem the same recursively?

I don't think I see a specific reason for nginx to do that, because
that may cause a delay with its start, but it's definitely
possible to:
o) implement a specific logic and rebuild nginx binary, also raise
a request in https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Ftrac.nginx.org%2F&data=05%7C01%7Csshedi%40vmware.com%7C233de8ff58d24c75955908db26f3989d%7Cb39138ca3cee4b4aa4d6cd83d9dd62f0%7C0%7C0%7C638146599941295693%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=Ldc9UpODK%2BitxiBnVrmSvXBdjwBk9HIqzRCX35Hr76w%3D&reserved=0 and submit a patch;
o) use other then /etc/nginx directory for temporary files, for
example /var/tmp/nginx, see ./configure output for details

Hope that helps.

Thank you.

--
Sergey A. Osokin

!! External Email: This email originated from outside of the organization. Do not click links or open attachments unless you recognize the sender.
_______________________________________________
nginx mailing list
nginx@nginx.org
https://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Changing ownership of proxy_temp and other temp directories

Shreenidhi Shedi via nginx March 16, 2023 02:20PM

Re: Changing ownership of proxy_temp and other temp directories

Sergey A. Osokin March 16, 2023 02:44PM

Re: Changing ownership of proxy_temp and other temp directories

Shreenidhi Shedi via nginx March 16, 2023 03:06PM

Re: Changing ownership of proxy_temp and other temp directories

Sergey A. Osokin March 16, 2023 03:42PM

Re: Changing ownership of proxy_temp and other temp directories

Sergey A. Osokin March 16, 2023 05:18PM

Re: Changing ownership of proxy_temp and other temp directories

Shreenidhi Shedi via nginx March 17, 2023 12:44AM

Re: Changing ownership of proxy_temp and other temp directories

Shreenidhi Shedi via nginx March 17, 2023 01:14AM

Re: Changing ownership of proxy_temp and other temp directories

Sergey A. Osokin March 17, 2023 10:28AM

Re: Changing ownership of proxy_temp and other temp directories

Shreenidhi Shedi via nginx March 18, 2023 04:32PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 215
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready