in reply to I need a user just for Perl script run from web browsers

I cannot answer your question...
But, I had a quick look at my shared hosting where all user accounts and permissions are taken care of for me.

Running top shows that my Perl scripts are running under the same account as I use to log in. This is when the scripts are called by Apache.

Replies are listed 'Best First'.
Re^2: I need a user just for Perl script run from web browsers
by bartender1382 (Beadle) on Apr 28, 2022 at 21:35 UTC
    Yes, I know that part. But when I change the user in the /etc/apache2/envvars file to the new user, I keep getting permission failures when the perl script tries to write to specific directories.
     
    That includes me changing the owner of these directories to the new user.So I have no idea how to do this.