euglug.org

[작성자:] admin

  • [Eug-lug] Wrapping for Access Control



    Jeff_WFri Jan 21 18:49:25 PST 2005

    I'm trying to figure out how I can use TCP Wrappers to provide
    rudimentary access control for a python-based network service
    (PYGopherd). I've read a bunch of man pages and How-Tos on the web
    and have concluded that in order to get TCP Wrappers to provide
    access control there needs to be a wrapper for it and/or it needs
    to run out of inetd (this is a BSD system w/ tcpd's functions
    integrated into inetd). I've yet to come across some simple
    instructions for creating such a wrapper; tests done with simply
    adding PYG to /etc/services & /etc/inetd.conf and restarting have
    been unsuccessful - PYG starts & stops OK but connections produce
    this:
    
    # Traceback (most recent call last):  File "/usr/pkg/bin/pygopherd", line 30, in
    # ?
    #     s = initialization.initeverything(conffile)
    #   File "/usr/pkg/lib/python2.3/site-packages/pygopherd/initialization.py", line
    #  187, in initeverything
    #     s = getserverobject(config)
    #   File "/usr/pkg/lib/python2.3/site-packages/pygopherd/initialization.py", line
    #  120, in getserverobject
    #     GopherRequestHandler)
    #   File "/usr/pkg/lib/python2.3/SocketServer.py", line 330, in __init__
    #     self.server_bind()
    #   File "/usr/pkg/lib/python2.3/site-packages/pygopherd/initialization.py", line
    #  100, in server_bind
    #     servertype.server_bind(self)
    #   File "/usr/pkg/lib/python2.3/SocketServer.py", line 341, in server_bind
    #     self.socket.bind(self.server_address)
    #   File "<string>", line 1, in bind
    # socket.error: (48, 'Address already in use')
    
    
    Having forgotten anything I might have learned about python, I really
    can't make much of this except that it appears the socket/port is
    not available to the application (maybe because inetd is listening
    on it?).
    
    Anyways, is there some easy way of "wrapping" PYG for use w/ TCP
    Wrappers or do I need to look at something else like IP Filter,
    etc. ?
    
    -Jeff
    
  • [Eug-lug] Computer time



    Jim KFri Jan 21 18:35:31 PST 2005

          I just did a man ex on a mandrake 10 community system and it 
    displayed the vim man page. Is ex just an alias for vim?
    I have had at least one linux system that didn't have ex, but they all 
    had ed. You can create a program or script that creates a
    script that executes ed and operate on another file. ed is small and 
    could be loaded on thing like linux ipods the Zuarus series of machines 
    etc, without using up memory.
        Also if you have used a line editor in the past ed is easy to pick 
    up and run with.
    Jim K
    Allen Brown wrote:
    
    >On Fri, 21 Jan 2005, Max Lemieux wrote:
    >
    >  
    >
    >>Ok, this works. Enter gives me a ? but line number + enter displays a line.
    >>
    >>What practical uses do you find for ed? seems specialized enough that it 
    >>could be very handy.
    >>
    >>-Max
    >>    
    >>
    >
    >Criminey!  ed is just an historical relic.  If you want something
    >that is line oriented rather than a screen editor, use ex.
    >--
    >Allen Brown
    >  work: Agilent Technologies      non-work: http://www.peak.org/~abrown/
    >        allen_brown at agilent.com             abrown at peak.org
    >  The dinosaurs became extinct because they didn't have a space program.
    >  --- Larry Niven
    >
    >
    >  
    >
    >>Jacob Meuser wrote:
    >>
    >>    
    >>
    >>>On Fri, Jan 21, 2005 at 02:52:39PM -0800, Max Lemieux wrote:
    >>> 
    >>>
    >>>      
    >>>
    >>>>max at 4[~]$ ed Robert.txt
    >>>>261
    >>>>
    >>>>Yikes! I even RTFM ed, and no mention of a display mode (what am I 
    >>>>missing?). The substitution looked handy, though...
    >>>>   
    >>>>
    >>>>        
    >>>>
    >>>ed works line-at-a-time.
    >>>
    >>>just start hitting enter, or some number less than 261 and then enter.
    >>>
    >>>now if you want to delete a line type 'd <line#>'.
    >>>
    >>>use 'a <line#>' to add a line.
    >>>
    >>> 
    >>>
    >>>      
    >>>
    >>_______________________________________________
    >>EUGLUG mailing list
    >>euglug at euglug.org
    >>http://www.euglug.org/mailman/listinfo/euglug
    >>
    >>    
    >>
    >_______________________________________________
    >EUGLUG mailing list
    >euglug at euglug.org
    >http://www.euglug.org/mailman/listinfo/euglug
    >
    >  
    >
    
    
  • [Eug-lug] mac-mini mac-slack-ub-lin meeting



    fleming.j at comcast.netFri Jan 21 18:10:51 PST 2005

    Well it arrived and I'm writing my first e-mail with OSX. Can't wait to mess with the innards WHOO-HOO! Sadly MRO helped me make the decision to buy this beast and his order died or something. But Chances are there are a couple of Maccies out there who might want to make the next meeting a Mac-Slack-Ub-Lin meeting.
                                                                                                            John
    
  • [Eug-lug] electra



    Max LemieuxFri Jan 21 16:17:32 PST 2005

     From what I read on the site, electra uses a filesystem structure for 
    its registry tree.
    
    -Max
    
    Allen Brown wrote:
    
    >On Tue, 18 Jan 2005, larry price wrote:
    >
    >  
    >
    >>I had two reactions:
    >>
    >>1. This could be truly useful
    >>    
    >>
    >
    >I like the idea of standardization.  But it really matters what
    >standard you pick.
    >
    >  
    >
    >>2. It's the windows registry database
    >>
    >>I think it's going to be a hard sell, for a lot of people because of 2.
    >>On the other hand a desktop system like Ubuntu or Mandrake would
    >>probably benefit from it, more than it would lose from dealing with
    >>it's complexity.
    >>
    >>It's at least somewhat saner than WR
    >>    
    >>
    >
    >It's a lot saner since it uses a text file.  Or is that multiple
    >files?  I didn't notice.
    >
    >But we already have a system to provide this.  It's called tcl.
    >Tcl provides a standard way to configure a program.  It provides
    >namespaces and advanced data types.
    >
    >If electra uses one file for everything then it is a bad idea.
    >If I trash the config for mozilla for some reason (perhaps a power
    >failure while editing it's config) then I certainly don't want
    >the fstab to be trashed at the same time.  That is one of the
    >flaws of WR.
    >--
    >Allen Brown
    >  work: Agilent Technologies      non-work: http://www.peak.org/~abrown/
    >        allen_brown at agilent.com             abrown at peak.org
    >  Two wrongs don't make a right, but three lefts do.
    >
    >
    >  
    >
    >>On Wed, 19 Jan 2005 02:46:57 +0000, fleming.j at comcast.net
    >><fleming.j at comcast.net> wrote:
    >>    
    >>
    >>>http://elektra.sourceforge.net/#needs
    >>>Is this a popular project ie enough support for a distro or two to incorporate it in a year or two?
    >>>      
    >>>
    >_______________________________________________
    >EUGLUG mailing list
    >euglug at euglug.org
    >http://www.euglug.org/mailman/listinfo/euglug
    >
    >  
    >
    
    
  • [Eug-lug] Computer time



    Max LemieuxFri Jan 21 16:10:09 PST 2005

    Ok, this works. Enter gives me a ? but line number + enter displays a line.
    
    What practical uses do you find for ed? seems specialized enough that it 
    could be very handy.
    
    -Max
    
    Jacob Meuser wrote:
    
    >On Fri, Jan 21, 2005 at 02:52:39PM -0800, Max Lemieux wrote:
    >  
    >
    >>max at 4[~]$ ed Robert.txt
    >>261
    >>
    >>Yikes! I even RTFM ed, and no mention of a display mode (what am I 
    >>missing?). The substitution looked handy, though...
    >>    
    >>
    >
    >ed works line-at-a-time.
    >
    >just start hitting enter, or some number less than 261 and then enter.
    >
    >now if you want to delete a line type 'd <line#>'.
    >
    >use 'a <line#>' to add a line.
    >
    >  
    >
    
    
  • [Eug-lug] Computer time



    Allen BrownFri Jan 21 15:10:44 PST 2005

    On Fri, 21 Jan 2005, Max Lemieux wrote:
    
    > Ok, this works. Enter gives me a ? but line number + enter displays a line.
    > 
    > What practical uses do you find for ed? seems specialized enough that it 
    > could be very handy.
    > 
    > -Max
    
    Criminey!  ed is just an historical relic.  If you want something
    that is line oriented rather than a screen editor, use ex.
    --
    Allen Brown
      work: Agilent Technologies      non-work: http://www.peak.org/~abrown/
            allen_brown at agilent.com             abrown at peak.org
      The dinosaurs became extinct because they didn't have a space program.
      --- Larry Niven
    
    
    > Jacob Meuser wrote:
    > 
    > >On Fri, Jan 21, 2005 at 02:52:39PM -0800, Max Lemieux wrote:
    > >  
    > >
    > >>max at 4[~]$ ed Robert.txt
    > >>261
    > >>
    > >>Yikes! I even RTFM ed, and no mention of a display mode (what am I 
    > >>missing?). The substitution looked handy, though...
    > >>    
    > >>
    > >
    > >ed works line-at-a-time.
    > >
    > >just start hitting enter, or some number less than 261 and then enter.
    > >
    > >now if you want to delete a line type 'd <line#>'.
    > >
    > >use 'a <line#>' to add a line.
    > >
    > >  
    > >
    > 
    > _______________________________________________
    > EUGLUG mailing list
    > euglug at euglug.org
    > http://www.euglug.org/mailman/listinfo/euglug
    > 
    
  • [Eug-lug] Computer time



    Max LemieuxFri Jan 21 14:52:39 PST 2005

    max at 4[~]$ ed Robert.txt
    261
    
    Yikes! I even RTFM ed, and no mention of a display mode (what am I 
    missing?). The substitution looked handy, though...
    
    -Max
    
    Jacob Meuser wrote:
    
    >On Fri, Jan 21, 2005 at 01:01:14PM -0800, Max Lemieux wrote:
    >  
    >
    >>Agreed, vi seems to be the universally present editor.
    >>    
    >>
    >
    >ed is the universal editor.
    >
    >  
    >
    
    
  • [Eug-lug] Computer time



    Jacob MeuserFri Jan 21 14:18:18 PST 2005

    On Fri, Jan 21, 2005 at 04:10:09PM -0800, Max Lemieux wrote:
    > Ok, this works. Enter gives me a ? but line number + enter displays a line.
    > 
    > What practical uses do you find for ed? seems specialized enough that it 
    > could be very handy.
    
    deleteing fstab entries when upgrading with the OpenBSD boot image, so I
    don't have to wait for 'fsck -p /home'.
    
    ed is tiny.
    
    -- 
    <jakemsr at jakemsr.com>
    
  • [Eug-lug] Computer time



    Jacob MeuserFri Jan 21 14:11:35 PST 2005

    On Fri, Jan 21, 2005 at 01:29:34PM -0800, Jacob Meuser wrote:
    > On Fri, Jan 21, 2005 at 02:52:39PM -0800, Max Lemieux wrote:
    > > max at 4[~]$ ed Robert.txt
    > > 261
    > > 
    > > Yikes! I even RTFM ed, and no mention of a display mode (what am I 
    > > missing?). The substitution looked handy, though...
    > 
    > ed works line-at-a-time.
    > 
    > just start hitting enter, or some number less than 261 and then enter.
    > 
    > now if you want to delete a line type 'd <line#>'.
    
    <line#> d
    
    > use 'a <line#>' to add a line.
    
    <line#> a
    
    I always get that backwards.
    
    -- 
    <jakemsr at jakemsr.com>
    
  • [Eug-lug] electra



    Allen BrownFri Jan 21 14:08:08 PST 2005

    On Tue, 18 Jan 2005, larry price wrote:
    
    > I had two reactions:
    > 
    > 1. This could be truly useful
    
    I like the idea of standardization.  But it really matters what
    standard you pick.
    
    > 2. It's the windows registry database
    > 
    > I think it's going to be a hard sell, for a lot of people because of 2.
    > On the other hand a desktop system like Ubuntu or Mandrake would
    > probably benefit from it, more than it would lose from dealing with
    > it's complexity.
    > 
    > It's at least somewhat saner than WR
    
    It's a lot saner since it uses a text file.  Or is that multiple
    files?  I didn't notice.
    
    But we already have a system to provide this.  It's called tcl.
    Tcl provides a standard way to configure a program.  It provides
    namespaces and advanced data types.
    
    If electra uses one file for everything then it is a bad idea.
    If I trash the config for mozilla for some reason (perhaps a power
    failure while editing it's config) then I certainly don't want
    the fstab to be trashed at the same time.  That is one of the
    flaws of WR.
    --
    Allen Brown
      work: Agilent Technologies      non-work: http://www.peak.org/~abrown/
            allen_brown at agilent.com             abrown at peak.org
      Two wrongs don't make a right, but three lefts do.
    
    
    > On Wed, 19 Jan 2005 02:46:57 +0000, fleming.j at comcast.net
    > <fleming.j at comcast.net> wrote:
    > > http://elektra.sourceforge.net/#needs
    > > Is this a popular project ie enough support for a distro or two to incorporate it in a year or two?