Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 30th July 2006, 07:44 PM
Fault Offline
Registered User
 
Join Date: Jul 2006
Posts: 20
httpd permissions, hda1 User permissions, Cake?

After trouble shooting for the last day I officially think I am screwed

Apache doesn;t seem to wanna let people see anything in the html directory.


Permissions:
drwxrwxrwx 2 root root 4096 Jul 29 15:21 html
SeLinuix - off
Firewall - Tried with port 80 forwarded AND with it off
Router - All ports forwarded, Also In DMZ mode.

"Who can get stuff from this server" Allow from all.

http.conf is attached

Quote:
Forbidden

You don't have permission to access /index.html on this server.
Apache/2.2.2 (Fedora) Server at 67.177.145.213 Port 80

Any Ideas?


opps forgot the hda1 and cake.


Hda1. got it mounted. works perfectly on root. however no other user can use it. and I can;t change it's permissions by way of chmod. any ideas?


And free cakje to everyone here
Attached Files
File Type: conf httpd.conf (32.9 KB, 72 views)

Last edited by Fault; 30th July 2006 at 07:49 PM.
Reply With Quote
  #2  
Old 30th July 2006, 09:21 PM
indros Offline
Registered User
 
Join Date: Jun 2005
Posts: 7
Quote:
Originally Posted by Fault
After trouble shooting for the last day I officially think I am screwed

Apache doesn;t seem to wanna let people see anything in the html directory.


Permissions:
drwxrwxrwx 2 root root 4096 Jul 29 15:21 html
SeLinuix - off
Firewall - Tried with port 80 forwarded AND with it off
Router - All ports forwarded, Also In DMZ mode.

"Who can get stuff from this server" Allow from all.

http.conf is attached




Any Ideas?


opps forgot the hda1 and cake.


Hda1. got it mounted. works perfectly on root. however no other user can use it. and I can;t change it's permissions by way of chmod. any ideas?


And free cakje to everyone here
I would post the contents of your error log, but I suspect you may still have incorrect permissions on the files in the html directory.
Reply With Quote
  #3  
Old 30th July 2006, 09:38 PM
SlowJet Offline
Registered User
 
Join Date: Jan 2005
Posts: 5,002
The user of Apache is http and thus needs permission to access the files.
When you use root (implied SELinux roole of wbadmin) to
cp file into the html, SELinux will change the context in the http user (which would have the http permissions.)

mv would not change the context to http.

Without SELinux on, your cp or mv to html using root will leave the files as root owned.

Therefore you must chown to http and chmod to http's needs.

Turn on SELinux and let it do its magic.

SJ
__________________
Do the Math
Reply With Quote
  #4  
Old 30th July 2006, 10:31 PM
Fault Offline
Registered User
 
Join Date: Jul 2006
Posts: 20
Quote:
chown: `http': invalid user
however chmoding to 777 works for now.

I think the default server installs are Very buggy in FC5


there is no http user
mysql runs but I can't even connect to it.


Don;t know about php yet.. Im afraid to try...

the mysql issue..

Quote:
[root@localhost html]# mysql -u root
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
Reply With Quote
  #5  
Old 30th July 2006, 11:43 PM
SlowJet Offline
Registered User
 
Join Date: Jan 2005
Posts: 5,002
ops, the user name is apache
user ID 48
Primary Group apache
Full Name Apache
Logon Shell /sbon/nologon
Home Dir /var/www

SJ
__________________
Do the Math
Reply With Quote
  #6  
Old 30th July 2006, 11:45 PM
Fault Offline
Registered User
 
Join Date: Jul 2006
Posts: 20
ok. ill try that



i got tired of the sql errors so i ran yum remove mysql-server.i386 untill they fix it. and went to mysql.com and got the source and am curremtly compiling it.


edit

mysql just refuses to work.

compiled the source and tried starting it and get


[root@localhost mysql]# bin/mysqld_safe --user=mysql &
[1] 14008
[root@localhost mysql]# Starting mysqld daemon with databases from /usr/local/mysql/var
STOPPING server from pid file /usr/local/mysql/var/localhost.localdomain.pid
060730 19:28:07 mysqld ended



and it like freezes there

Last edited by Fault; 31st July 2006 at 12:30 AM.
Reply With Quote
  #7  
Old 31st July 2006, 11:34 AM
ccrvic Offline
Registered User
 
Join Date: Apr 2006
Posts: 1,092
Quote:
Originally Posted by Fault
however chmoding to 777 works for now.
Don't do that.

Running anything 777 is a mistake, with the possible exception of /tmp. You are just asking for vulnerability propagation.

Quote:
Originally Posted by Fault
I think the default server installs are Very buggy in FC5
No, the server installations are just fine. But you do need to know how to use a tool before you can produce very much with it.

Quote:
Originally Posted by Fault
mysql runs but I can't even connect to it.
Have you setup your firewall to allow you to connect to it? Have you configured your daemon to listen to the interface you're trying to use?

IME, although it's always tempting to blame the software for initial difficulties, it almost always comes down to user error. Not stamping one's feet and making noises in public places means one doesn't have to eat so much humble pie later...

Vic.
Reply With Quote
  #8  
Old 1st August 2006, 07:12 PM
Fault Offline
Registered User
 
Join Date: Jul 2006
Posts: 20
I've been using mysql for 3 years now. I know when software is faulty.

as for your questions. NO I even turned off the firewall just incase the settings for it was wrong and it wqs still not working!

Quote:
Have you configured your daemon to listen to the interface you're trying to use?
mysqlby default runs on port 3306 this hasn;t changed unless someone other then mysql devs changed it.
Reply With Quote
Reply

Tags
cake, hda1, httpd, permissions, user

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
New User - - Need Permissions nukesubvet Using Fedora 2 9th February 2009 12:48 AM
User permissions ElTaco Using Fedora 1 2nd February 2007 06:30 PM
HTTPD and file/folder permissions cypher543 Servers & Networking 7 28th October 2006 03:21 AM
user permissions Andrey:) Security and Privacy 2 14th January 2006 01:55 AM


Current GMT-time: 01:23 (Friday, 24-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat