http has no acces to dir despite of correct chmod and chown

This forum is for discussion about general software issues.

http has no acces to dir despite of correct chmod and chown

Postby mk23b » Fri Aug 01, 2014 8:02 pm

If I had not even seen it, I wouldn't believe it.

Since this morning, my nginx gives me "403 Permission denied".
The logs just say something like.

2014/08/01 21:53:58 [error] 582#0: *1 "/srv/http/example/index.html" is forbidden (13: Permission denied), client: 192.168.2.24, server: www.example.com request: "GET / HTTP/1.1", host: "umleitung-rvb.de"

So I went into my /srv/http/ and did $this->bbcode_second_pass_code('', 'sudo chown http:http -R . && sudo chmod 770 -R .'). Still same error.
Watched wether nginx runs as http user. It did.
I even enabled bash for http user but even with it I didn't get access.

The line out of my /etc/passwd:
$this->bbcode_second_pass_code('', 'http:x:5003:5003::/srv/http:/bin/bash')

... and directory permissions for /srv/http.
$this->bbcode_second_pass_code('', '
drwxrwxrwx 2 http http 4096 1. Aug 21:43 .
drwxrwx--- 5 maurice maurice 4096 1. Aug 21:35 ..
drwxrwx--- 2 http http 4096 1. Aug 22:00 umleitung
')

UID and GID are correct.
mk23b
 
Posts: 3
Joined: Thu May 29, 2014 11:51 am

Re: http has no acces to dir despite of correct chmod and ch

Postby WarheadsSE » Mon Aug 04, 2014 11:40 am

Is http in maurice?
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm


Return to General

Who is online

Users browsing this forum: No registered users and 21 guests