Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
suPHP and umask()
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
Milligan
n00b
n00b


Joined: 21 Aug 2006
Posts: 1

PostPosted: Mon Aug 21, 2006 12:42 pm    Post subject: suPHP and umask() Reply with quote

I have a problem with a gentoo box, that has apache2 with suphp installed.

Default, when uploading files and moving them from /tmp, files are now uploaded with mode 600. I need them to be 644. I have come to the conclusion that I need to use umask to globally change this setting. Due to the implementation situation, it's not an option to either script og manually change permissions on these files. This needs to be done environmentally.

I have tried editing the umask setting in suphp.conf, but it doesnt seem to do anything, what so ever. I have tried editing other lines in the config file to force errors to check that the file is being parsed, and that seems OK. I.e changing the min_uid to an insane number gives me internal server errors and reports to the log.

Logging seems to be working. When a script executes, it reports to the logfile which logs the exact time of execution, and what user has performed it.

I have tried adding umask 0133 to apache2ctl and to /etc/init.d/apache2, but they don't seem to be doing anything what so ever. Addind it doesnt give me errors, but doesn't give me a change in behaviour either.

I have been googling this, and I saw some talk about a patch, but I haven't found the patch, and I have also come to the conclusion that this patch is talking about an older version of suphp.

Any help or ideas would be greatly appreciated.
Back to top
View user's profile Send private message
adelante
Tux's lil' helper
Tux's lil' helper


Joined: 19 Apr 2003
Posts: 133
Location: South Africa - Johannesburg

PostPosted: Tue Mar 27, 2007 9:22 am    Post subject: Reply with quote

set your umask in your /etc/suphp.conf to :

;Umask to set, specify in octal notation
umask=0022


Dave
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum