GIDForums  

Go Back   GIDForums > Web Hosting Forums > Apache Web Server Forum
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread
  #1  
Old 17-Jan-2005, 04:50
the_last_rites the_last_rites is offline
New Member
 
Join Date: Jan 2005
Posts: 2
the_last_rites is on a distinguished road

Newbie Problems. Help me guys


ok heres my problem . I am a total *nix noob and as expected the concept of permissions became a nightmare for me. My problem , to be more specific is that I am using Apache running on perl and I need to chmod some directories to 777 in a certain perl script while creating those directories because otherwise Apache cannot create the directories ( apache logs in as "apache" ) Ok guys i need to get rid of that 777 hole, found that suexec wud be a solution , but it looks like a roundabout way and moreover the whole damn thing sounded too confusing for me.I Know there has to be an easier method than that , so please help u apache and linux geniuses
  #2  
Old 17-Jan-2005, 16:40
JUNK KED JUNK KED is offline
Junior Member
 
Join Date: Oct 2003
Location: uk&ireland
Posts: 85
JUNK KED will become famous soon enough

Not to hot on this subject but......


I am not to hot on this subject myself but if you give us a more precise description of what you want to know may be somebody else wil be able to help.

This is what I read in your meassage.

1. you are trying to use a pearl script to create a directory.

2. you want the script to give the directory CHMOD 777

Stuff that we need to know

1. Are you creating the directories inside another directory if so what permission does that directory have.(are you allowed read and write )

2. a sample of your script so that we can find any mistakes

3.Where is the script bieng run from.(does the user of the script have read and write)

4. what are the error messages that you are\getting.

If you give more info you will get more responses.
There is also the problem of permissions being masked, I know very little about it but if you try CMOD 777 and the root user has set up masking 022 the final chmod will be 755 this is to prevent scripts from creating or deleting files.
__________________
Junk Ked
www.domain-names-registrar.com
  #3  
Old 17-Jan-2005, 21:09
the_last_rites the_last_rites is offline
New Member
 
Join Date: Jan 2005
Posts: 2
the_last_rites is on a distinguished road
no no no its not like i want to chnmod them to 777, its just that apache cant create the directories otherwise. as of rite now the script does give user read and execute, but it is the directories which is the security hole, they have been created with 777 mode(let me repeat otherwise they dont get created. I need some way to get over that so that the external users dont have complete access to the directories
  #4  
Old 18-Jan-2005, 04:58
JdS's Avatar
JdS JdS is offline
Senior Member
 
Join Date: Aug 2001
Location: KUL, Malaysia
Posts: 3,371
JdS will become famous soon enough
Just create the directory and ask your web host to change the ownership of the directory to "apache" giving it full permissions as the 'user'.
  #5  
Old 18-Jan-2005, 11:57
JUNK KED JUNK KED is offline
Junior Member
 
Join Date: Oct 2003
Location: uk&ireland
Posts: 85
JUNK KED will become famous soon enough
Quote:
Originally Posted by the_last_rites
no no no its not like i want to chnmod them to 777, its just that apache cant create the directories otherwise. as of rite now the script does give user read and execute, but it is the directories which is the security hole, they have been created with 777 mode(let me repeat otherwise they dont get created. I need some way to get over that so that the external users dont have complete access to the directories


Why not change the chmod of the directory AFTER it is created.

Also it seems strange that your hosting provider would allow 777 to be the default for creating new directories from a user script. As you say it is a security hole.
__________________
Junk Ked
www.domain-names-registrar.com
 
 

Recent GIDBlogA Week in Kuwait by crystalattice

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

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

vB 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
My friend's Geforce FX 5700 Problems SaberClash1337 Computer Hardware Forum 2 01-Aug-2004 20:16
newbie with pointer problems. moltarim C Programming Language 1 14-May-2004 09:46
Chaintech Geforce 5600 FX problems bartster74 Computer Hardware Forum 8 04-May-2004 13:16
Please Help, problems writing newbie c program soulfly C Programming Language 14 04-Mar-2004 15:16
Please Help, problems writing newbie C program ReREVISED soulfly C Programming Language 0 02-Mar-2004 22:01

Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The

All times are GMT -6. The time now is 01:43.


vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.