login help

2001-04-16 Thread arfan
dear all i have created a username on debian machine .now i want ssh to that machine so there comes always root passwd ssh 192.168.2.21 then shell ask for root passwd but i want to login as user ie ssh 192.168.2.21 arfan but does not work pls help regards

Re: As relates to Software QA

2001-04-16 Thread Peter Scott
[I'm going to keep this in the group, others deserve to see the answers.] At 02:25 AM 4/17/01 +, Michael Mitchell wrote: >Thanks again! > >Frequently need to do data validation, NT based intranet, SQL >server. Using 32win perl, the Indigo Perl distribution. > >I know the tables, etc., have

Re: regular expression match?

2001-04-16 Thread Paul Johnson
On Mon, Apr 16, 2001 at 11:37:14AM -0700, Prentice, Phillip R wrote: > Hello, > > I am fairly new to perl and am having problems matching a specific > character. I want to be able to match the "_" character at the end of a > string. For example, asume I have an array of strings with the followi

how to use crypt() function to encrypt and decrypt shell user pass

2001-04-16 Thread gaga
I need to create simple perl programs that modify user's password on linux machine (using # usermod) but I dunno how to use its pass encryption thanx or maybe there's another better approach on this regards gaga __ Do You Yahoo!? Get email at your

RE: regular expression match?

2001-04-16 Thread David Vergin
Everyone keeps giving regular expressions which include provision for the characters before the '_'. No need. This will do nicely: m/_$/...or just /_$/ Means: "Match a string that has '_' as the last character". You don't need to explicitly deal with the preceeding characters if there

Re: As relates to Software QA

2001-04-16 Thread Peter Scott
[Brought back to the group.] >Thanks for asking the question. I trying to find the route used for making >PERL a tool to test non-PERL apps. Interesting. Well, I'd have to know a lot more about the type of application you propose testing. If you're executing applications that simply change

Re: regular expression match?

2001-04-16 Thread Matt Cauthorn
It REALLY helps me to verbally walk through a regex. Your original one (m/$\w+\_/) says something like: "match the end of the line ($) followed by one or more word characters followed by ??? Not sure, because the "_" doesn't need to be escaped. If you want to match *any* string with the last cha

Re: Perl CGI Security

2001-04-16 Thread Brent Michalski
Ray, The documentation at: http://www.perl.com/pub/doc/FAQs/cgi/www-security-faq.html is also a very good resource... If I *too* may inflect a bit of hubris... http://www.perlcgi-book.com Good luck! Brent

Re: use strict;

2001-04-16 Thread Tad McClellan
On Mon, Apr 16, 2001 at 08:37:09PM +0100, Nic LAWRENCE wrote: > Thought I'd have a go at securing one of my scripts after Ray's question > about security. When using "strict", I am told the following: > > Scalar value @views_keys[$k] better written as $views_keys[$k] at > ./newremote2.pl line 32

RE: use strict;

2001-04-16 Thread Peter Scott
At 08:48 PM 4/16/01 +0100, Nic LAWRENCE wrote: >All becomes clear. Thanks. BTW, I used the wrong section from perldiag below; I should have picked the part on array slices for your example. But it's practically identical except for [] instead of {} :-) > > -Original Message- > > From:

Re: use strict;

2001-04-16 Thread David H. Adler
On Mon, Apr 16, 2001 at 08:37:09PM +0100, Nic LAWRENCE wrote: > Thought I'd have a go at securing one of my scripts after Ray's question > about security. When using "strict", I am told the following: Actually, it's having warnings on that causes this, not strict. This, incidentally, is a *good*

Re: use strict;

2001-04-16 Thread Casey West
On Mon, Apr 16, 2001 at 08:37:09PM +0100, Nic LAWRENCE wrote: : Thought I'd have a go at securing one of my scripts after Ray's question : about security. When using "strict", I am told the following: : : Scalar value @views_keys[$k] better written as $views_keys[$k] at : ./newremote2.pl line 327

Re: use strict;

2001-04-16 Thread Peter Scott
At 08:37 PM 4/16/01 +0100, Nic LAWRENCE wrote: >Thought I'd have a go at securing one of my scripts after Ray's question >about security. When using "strict", I am told the following: > >Scalar value @views_keys[$k] better written as $views_keys[$k] at >./newremote2.pl line 327. >Scalar value @_[0

use strict;

2001-04-16 Thread Nic LAWRENCE
Thought I'd have a go at securing one of my scripts after Ray's question about security. When using "strict", I am told the following: Scalar value @views_keys[$k] better written as $views_keys[$k] at ./newremote2.pl line 327. Scalar value @_[0] better written as $_[0] at ./newremote2.pl line 342

RE: regular expression match?

2001-04-16 Thread blowther
Geeze, these answers come in much faster than I can type... I did want to check your use of an array... You're using hash access: $array{0} = 'clk_n'; Shouldn't this be $array[0] = 'clk_n'; -Original Message- From: Prentice, Phillip R [mailto:[EMAIL PROTECTED]] Sent: Monday, April 16

Re: regular expression match?

2001-04-16 Thread David H. Adler
On Mon, Apr 16, 2001 at 11:37:14AM -0700, Prentice, Phillip R wrote: > > I want to be able to match the "_" character at the end of a string. > For example, asume I have an array of strings with the following data: > > $array{0} = "clk_n" > $array{1} = "test_in_6_" > $array{2} = "clk_out" >

Re: regular expression match?

2001-04-16 Thread Dan Brian
Phillip - > I want to create a regular expression which will match $array{1} and not the > others in the array. This is what I have so far. > > foreach (@array) { > if(m/$\w+\_/) { >print "Matched, $_\n"; > } > } To match at the end of the string, you should anchor with '$' at the end

regular expression match?

2001-04-16 Thread Prentice, Phillip R
Hello, I am fairly new to perl and am having problems matching a specific character. I want to be able to match the "_" character at the end of a string. For example, asume I have an array of strings with the following data: $array{0} = "clk_n" $array{1} = "test_in_6_" $array{2} = "clk_out"

Re: Perl CGI Security

2001-04-16 Thread Casey West
On Mon, Apr 16, 2001 at 11:39:50AM -0700, Peter Scott wrote: : At 01:13 PM 4/16/01 -0400, Casey West wrote: : > : >WRT Perl, you can eliminate most major problems with the use of '-T'. : >Make sure your CGIs start with these lines: : > : >#!/path/to/perl -wT : >use strict; : > : >If you can get yo

Re: As relates to Software QA

2001-04-16 Thread Peter Scott
At 09:07 AM 4/16/01 -0700, Michael Mitchell wrote: >Currently I'm a strictly blackbox tester type, but see the utility of perl >for testing. What would be the best resource for learning PERL pointing >to that goal? That is, should I pay more attention to one area over another? Are you talking

Re: Perl CGI Security

2001-04-16 Thread Peter Scott
At 01:13 PM 4/16/01 -0400, Casey West wrote: >On Mon, Apr 16, 2001 at 12:03:21PM -0600, Ray Calkins 100660207 wrote: >: Hello All: >: >: I'm want to write a few CGI programs for my web site, but I've heard >there are >: some (unspecified) security issues with Perl and CGI. How can I avoid >leav

As relates to Software QA

2001-04-16 Thread Michael Mitchell
Currently I'm a strictly blackbox tester type, but see the utility of perl for testing. What would be the best resource for learning PERL pointing to that goal? That is, should I pay more attention to one area over another? -newbie mike

RE: Perl CGI Security

2001-04-16 Thread Ray Calkins 100660207
> What type CGI are you going to be writing? Lots of different stuff I want to do, but I thought I'd start with a chat or BBS-like script, as there seem to be a few availible to work from. Ray Calkins [EMAIL PROTECTED] [EMAIL PROTECTED] "My opinions are my own, and do not reflect tho

RE: Perl CGI Security

2001-04-16 Thread Nic LAWRENCE
Actually that's a good question which I should look in to myself too. Especially seeing as I'm self taught .. (goes to check out the url you gave)... What type CGI are you going to be writing? > -Original Message- > From: Ray Calkins 100660207 [mailto:[EMAIL PROTECTED]] > Sent: 16 April

Re: Perl CGI Security

2001-04-16 Thread Casey West
On Mon, Apr 16, 2001 at 12:03:21PM -0600, Ray Calkins 100660207 wrote: : Hello All: : : I'm want to write a few CGI programs for my web site, but I've heard there are : some (unspecified) security issues with Perl and CGI. How can I avoid leaving : myself open? WRT Perl, you can eliminate mos

Perl CGI Security

2001-04-16 Thread Ray Calkins 100660207
Hello All: I'm want to write a few CGI programs for my web site, but I've heard there are some (unspecified) security issues with Perl and CGI. How can I avoid leaving myself open? I have read http://www.csclub.uwaterloo.ca/u/mlvanbie/cgisec/ "CGI Security Tutorial", but it's a little over m

Re: DBD and DBI::Pg

2001-04-16 Thread Joel Divekar
Hi At 09:19 PM 4/15/2001 -0400, Joel Burton wrote: >On Sun, 15 Apr 2001, N@ta$ wrote: > > > -A Quake3Arena server > > HAVE IT > > > > -An SQL database compatable with Perl:DBI:DBD and PHP4 > > CURRENTLY RUNNING PostgreSQL, but HAVE NOT INSTALLED DBI::DBD > > > > -Perl > >R

Re: help ma as i am new commer

2001-04-16 Thread Joel Divekar
Hi Arfan Search www.perl.com At 10:44 PM 4/15/2001 +0500, arfan wrote: >hi to all >i am very new in perl world pls tell me the site from where i can get >all perl documentation and notes >hoping reply >arfan hmad rana Arfan you are from where ? Joel Mumbai, India --