httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 35584] - Suexec does not change Privileges.
Date Tue, 18 Oct 2005 11:04:30 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=35584>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=35584


cono@uaportal.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         OS/Version|Linux                       |FreeBSD




------- Additional Comments From cono@uaportal.com  2005-10-18 13:04 -------
I have the same problem.

Some CGI wrote files in other mode:
 if ($out_filename){
    my $outdir=$out_filename;  #check dir
    $outdir=~ s/[^\/]*$//;
    mkpath($outdir,0);
    open(OUTFILE,">$out_filename") || die_c("Can't open out [$out_filename] file");
    print OUTFILE $page;
    close(OUTFILE);
 }

Sometimes this code wrote files in ua:ua 0600 privilagies, sometimes in ua:ua 0644.
Apache config:

AddHandler cgi-script .cgi

<VirtualHost 217.20.163.57:*>
ServerName www.uaportal.com
DocumentRoot /data/uaportal_site/public_html
ServerAdmin admin@uaportal.com
ErrorLog /backup2/apache_logs/uaportal_site/error.log
CustomLog /backup2/apache_logs/uaportal_site/access.log combined
<Directory "/">
  AllowOverride All
</Directory>
#LogFormat "%s \"%r\" %{referer}i %h %t"
#TransferLog /data/uaportal_site/logs/access.log
ServerAlias uaportal.com
ScriptAlias /cgi-bin-cd/ "/data/uaportal_site/cgi-bin-cd/"
#<Directory /data/uaportal_site/cgi-bin-cd/>
#  CharsetDisable on
#</Directory>
SuexecUserGroup ua ua
Redirect /TV http://tv.uaportal.com
Redirect /Auto http://auto.uaportal.com
Redirect /friends http://friends.uaportal.com
Redirect /Personal http://personal.uaportal.com
Redirect /sub http://www.uaportal.com
Redirect /sub/friends http://friends.uaportal.com
Redirect /sub/personal http://personal.uaportal.com
    <IfModule mod_fastcgi.c>
        <Location /cgi_bin/*.fcgi>
            SetHandler fastcgi-script
        </Location>
    </IfModule>

#### FOR AWSTATS
Alias /awstatsclasses "/usr/local/awstats/wwwroot/classes/"
Alias /awstatscss "/usr/local/awstats/wwwroot/css/"
Alias /awstatsicons "/usr/local/awstats/wwwroot/icon/"
#ScriptAlias /awstats/ "/usr/local/awstats/wwwroot/cgi-bin/"
Alias /awstats "/usr/local/awstats/wwwroot"
#####

</VirtualHost>

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


Mime
View raw message