ROTECTED]>
To: "Nichole Bialczyk" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Monday, June 04, 2001 6:39 PM
Subject: Re: i'm warning you, this is a toughie!
> At 05:00 PM 6/4/01 -0500, Nichole Bialczyk wrote:
> >The difference is that in Unix, I have admin per
brainsrv(21)>ls -altd /tmp
drwxrwxrwt2 root root 349 Jun 4 17:06 /tmp
is this what you needed?
On Mon, Jun 04, 2001 at 06:04:21PM -0400, Mathew Hennessy wrote:
> Nichole Bialczyk wrote:
> >
> > The difference is that in Unix, I have admin permissions and
, 2001 at 05:51:51PM -0400, Brett W. McCoy wrote:
> On Mon, 4 Jun 2001, Nichole Bialczyk wrote:
>
> > The problem is that I don't know exactly what the problem is. I can write
> > to the logfile when I run it in Unix, but not when I try to access it
> > from the web. He
2001 at 05:40:52PM -0400, Brett W. McCoy wrote:
> On Mon, 4 Jun 2001, Nichole Bialczyk wrote:
>
> > the bossman has requested the following:
> >
> > he wants my logfiles written to our server in the /tmp directory. my
> > scripts are in the cgi-bin of our afs account
the bossman has requested the following:
he wants my logfiles written to our server in the /tmp directory. my
scripts are in the cgi-bin of our afs account. even though the files are
set with 777 permissions, the outside world can not write to these files.
here is part of one of my scripts:
#
o it only works as
> long as everyone checks the file with flock before working with it, so it's
> not very secure. The point of flock is to keep several programs from
> clobbering each others data so I don't think using it as a security feature
> will work well. What are you
i'm curious as to how secure flock is. if the file is locked and another
user tries to access it, does it wait or does it kick them off? also, is
it ever possible for it to get stuck?
thanks, nichole
i was just informed by my boss that as soon as i finish writing the
perl/cgi scripts that he gave me to do, that i will transfer over to the
java department. this listserve has been so helpful; i was wondering, do
any of you know of a java listserve that is as good as this one?
my knowledge of
nt ;# print the rest of the file.
> close IN; # get rid of the filehandle
> open OUT, "> $file" or die "$file:$!"; # replace file
> print OUT $temp; # stick first line back in
> close OUT;
ss to.
On Fri, Jun 01, 2001 at 05:39:31PM -0400, KeN ClarK wrote:
> So anycrack could write to it prior to it being 'moved' right? And then
> you have non-world-writeable data under the premise it is untampered.
> What's the difference?
>
> Ken
>
> O
so how do i delete the lines that i read in? (keeping the first one so
that the file still exists)
On Fri, Jun 01, 2001 at 02:08:25PM -0700, Paul wrote:
>
> --- Nichole Bialczyk <[EMAIL PROTECTED]> wrote:
> > to be more specific, i want to do this: read and delete all of the
well, so the copy didn't work. it required me to place 'use File::Copy;'
in my script, but i got an error message.
to be more specific, i want to do this: read and delete all of the lines
from a log file, except for the first one. i keep thinking grep, but
isn't that only a unix command? and
i think i found it. copy("file1", "file2");
that was too easy
On Fri, Jun 01, 2001 at 02:30:53PM -0500, Nichole Bialczyk wrote:
> i understand how to open and create files, but let's say that i want to
> open several files and insert them all into one lar
i understand how to open and create files, but let's say that i want to
open several files and insert them all into one large file. how would i
do that?
thanks, nichole
thanks, all.
ok, so i know how to write to an existing file, how do i create the file,
if it doesn't exist? i want to do something like,
pseudocode -- ewww!
if the file exists{
write to it
}
if the file does not exist{
create it
write to it
}
close the file
thank you. it's funny. i tried %s, but i thought that it meant spaces
after looking at my data. i didn't know that it was right justified :)
so that little '-' comes in handy!
nichole
i know that for numbers you can use sprintf %u, %i etc
is there something similair for alphnumerics?
nichole
i don't really deal with coffee too much, but i got a 24 pack of Dew in
the fridge!
On Thu, May 31, 2001 at 02:05:24PM -0700, Paul wrote:
>
> --- Nichole Bialczyk <[EMAIL PROTECTED]> wrote:
> > i just wanted to let everyone know that i appreciate all of the time
> &
i just wanted to let everyone know that i appreciate all of the time that
you spent on me (especially today). my log script runs absolutely
beautifully and my boss loves me! what else could i ask for?
now about that raise.
:) nichole
so how do i get around that?
On Thu, May 31, 2001 at 02:35:03PM -0500, Me wrote:
> > when i run my log script in unix
>
> it runs with your permissions
>
> > when i run my log script in IE
>
> it runs with the CGI's permissions,
> as controlled by the sys admin that
> set up the web server.
>
when i run my log script in unix, it works and writes to the log. when i
run my log script in IE, it can't open the file. permissions on the file
are 777.
thanks, nichole
i can't believe this. the whole problem is this: instead of working on my
work's afs account, i'm copying over the scripts to my account just in
case something goes wrong. well, i just moved to a different office and i
realized (just now) that i was using binary instead of ascii.
so i have was
e, $ENV{'REMOTE_HOST'} came here using
$ENV{'HTTP_USER_AGENT'}.\n";
close (LOG);
}
$logfile was declared at the beginning of my script:
my $logfile = "/afs/umr.edu/users/nmb/tmp/nmb.txt";
again, any help is most appreciated.
nichole
On Thu, May 31, 2001 at 02
i just realized that i shouldn't even be getting that error, b/c i am
using one of the machines that i told it NOT to write to the log. i
should have skipped the log subroutine completely and entered the site.
On Thu, May 31, 2001 at 01:18:04PM -0500, Nichole Bialczyk wrote:
> wha
what does a closed filehandle error mean? i'm trying to write to a log
and yes, the permissions for the directory and the log are 777.
thanks, nichole
thank you to everyone who gave me suggestions! i tried to use 'use vars'
but then i couldn't figure out how to assign $timelog to it. the other
method worked much better! i needed time log so that i could cycle throuh
all of the variables to add a 0 to the front of the number if it was <10.
th
so i've discovered the wonders of use strict; (it wasn't in my tutorial)
and i'm trying to declare this array:
my @timelog($sec,$min,$hour,$mday,$mon,$year) = localtime(time)[0,1,2,3,4,5];
and i get the error:
Global symbol "$sec" requires explicit package name
etc
etc
i tried putting 'my' be
that's what i thought, too. but i already did that.
- Original Message -
From: "Asim Memon" <[EMAIL PROTECTED]>
To: "Nichole Bialczyk" <[EMAIL PROTECTED]>
Sent: Thursday, May 31, 2001 2:07 AM
Subject: Re: writing to a text file --> permission den
eally appreciate everyone's help. maybe one day i can aspire to be a
guru! :)
- Original Message -
From: "Michael Fowler" <[EMAIL PROTECTED]>
To: "Nichole Bialczyk" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Thursday, May 31, 2001 1:17 AM
Sub
i'm trying to write a log file and i can't seem to open it to write to. the file does
exist. here is the code for opening the file:
if(! open(LOG, ">xxx.txt)) {
print "Content-type: text/html\n\n";
print "Can't open xxx.txt\n";
exit;
}
print LOG "At $date, $ENV{'REMOTE_HOST'} etc., etc.
i'm trying to work my way throuh an existing script and it says
@array = qw("stuff", "more stuff", "even more stuff");
what does the qw do?
thanks, nichole
something
different. i guess we really are only blocking one address :)
On Tue, May 29, 2001 at 10:58:26AM -0400, Brett W. McCoy wrote:
> On Tue, 29 May 2001, Nichole Bialczyk wrote:
>
> > ok, so i'm trying to work my way through this script. there are blocked
> > addresses a
ok, so i'm trying to work my way through this script. there are blocked
addresses and they are stored in an array at something like
'd-131-151-136-22...xxx'. Where do I find this location on the
unix account? I need to be able to add more/ take away users from this file.
thanks, nichol
hi, i'm still new at perl and just now getting into security issues and the like.
basically, my boss wants me to be able to keep others from being able to access our
stuff. the perl guy before me stored it in our public_html/cgi-bin. apparently, this
is not the safest thing to do. anyone with a
never mind. for some reason it works now. i think that the server was
jsut toying with me ;)
i just started learning perl about 2 days ago and i'm trying to work my
way through a tutorial and it is just impossible to get this to work. the
same thing happened with a similair script, but i dismissed it as a
fluke. even the helpdesk on campus can't figure it out. any ideas?
thanks, nicho
37 matches
Mail list logo