04-20-2020, 04:41 AM
(This post was last modified: 04-20-2020, 04:41 AM by ederjagreda.)
thanks for answering,
I am a little embarrassed to admit it, but I need some help to run that script. I don't know if it is relevant, but until I understand better tactic, I am using the docker version.
So I connect via ssh to the container, as root, and when trying to run the script, I have an error, saying that I have to run the script with a user other than root, I tried another user, and I received an error asking me to run the script with the apache user, and well, I don't have the password to log in as that user, and I understand that I shouldn't use that user.
I don't know if I can modify the script and remove this line that blocks the execution:
If I can do something else, I would be grateful if you tell me about it, I'm searching on google, but I couldn't find a solution yet.
Cheers
Eder
I am a little embarrassed to admit it, but I need some help to run that script. I don't know if it is relevant, but until I understand better tactic, I am using the docker version.
So I connect via ssh to the container, as root, and when trying to run the script, I have an error, saying that I have to run the script with a user other than root, I tried another user, and I received an error asking me to run the script with the apache user, and well, I don't have the password to log in as that user, and I understand that I shouldn't use that user.
I don't know if I can modify the script and remove this line that blocks the execution:
Code:
if os.name != 'nt' and os.getuid() == 0:
print
print "You should not run this as root. Run it as the Web server process's user. e.g. apache"
print
sys.exit(0)
If I can do something else, I would be grateful if you tell me about it, I'm searching on google, but I couldn't find a solution yet.
Cheers
Eder