Re: [users@httpd] Script behaving differently when run by Apache and when run from a shell by user www-data?

2024-01-23 Thread EML
IMO suexec would be better suited to handle more sensitive operations such as unmounting. CGI is not an interactive shell, as you discovered. Calling a separate script with the suid bit might work too. But I don't need an interactive shell: I need a way to run a script as user www-data,

Re: [users@httpd] Script behaving differently when run by Apache and when run from a shell by user www-data?

2024-01-23 Thread Frank Gingras
On Tue, Jan 23, 2024 at 2:12 PM EML wrote: > > Let's take a step back - why are you unmounting from a cgi script? > > It's a one-time setup when a user configures a new system. Most of these > users aren't shell-literate, so they configure by ticking boxes on a web > page. The system is a VPS, so

Fwd: [users@httpd] Script behaving differently when run by Apache and when run from a shell by user www-data?

2024-01-23 Thread EML
Let's take a step back - why are you unmounting from a cgi script? It's a one-time setup when a user configures a new system. Most of these users aren't shell-literate, so they configure by ticking boxes on a web page. The system is a VPS, so is actually a VM, which I hope isn't relevant.

Re: [users@httpd] Script behaving differently when run by Apache and when run from a shell by user www-data?

2024-01-23 Thread Frank Gingras
On Tue, Jan 23, 2024 at 2:02 PM EML wrote: > The CGI Howto page contains some basic information on how Apache actually > runs a program, but is there any more detailed information anywhere? > > Specifically, I have a problem where a bash script runs as expected when > run from an interactive shel

[users@httpd] Script behaving differently when run by Apache and when run from a shell by user www-data?

2024-01-23 Thread EML
The CGI Howto page contains some basic information on how Apache actually runs a program, but is there any more detailed information anywhere? Specifically, I have a problem where a bash script runs as expected when run from an interactive shell by user www-data (this is Ubuntu). However, the

Re: [users@httpd] Secure websockets and proxying

2024-01-23 Thread Yann Ylavic
On Tue, Jan 23, 2024 at 5:22 PM Yann Ylavic wrote: > > On Tue, Jan 23, 2024 at 11:55 AM Erik Thuning wrote: > > > > I have a tomcat application running that accepts websockets. In front of > > this application I'm running apache as a reverse proxy. SSL is > > configured in apache, and my tomcat k

Re: [users@httpd] Secure websockets and proxying

2024-01-23 Thread Yann Ylavic
On Tue, Jan 23, 2024 at 11:55 AM Erik Thuning wrote: > > I have a tomcat application running that accepts websockets. In front of > this application I'm running apache as a reverse proxy. SSL is > configured in apache, and my tomcat knows nothing about SSL. > > In the usual web traffic case, every

[users@httpd] Secure websockets and proxying

2024-01-23 Thread Erik Thuning
Hi! I have a tomcat application running that accepts websockets. In front of this application I'm running apache as a reverse proxy. SSL is configured in apache, and my tomcat knows nothing about SSL. In the usual web traffic case, everything works just as expected - the SSL connection termi