Re: [Cgi-session-user] help with file permissions
Brought to you by:
sherzodr
From: Matt L. <mle...@cp...> - 2007-01-18 17:02:39
|
I take it you're using CGI::Session 3.95? The UMask option was added in 4.08. However, this may not matter at all. What is the umask of the process? This might just be a side effect of how sysopen works. Please refer to http://perldoc.perl.org/functions/sysopen.html for more information. On 1/18/07, K.G. Woltz <kg...@se...> wrote: > Thanks Matt, unfortunately that didn't fix it. > I have also edited File.pm where I found "0644" to "0664", didn't fix > it. > My creator line now ---- > $s = CGI::Session->new("driver:File", $sid, > {Directory=>"$server_path/cgi-bin/session/", UMask => 0664 }) or > ERROR(CGI::Session->errstr); > > It looks like I'm going to have to revert to chmod after the file is > written > - > KG > > -----Original Message----- > From: cgi...@li... > [mailto:cgi...@li...] On Behalf Of > Matt LeBlanc > Sent: Wednesday, January 17, 2007 10:47 PM > To: K.G. Woltz > Cc: cgi...@li... > Subject: Re: [Cgi-session-user] help with file permissions > > Both the file and db_file drivers take a UMask option. So it'd be > something to the effect of: > > my $s = CGI::Session->new("driver:file",$sid,{ UMask => 0664 }); > > On 1/17/07, K.G. Woltz <kg...@se...> wrote: > > I am using CGI::Session with the options to save session data to > files. > > My question is "How do I get the files to create with permissions of > 664 > > instead of 644?" > > My CGI programs are doing fine with the status quo but I need to let > > another program (JAVA) share the files for reading and writing. > > Thanks, > > - > > KG > > > > > ------------------------------------------------------------------------ > - > > Take Surveys. Earn Cash. Influence the Future of IT > > Join SourceForge.net's Techsay panel and you'll get the chance to > share your > > opinions on IT & business topics through brief surveys - and earn cash > > > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDE > V > > _______________________________________________ > > Cgi-session-user mailing list > > Cgi...@li... > > https://lists.sourceforge.net/lists/listinfo/cgi-session-user > > > > ------------------------------------------------------------------------ > - > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share > your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDE > V > _______________________________________________ > Cgi-session-user mailing list > Cgi...@li... > https://lists.sourceforge.net/lists/listinfo/cgi-session-user > |