LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 08-26-2005, 10:47 AM   #1
javier_ccs
Member
 
Registered: Apr 2005
Location: Milton Keynes
Distribution: ubuntu 12.10
Posts: 87

Rep: Reputation: 15
problem with a user group and apache


hello,

i'm trying to install IPplan on my debian 3.1 box, but i keep gettin this error when trying to change the directory ownership and permissions of the installation dir:

+chown -R root.nobody ipplan
+chown: `root.nobody': invalid group


it appears that i don't have a nobody group, so i change it to
+chown -R root.nogroup ipplan
then, according to installation manual
+chmod -R 750 ipplan

then i opened a web browser and pointed it to the installation script in the admin directory (http://mywebserver.com/ipplan/admin/install.php)

but i got this error:

Forbidden
You don't have permission to access /ipplan/admin/install.php on this server.

Apache/1.3.33 Server at mywebserver Port 80

can anyone help me out here....????
 
Old 08-26-2005, 10:54 AM   #2
Nathanael
Member
 
Registered: May 2004
Location: Karlsruhe, Germany
Distribution: debian, gentoo, os x (darwin), ubuntu
Posts: 940

Rep: Reputation: 32
how about using a colon (:)
chown -R root:nogroup ipplan

by the way:
if you chmod top 750 opn a ownership of root:nogroup your apache webserver will not be able to read or execute since this runs as www-data on most debian systems.

Last edited by Nathanael; 08-26-2005 at 10:57 AM.
 
Old 08-26-2005, 11:13 AM   #3
javier_ccs
Member
 
Registered: Apr 2005
Location: Milton Keynes
Distribution: ubuntu 12.10
Posts: 87

Original Poster
Rep: Reputation: 15
thanx...
Quote:
if you chmod top 750 opn a ownership of root:nogroup your apache webserver will not be able to read or execute since this runs as www-data on most debian systems.
yeah that's what i tough but since it was on the installation manual, anyway, i chmod it to 755, 757 and even 777 and i keep getting the same error....

that's why i guess (just guessing) it could be an apache misconfiguration problem.... i got this errors on the logs:

[Fri Aug 26 11:07:26 2005] [error] [client x.x.x.x] (13)Permission denied: access to /ipplan/admin/install.php failed because search permissions are missing on a component of the path

can anyone tell me what am i doing wrong?
 
Old 07-26-2011, 09:37 AM   #4
bens78
LQ Newbie
 
Registered: Jul 2011
Posts: 3

Rep: Reputation: Disabled
Hello Javier_ccs,

Did you find the solution to your problem? I have exactly the same issue and i realy don't know how to fix that. Please tell me if you have the solution!

Thanks a lot.
 
Old 07-26-2011, 09:25 PM   #5
chrism01
Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.5, Centos 5.10
Posts: 16,311

Rep: Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040
Quote:
search permissions are missing on a component of the path
that is usually controlled by the 'x' perm on the dir; you prob need it set on all dirs in the path...
 
Old 07-27-2011, 03:38 AM   #6
bens78
LQ Newbie
 
Registered: Jul 2011
Posts: 3

Rep: Reputation: Disabled
thanks a lot chrism01 for answering me!
But, I'm a novice and i'm afraid I didn't understood everything.
what's the 'x' perm? and could you give me an example when you say "you prob need it set on all dirs in the path..."?
Thanks a lot and exuse me for bothering you.
 
Old 07-27-2011, 08:30 PM   #7
chrism01
Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.5, Centos 5.10
Posts: 16,311

Rep: Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040
Quote:
search permissions are missing on a component of the path
path = dir tree from the root eg /var/www/html...
component = one dir eg www

On a file, perms
r = read
w = write
x = execute

On a dir
r = read
w = write
x = search

Perms come in groups of 3
u = user
g = group
o = other (aka world)

Use
Code:
ls -l

# file
-rw-r--r--   1 me mygroup          0 Jun 17 11:03 a.t

# dir
drwxr-xr-x   2 me mygroup       1024 Jul 12 08:55 syscheck
http://rute.2038bug.com/index.html.gz
http://www.tuxfiles.org/linuxhelp/filepermissions.html
http://linux.die.net/man/1/chmod
http://linux.die.net/man/1/chown

HTH
 
Old 07-28-2011, 04:53 AM   #8
bens78
LQ Newbie
 
Registered: Jul 2011
Posts: 3

Rep: Reputation: Disabled
Thanks again for your help chrism01!
 
  


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
User and Group Admin: How to tell Who is in What group? Akhran Linux - Newbie 1 11-13-2005 12:16 AM
what is the webserver's (apache) default user/group on SuSe MaestroC Suse/Novell 1 09-09-2005 02:15 PM
Apache 2.0.53, vhost, each having its own user:group Davus Linux - Software 1 02-28-2005 12:44 AM
Apache Webserver 403 Forbidden Errors (User not in apache group?) Mankind75 Mandriva 4 07-08-2004 06:30 AM
Problem with user group naza Linux - Security 1 02-05-2004 07:11 PM


All times are GMT -5. The time now is 02:16 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration