MESSAGE
DATE | 2002-11-05 |
FROM | From: "gil rosado"
|
SUBJECT | Re: Fw: [hangout] Re: [nylug-talk] shell parser for /etc/passwdanyone?
|
Thanks for the suggestion...I did this but I still have a problem connecting...I may just end up getting a router to take care of the problem...Thanks just the same ----- Original Message ----- From: "Mike Richardson - Jounal Committee NYLXS" To: "gil rosado" Cc: Sent: Monday, November 04, 2002 12:00 AM Subject: Re: Fw: [hangout] Re: [nylug-talk] shell parser for /etc/passwdanyone?
> I have verizon dsl. I am using mandrake-linux 8.2 there is a pppoe and a > adsl config. try using : provider verizon.net,ip of 10.0.0.1 without > dchp leave the server ip empty(verizon will fill it in), your login and > password. if this does not work download kpppoe. > > On Sun, 3 Nov 2002, gil rosado wrote: > > > > > Thanks for the info Rueben however, I did already sign up with Verizon so I > > want to try to make it work at least for the time being....so ....Does > > anyone know how to configure one pc with Red Hat Linux 7.2 to work with > > Verizon DSL? I have been having alot of trouble setting up a pppoe app that > > I got from roaringpenguin.com. Isn't there an easier way to do this with > > network configurator? or should I instead try to do this via a router with a > > dhcp? > > Verizon uses assigns a dynamic IP address [ie, not static]...the PPPOE app > > gives me a timed out error message....any ideas? Rueben you mention > > SUSE....but would Red Hat 8 have this PPPOE app already included too? > > ----- Original Message ----- > > From: "Ruben Safir" > > To: "gil rosado" > > Cc: "Ruben I Safir" > > Sent: Sunday, November 03, 2002 7:44 PM > > Subject: Re: [hangout] Re: [nylug-talk] shell parser for /etc/passwd anyone? > > > > > > > The short answer is that Verizon uses this insane protical > > > called pppoe and there is great difficulty using their service, although > > > people do it. > > > > > > SuSe has this built in to make it a little easier, but by > > > far and away the easiest thing to do is to ditch Verizon and > > > get either ACEDSL or Covad, with an IP address. > > > > > > It will make your life MUCH happier in the long run. > > > > > > Verizon sucks, even with windows. > > > > > > Ruben > > > > > > On Sun, Nov 03, 2002 at 12:28:58PM -0500, gil rosado wrote: > > > > I use verizon DSL...here is the situation in nutshell... > > > > > > > > Somewhere in a linux newsgroup I read that I would need to > > download/install > > > > an app from roaringpenguin.com called rp-pppoe 3.5....I did this but I > > still > > > > get an error message when I try to connect....isn't there an easier way > > to > > > > do this via network configurator or internet configurator? > > > > > > > > ----- Original Message ----- > > > > From: "Ruben I Safir" > > > > To: "gil rosado" > > > > Cc: "Ruben I Safir" > > > > Sent: Saturday, November 02, 2002 10:48 PM > > > > Subject: Re: [hangout] Re: [nylug-talk] shell parser for /etc/passwd > > anyone? > > > > > > > > > > > > > Does it have a static IP? > > > > > > > > > > Which DSL Vender? > > > > > > > > > > Ruben > > > > > > > > > > On 2002.11.02 22:21 gil rosado wrote: > > > > > > Ruben...a non related question... > > > > > > > > > > > > I just got a DSL connection setup on windows....I am trying to get > > Red > > > > Hat > > > > > > 7.2 configured properly with it....it is a bit confusing....any > > > > suggestions? > > > > > > > > > > > > ----- Original Message ----- > > > > > > From: "Ruben I Safir" > > > > > > To: > > > > > > Cc: ; ;
> > > > > > Sent: Saturday, November 02, 2002 9:43 PM > > > > > > Subject: [hangout] Re: [nylug-talk] shell parser for /etc/passwd > > anyone? > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > On 2002.11.02 17:34 Sunny Dubey wrote: > > > > > > > > On Saturday 02 November 2002 03:55 pm, DAN-BOUZOUA ALI wrote: > > > > > > > > > What do you what to parse. > > > > > > > > > > > > > > > > > > I faced this kind of problem, I imported passwd file in > > excell > > > > and > > > > > > then in > > > > > > > > > a database (SQL) > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Who would do this in excell. > > > > > > > > > > > > > > The NYLXS Journal has an article just on this problem with awk in > > > > June, > > > > > > "Look Who's GAWKING" > > > > > > > > > > > > > > It's a quicky with Perl, plus whatever database connectivity you > > need. > > > > > > > > > > > > > > #!/usr/bin/perl > > > > > > > use strict; > > > > > > > > > > > > > > open FILE, "/etc/passwd"; > > > > > > > > > > > > > > my $passwd; > > > > > > > > > > > > > > while(){ > > > > > > > my -at-entry = split ':'; > > > > > > > $$passwd{$entry[0]} = {'login', $entry[0], 'passwd', > > > > $entry[1], > > > > > > 'uid', $entry[2], 'gid', $entry[3], > > > > > > > 'name', $entry[4], 'home', $entry[5], > > 'shell', > > > > > > $entry[6]}; > > > > > > > > > > > > > > } > > > > > > > > > > > > > > for my $tmp (sort %$passwd){ > > > > > > > print "Record $tmp\n"; > > > > > > > print "LOGIN " . $$passwd{$tmp}{'login'} . "\n"; > > > > > > > print "UID " . $$passwd{$tmp}{'uid'} . "\n"; > > > > > > > print "GID " . $$passwd{$tmp}{'gid'} . "\n"; > > > > > > > print "NAME " . $$passwd{$tmp}{'name'} . "\n"; > > > > > > > print "HOME " . $$passwd{$tmp}{'home'} . "\n"; > > > > > > > print "SHELL " . $$passwd{$tmp}{'shell'} . "\n"; > > > > > > > } > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > If I want to store it in a database, this is a little different - > > do > > > > you > > > > > > want to see an exaple of that? > > > > > > > > > > > > > > If you want to exclude and group, use grep > > > > > > > > > > > > > > perldoc -f grep > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > I need something that will go through /etc/passwd and export > > things > > > > like > > > > > > user > > > > > > > > dir and username to variables. I've got some shell code > > working, so > > > > I'm > > > > > > > > getting there, hehe. > > > > > > > > > > > > > > > > the following is the perl code. unlike my shell code, this > > actually > > > > > > works :^) > > > > > > > > > > > > > > > > Sunny Dubey > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > #!/usr/bin/perl > > > > > > > > > > > > > > > > open F, "> > > > > > > > PERSON: while () { > > > > > > > > ($user, $pass, $uid, $gid, $gcos, $home, $shell) = split /:/; > > > > > > > > next if $uid < 200 || $gid == 250; > > > > > > > > > > > > > > > > # Code! > > > > > > > > # Mode code!! > > > > > > > > > > > > > > > > } > > > > > > > > _______________________________________________ > > > > > > > > The nylug-talk mailing list is at nylug-talk-at-nylug.org > > > > > > > > To subscribe or unsubscribe: > > > > > > http://herzl.nylug.org/mailman/listinfo/nylug-talk > > > > > > > > > > > > > > > -- > > > > > > > __________________________ > > > > > > > Brooklyn Linux Solutions > > > > > > > __________________________ > > > > > > > DRM is THEFT - We are the STAKEHOLDERS http://fairuse.nylxs.com > > > > > > > > > > > > > > http://www.mrbrklyn.com - Consulting > > > > > > > http://www.inns.net <-- Happy Clients > > > > > > > http://www.nylxs.com - Leadership Development in Free Software > > > > > > > http://www2.mrbrklyn.com/resources - Unpublished Archive or > > stories > > > > and > > > > > > articles from around the net > > > > > > > http://www2.mrbrklyn.com/downtown.html - See the New Downtown > > > > Brooklyn.... > > > > > > > > > > > > > > 1-718-382-0585 > > > > > > > ____________________________ > > > > > > > New Yorker Free Software Users Scene > > > > > > > Fair Use - > > > > > > > because it's either fair use or useless.... > > > > > > > > > > > > > > > > > > -- > > > > > __________________________ > > > > > Brooklyn Linux Solutions > > > > > __________________________ > > > > > DRM is THEFT - We are the STAKEHOLDERS http://fairuse.nylxs.com > > > > > > > > > > http://www.mrbrklyn.com - Consulting > > > > > http://www.inns.net <-- Happy Clients > > > > > http://www.nylxs.com - Leadership Development in Free Software > > > > > http://www2.mrbrklyn.com/resources - Unpublished Archive or stories > > and > > > > articles from around the net > > > > > http://www2.mrbrklyn.com/downtown.html - See the New Downtown > > Brooklyn.... > > > > > > > > > > 1-718-382-0585 > > > > > > -- > > > __________________________ > > > Brooklyn Linux Solutions > > > __________________________ > > > DRM is THEFT - We are the STAKEHOLDERS http://fairuse.nylxs.com > > > > > > http://www.mrbrklyn.com - Consulting > > > http://www.inns.net <-- Happy Clients > > > http://www.nylxs.com - Leadership Development in Free Software > > > http://www2.mrbrklyn.com/resources - Unpublished Archive or stories and > > articles from around the net > > > http://www2.mrbrklyn.com/downtown.html - See the New Downtown Brooklyn.... > > > > > > 1-718-382-0585 > > > > > > > ____________________________ > > New Yorker Free Software Users Scene > > Fair Use - > > because it's either fair use or useless.... > > >
____________________________ New Yorker Free Software Users Scene Fair Use - because it's either fair use or useless....
|
|