I'm running a dedicated machine, but having problem with folder problems

dimitri.adamou

Registered
Jan 20, 2011
4
0
51
Hey there, new user (and had trouble with registration here for a bit hehe :P)

anyhow straight to the point -

I am running a dedicated fully managed machine using WHM + Cpanel, I have 2 accounts. 1 account suvads contains all the core files/photos, and I have another account mycarads. I want mycarads to access suvads/public_html to use the core files + photos ... but I keep getting a permission denied error.

I modifed open_basedir to include the following directories "/home/suvads/ftp/:/home/mycarads/public_html/:/home/suvads/public_html:/home/suvads/sites/"

the account user mycarads can access /home/suvads/ftp but not the other ones.

any help would be GREATLY appreciated!

Thank you very much,
Regards,
Dimitri
 

dimitri.adamou

Registered
Jan 20, 2011
4
0
51
Ok we're a step closer, mycarads can access suvads public_html now since its running under DSO (and switch over to FastCGI once recompiled) as advised by our server manager, but now having issues accessing the cache which is

suvads/public_html/include/cache/general/

Warning: fopen(/home/suvads/public_html/include/cache/general/bd47bc9cc3ca9a564873ebf8ce092617.tmp) [function.fopen]: failed to open stream: Permission denied in /home/suvads/public_html/include/methods/general.php on line 613

Warning: fwrite() expects parameter 1 to be resource, boolean given in /home/suvads/public_html/include/methods/general.php on line 614

Warning: fclose() expects parameter 1 to be resource, boolean given in /home/suvads/public_html/include/methods/general.php on line 615

edit: Sorry just in a state of panic, since we have alot of live users and this error was completely unexpected - was working fine as we previously had it as an add-on domain .. anyhow issue is solved now just did a chmod 0777


Just for a future reference in case anyone else comes accross this page and error -suPHP seems to have problems with open_basedir (if you want to go across into multiple accounts - otherwise its doing its job right), so use either DSO or FastCGI
 
Last edited:

cPanelTristan

Quality Assurance Analyst
Staff member
Oct 2, 2010
7,607
43
348
somewhere over the rainbow
cPanel Access Level
Root Administrator
Hello Dimitri,

The only way I know to allow them to share these files would be to disable FileProtect for suPHP, which would be insecure to do so. Otherwise, you could enable DSO rather than suPHP as you've indicated and have the files owned by nobody group, which the users should then be able to share them on the system for those nobody owned files.

To disable FileProtect, you would do:

/scripts/disablefileprotect

Thanks.
 

dimitri.adamou

Registered
Jan 20, 2011
4
0
51
hey there, having some more problems now :(

This time im having random permission denied errors when accessing user made files/jpegs.

For example; I have a process where people upload photos and a new directory is created.

But when they upload their photos they are getting a permission denied error ( from both sites now?)

so yeah a
 

cPanelTristan

Quality Assurance Analyst
Staff member
Oct 2, 2010
7,607
43
348
somewhere over the rainbow
cPanel Access Level
Root Administrator
Did you change back to suPHP and yet keep the files or folders chowned to 777? suPHP doesn't allow 777 permissions. It allows 755 for folders and 644 for files as the highest permission levels.