Hi folks. I hope this is the proper place for this thread.
I have an nginx/Passenger/Sinatra situation. I've sent over a website to my server, and nginx has no user set. I've been told NOT to run it as
Because
So my questions:
1. Am I supposed to run this as my admin user? If not, how should nginx be run to get the proper login script?
2. Can I change the
3. Is there any other question I should be asking?
Appreciate the guidance. Cheers
I have an nginx/Passenger/Sinatra situation. I've sent over a website to my server, and nginx has no user set. I've been told NOT to run it as
root
, but that's been highly disputed and it's never a clear answer. So because of this, nginx runs as nobody
. Here's the environment:
Code:
PWD=/usr/local/www/mydomain
HOME=/nonexistent
SHELL=/usr/sbin/nologin
LOGNAME=nobody
USER=nobody
PASSENGER_APP_ENV=production
NODE_ENV=production
WSGI_ENV=production
RACK_ENV=production
RAILS_ENV=production
NODE_PATH=/usr/local/lib/ruby/gems/2.4/gems/passenger-5.3.4/src/nodejs_supportlib
PYTHONUNBUFFERED=1
PASSENGER_SPAWN_WORK_DIR=/tmp/passenger.spawn.teejIw5vJy
IN_PASSENGER=1
SERVER_SOFTWARE=nginx/1.14.0 Phusion_Passenger/5.3.4
PASSENGER_USE_FEEDBACK_FD=true
PATH=/sbin:/bin:/usr/sbin:/usr/bin
RC_PID=17467
Because
/usr/local/bin/bash
is not in the $PATH
, it can't find bash
and the process fails. So my questions:
1. Am I supposed to run this as my admin user? If not, how should nginx be run to get the proper login script?
2. Can I change the
nobody
user login somehow to see bash
?3. Is there any other question I should be asking?
Appreciate the guidance. Cheers