LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-29-2011, 02:55 PM   #1
cskip
LQ Newbie
 
Registered: Jul 2009
Posts: 8

Rep: Reputation: 0
Listing question


Hm, I put this in the newbie forum since it should be an easy answer, even though I've been using Linux/Unix for over a decade. I just have never seen this before...

I'm getting a "403 forbidden" error from Apache, and I'm trying to narrow the problem down since everything looks correct. Anyway, the listing for public_html looks like this:
drwxr-xr-x. 2 username users 4096 Jun 28 22:08 public_html

and inside public_html looks like this:
-rw-r--r--. 1 username man 76 Jun 28 22:08 index.html

So my question is: What the hell is that DOT following the rwx columns? I've never seen it before, and can't find any documentation describing it. Also, could this be part of the problem? This is RHEL 6.1, btw.
 
Old 06-29-2011, 03:13 PM   #2
opnsrc
LQ Newbie
 
Registered: Dec 2005
Posts: 28

Rep: Reputation: 1
Perhaps something *new*? I have CentOS 5.5 and don't have anything other than 'traditional' permissions listed.

From http://osdir.com/ml/fedora-devel-lis.../msg01329.html - Although that's over 2 years old and on fedora.

' ' (blank) no SELinux coverage
'.' (dot) ordinary SELinux context only
'+' (plus) SELinux ACLs or other things beyond ordinary context

I'd have to do some more research, but this is a starting point, I guess.
 
Old 06-29-2011, 03:13 PM   #3
T3RM1NVT0R
Senior Member
 
Registered: Dec 2010
Location: Internet
Distribution: Linux Mint, SLES, CentOS, Red Hat
Posts: 2,385

Rep: Reputation: 476Reputation: 476Reputation: 476Reputation: 476Reputation: 476
@ Reply

Hi there,

Error 403 mean clear deny by the web server. It means web server do not even want to negotiate.

As far as . is concerned I don't think so that is part of the problem as I can see that . in each and every file and directory when I do ll or ls -l in any directory.

Try the following:

As I can see that index.html is owned by someother user. Can you try chown root.root index.html and then restart httpd service. Once done try to access via browser.

EDIT: Just checked on my test environment. Dot (.) was not there in previous version of RHEL I just checked it on RHEL5. However, it is there on each and every file on RHEL6

Last edited by T3RM1NVT0R; 06-29-2011 at 03:16 PM.
 
Old 06-29-2011, 03:25 PM   #4
sandwormusmc
Member
 
Registered: Nov 2006
Distribution: Fedora 15 x86_64
Posts: 76

Rep: Reputation: 24
Quote:
Originally Posted by cskip View Post
Hm, I put this in the newbie forum since it should be an easy answer, even though I've been using Linux/Unix for over a decade. I just have never seen this before...

I'm getting a "403 forbidden" error from Apache, and I'm trying to narrow the problem down since everything looks correct. Anyway, the listing for public_html looks like this:
drwxr-xr-x. 2 username users 4096 Jun 28 22:08 public_html

and inside public_html looks like this:
-rw-r--r--. 1 username man 76 Jun 28 22:08 index.html

So my question is: What the hell is that DOT following the rwx columns? I've never seen it before, and can't find any documentation describing it. Also, could this be part of the problem? This is RHEL 6.1, btw.
Can you show the output of a tail /var/log/httpd/error_log? That would help diagnose the issue ...
 
Old 06-29-2011, 03:31 PM   #5
cskip
LQ Newbie
 
Registered: Jul 2009
Posts: 8

Original Poster
Rep: Reputation: 0
Well, I did it again - I'm getting into a bad habit of answering my own questions immediately after posting them. After 1 week of troubleshooting, I was sure that I had SELinux disabled, but of course I didn't. That was the problem. Thanks for the reply though, sandwormusmc and opnsrc!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
listing files and burning files - just a question radiodee1 Debian 1 11-26-2006 08:29 AM
Iptables listing question redhatattack Linux - Security 6 11-07-2006 05:21 PM
ls question: how to avoid listing contents of subdirectories learnfast Linux - Newbie 2 03-09-2005 09:59 AM
listing groups question?? samills70 Red Hat 1 06-11-2004 01:59 PM
Apache directory listing question ScreeminChikin Linux - Software 6 04-15-2004 03:33 AM


All times are GMT -5. The time now is 08:06 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration