Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

Apache permissions problem

Name: Anonymous 2012-02-07 13:40

Hey there /Prog/, I am unable to change permissions of my files in my apache's www folder. I realize this was for security reasons so I was wondering if there was a way to access folders not on my www directory for use by my php scripts. I have changed directories and I have used file_put function and when I echo my current directory  it tells me I am on my desktop but I cant seem to create a file there. I would be grateful if you all had knowledge to drop on me.

Name: Anonymous 2012-02-07 13:45

Do the rain dance.

Name: Anonymous 2012-02-07 13:47

testing whether elinks can do overline

Name: Anonymous 2012-02-07 13:51

The jews are after me.

Name: Anonymous 2012-02-07 13:56

>>4
just fart

Name: Anonymous 2012-02-07 13:57

fail

Name: Anonymous 2012-02-07 14:06

this board is full of 13 year old fan boys and 12 year old internet racists and doesn't afraid of anything.

Name: Anonymous 2012-02-07 14:19

>>7
Someone please prove me wrong. There is crazy lack of information out there on the subject. No one seems to be doing this kind of stuff.

Name: Anonymous 2012-02-07 14:23

>>1
No. If you have no superuser access, you're SOL.

Name: Anonymous 2012-02-07 14:40

>>9
I have superuser I just cannot change any permissions on files or folders. There has to be a way to give permissions to my scripts.

Name: Anonymous 2012-02-07 14:58

If you're running your PHP "scripts" via mod_apache (aka through a web server), they have the same permissions as the user running apache, probably something like "apache" or "httpd". This user won't have permission outside of the /var/www/ directory (or similar).

If you're running your "scripts" via the PHP command-line interface (CLI), they have the permissions of the user you run them with.

You could allow PHP to create files on your desktop by adding the apache user to your user's group, but this is bad practice (and you don't seem to know what you're doing at all). Or you can create folders with global write access, so any user can write to them.

Read up on Unix users/groups, and the commands chown and chmod.

Name: Anonymous 2012-02-07 15:04

>>11
The second option is what I want but even with chmod the permissions are locked. I cannot seem to modify any permissions

Name: Anonymous 2012-02-07 15:06

>>12
even with sudo chmod + any thing *

Name: Anonymous 2012-02-07 15:32

>>12
"I cannot seem to modify any permissions" - could you be any more vague? If you really have super user access, you can modify permissions. The only explanation is you're using the commands incorrectly.

Name: Anonymous 2012-02-07 15:56

>>11
Shut up you fucking faggot.

Name: Anonymous 2012-02-07 15:56

/var/www$ sudo chmod 777 storeit.txt


>put in password
>right click storit.txt
>permissions
>root user only

Name: Anonymous 2012-02-07 16:23

>>16
Confirmed for full retard. The owner and group for the file have full access, but so does "others", i.e. fucking everyone.

Name: Anonymous 2012-02-07 16:35

That would totally explain why my scripts report access denied.
>>17
Confirmed for total cunt. I said ONLY root. Not just that root owned the file.

Name: Anonymous 2012-02-07 18:38

You might not be able to do what you want, probably because of security.

Name: Anonymous 2012-02-07 19:36

>>19
Any suggestions?

Name: Anonymous 2012-02-07 20:11

>>20
Log in as root and chown it to yourself?

Name: Anonymous 2012-02-07 22:08

Log in as root a second time and dubz?

Name: Anonymous 2012-02-08 18:21

>>21

FUCK YES! I award you with 12 internets framed in gold.

Name: Anonymous 2012-02-08 19:40

>>23
Really? That was your problem?

Name: Anonymous 2012-02-08 20:38

>>24
What the fuck possessed you to help with configuring a goddamn webserver in the first place?

Name: Anonymous 2012-02-08 22:13

>>25
Autism

Name: Anonymous 2013-09-01 20:03



::::::: ::: :: : : : :,.: -r‐べ' ̄ヾ‐r-、__: : ::: :::::::::::|
::::: ::: :: : : /r'ア>‐'‐‐-^ 、!__/ >-、::: : ::: ::|  調
:::: ::: :: ::,:'_「/          ̄`ヽ/、::::: :::::|
::: ::: :: / 」_/    / _,,.!ィ/| .ハ   ,  Y: : :::::::|  子
::::::: ,' .|7 /   ハ ,ァ‐='、レ' |、/_ i | : : ::|
::::::: i∠__/ .メ !/ f`l    ,!=!、 i ', ::: ::::|  に  
:::::  |  ノイ.レ!ヘ  じ'    f i`|ハ ,ゝ :: :|
:::  ハ    r'ドハ."  ´   , り イレY    :|  乗
:: イ |   !ゝ〈Y〉,    ___   "!イノ   <
  / !   i  〈Xへ   ´‐┘ ,.イハ     |  る
  ヾヘ  ハ  iX〉_!>.、.,_,..イ〈X| 〉     .|
   〉へ,ヘr-ベ'!Y〉, `\/ ト、_!Y〉ヘ|      |  な
    r'>r>-}><{\_/[]、」 「X〉        ',
   /´  `ヾ〉ムi:::::::::/ ハ::::}><{`',       `''ー─
  i      Y__i:::::::/ / |:::::ムY i
  / /    ヽ、|::::〈_r、__,ゝ:::::::i  ',

Name: Anonymous 2013-09-01 21:35



   __,人_          ___(ゝ、,__    、       、l || l| | ll | l| ll | l| || ll l|l| ll |
   ) ,. - `て   ,.  '"´__,,,...,,,_     `>、ノ|       ミ
  < ( 、.,,_,,.. '´ , '"´     ` Y⌒ 、_   ヽ     ニ  何だか知らないけど
   ) '  ` ァ    /         |    )    、   三
      /  /  ,l         └‐= 升ゝ-- ..,_   ニ  こいしの貞操の危機!?
      '  /  /|     !    ト 、    ヽ    ハー‐ 彡,
    _ノ  {   / 八    ハ  -ノイ ヽ.   '     }    / | l| ll | l| || ll l|l || l| |l| ll | l
   `ヽ;   、 { ー-_ 、  |/ ァ芹七Tヽハ.   |    ;
    /   | ヽ ァ芹七ミ\!    乂_rノ 人!   '、   ;     ;
   ∠... イ  、 八 乂り       -   }   ト\ {     /
      |    ハ.` ー   .       xx.ノ  ハ   、   ,'
      人   .ムxx    _     ∠.. イ }  } \  { 
    , '´   )∠ 八    {´  `ヽ ι /   /  ノ` ̄   ;
   /      ,ィ公 、  `   '   イ  / , ' , '(   , -‐/、
   {        ./ ,> 、    ,   | ,'/イ ヽ),.∠.,  { ',
   、      ,' /{.   `ァf壬ハ.   ∨ >‐ァア´/  `ヽ、 }
    \     {'  \r'"´ _ノム-r'´   //  /     ∨
     )        _,r ァ''"  |_ /   /{ r , '  r‐-、   }、
    (.   , - 、 / r / γ⌒'´  Y  ///  /   ヽ / }─- 、
     `/ 、\ ∨   }'  _{    /、 /r'   r'      }、{     ヽ
    /7  、 ヽ ンリ 、/}/ }_,. イ ,. '"´ ̄` ヽ し、    /´ ̄ |    }
   r' /{ r、 ン´イ{  ,   /r'  / 、__,.  ∨{_r‐'´ 、  {    /
   } _{:}  )ノ::::り /  (`´)   { く弋__ヲ >  }r'  ヽ  Y 八  /

Name: Anonymous 2013-09-01 23:06



   _,.へ、_ _,....,_,./^L
   ) ___ ゝ'-─'─- 、i、
  く  γ´:::::::::::::::::::::::::::ヽ!
  iヽ,'::,'::::::/::::::::ハ::::i-=iニ',    
  |::::L!::::L!:ゝ、イ レi,.イハ::」    ∧ ☆
  .|::::|ヘ(Eイ〈ヒ_,!  ヒ,}〉iヨイ   /  ',
  .|::::|::レヽ!、"   ∀ "ノ.i::|   / r´i
  .|::::|::::|::|Vi >r-r=i´レiノ   / r' /
  |::||:::::γヽ!_ `'ハイiヽv__  ,〈 ,r'´/
  レヘハ,〈γ(・ヽ, ム !/^ /rつi>、/
     k.iゝ・)ノ_____,」、__ゝ(_ノ
      /  ̄7 ̄`! ヘ
    ,く / /   ! .ハ   
     ヽニr=-r_,r-=rニゝ  
       '--'  '--'

Don't change these.
Name: Email:
Entire Thread Thread List