euglug.org

[작성자:] admin

  • [Eug-lug] Computer time



    T. Joseph CARTERSat Jan 22 03:03:53 PST 2005

    On Fri, Jan 21, 2005 at 03:10:44PM -0800, Allen Brown 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.
    
    You don't want a viitor or an emacsitor.  You want an EDitor!  Ed is the
    standard editor.  =)
    
  • [Eug-lug] Computer time



    T. Joseph CARTERSat Jan 22 03:01:31 PST 2005

    On Fri, Jan 21, 2005 at 10:53:40AM -0800, larry price wrote:
    > but don't give up on emacs, the learning curve is steep
    > and it can save you amazing amounts of time and stress.
    
    Yeah, but vim will save you the doctor's bills for RSI treatments.  ;)
    
  • [Eug-lug] Local dial tone providers – Qwest alternatives?



    T. Joseph CARTERSat Jan 22 02:44:29 PST 2005

    On Thu, Jan 20, 2005 at 05:55:07PM -0800, Alan wrote:
    > >If not, that's a pretty good incentive for college students to use 
    > >Vonage... Those that can get a number local to home would be able to 
    > >stay in contact, and those that can't, still get free long distance...
    > 
    > Probably violates some TOS. Most of the VoIP adaptors I've seen have an 
    > ethernet switch/NAT built into them, which would definitely violate most 
    > college TOS that I've seen.
    
    Eh, I'm encouraged to run a firewall here, router with NAT or otherwise.
    Any sane college would rather you do anything than connect a win32 box to
    the network directly.  Anything.  At all.
    
    
  • [Eug-lug] Wrapping for Access Control



    Jacob MeuserSat Jan 22 01:58:16 PST 2005

    On Sat, Jan 22, 2005 at 01:37:44AM -0800, Jacob Meuser wrote:
    > On Fri, Jan 21, 2005 at 11:06:13PM -0800, Jeff_W wrote:
    > 
    > > # added for TCP Wrappers control of pygopherd - beaker: 1/20/2005
    > > pygopherd  stream  tcp   nowait  root   /usr/pkg/bin/pygopherd  pygopherd
    > 
    > are you _sure_ you don't have to specify tcpd there?
    > 
    > pygopherd  stream  tcp   nowait  root   /usr/libexec/tcpd  pygopherd
    > 
    > is there an EXAMPLES section in your tcpd(8)?
    
    I just checked online ... NetBSD doesn't even have a tcpd manpage?
    
    -- 
    <jakemsr at jakemsr.com>
    
    
  • [Eug-lug] Wrapping for Access Control



    Jacob MeuserSat Jan 22 01:37:44 PST 2005

    On Fri, Jan 21, 2005 at 11:06:13PM -0800, Jeff_W wrote:
    
    > # added for TCP Wrappers control of pygopherd - beaker: 1/20/2005
    > pygopherd  stream  tcp   nowait  root   /usr/pkg/bin/pygopherd  pygopherd
    
    are you _sure_ you don't have to specify tcpd there?
    
    pygopherd  stream  tcp   nowait  root   /usr/libexec/tcpd  pygopherd
    
    is there an EXAMPLES section in your tcpd(8)?
    
    > I should mention that when I use the tcpdchk & tcpmatch tools
    > everything appears to work (allow LAN hosts; deny outsiders):
    
    they don't actually run the program in question.  they just check
    hosts.allow and hosts.deny.
    
    -- 
    <jakemsr at jakemsr.com>
    
  • [Eug-lug] Wrapping for Access Control



    Jeff_WFri Jan 21 23:06:13 PST 2005

    larry price <laprice at gmail.com> wrote:
    
    > What are you telling PyGopherd to listen to?
    
    Here's the pertinent lines from /etc/services & /etc/inetd.conf:
    
    % grep -h py /etc/inetd.conf /etc/services
    # added for TCP Wrappers control of pygopherd - beaker: 1/20/2005
    pygopherd  stream  tcp   nowait  root   /usr/pkg/bin/pygopherd  pygopherd
    
    # added for TCP Wrappers control of pygopherd - beaker: 1/20/2005
    pygopherd       7070/tcp                # PYGopherd server
    
    *The server defaults to a chrooted /var/gopher directory and
    runs as user:group "gopher:gopher" - a non-existent user w/ no login.
    
    
    I should mention that when I use the tcpdchk & tcpmatch tools
    everything appears to work (allow LAN hosts; deny outsiders):
    
    beaker at bsdbox: [25] tcpdmatch pygopherd lan_host
    tcpdmatch pygopherd lan_host
    warning: lan_host: hostname nor servname provided, or not known
    client:   hostname lan_host
    client:   address  192.168.2.5
    server:   process  pygopherd
    matched:  /etc/hosts.allow line 10
    access:   granted
    
    beaker at bsdbox: [26] tcpdmatch pygopherd euglug.org
    tcpdmatch pygopherd euglug.org
    warning: euglug.org: hostname nor servname provided, or not known
    client:   hostname euglug.org
    client:   address  207.189.131.194
    server:   process  pygopherd
    matched:  /etc/hosts.deny line 8
    option:   twist echo "Sorry - no access for you"
    access:   delegated
    
    
    I noticed that the "stock" TCP Wrappers is available in the
    NetBSD pkgsrc tree; maybe I should install that and try again...
    
    
    > You could tell it to listen on a unix socket and have inetd pass the
    > connection that way.
    
    How would I do this?
    
    -Jeff
    
  • [Eug-lug] Wrapping for Access Control



    larry priceFri Jan 21 20:54:17 PST 2005

    What are you telling PyGopherd to listen to?
    
    You could tell it to listen on a unix socket and have inetd pass the
    connection that way.
    
    On Fri, 21 Jan 2005 18:49:25 -0800, Jeff_W <beaker at freeshell.org> wrote:
    > 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
    > _______________________________________________
    > EUGLUG mailing list
    > euglug at euglug.org
    > http://www.euglug.org/mailman/listinfo/euglug
    > 
    
    
    -- 
    http://Zoneverte.org -- information explained
    Do you know what your IT infrastructure does?
    
  • [Eug-lug] mac-mini mac-slack-ub-lin meeting



    Mr OFri Jan 21 20:24:10 PST 2005

    In other news, John won't be able to make it to the meeting but
    I'll have a mini. 
    
    Yeah, somehow my order got canned in the very end even though I
    got confirmation from Apple for joining the store and
    confirmation from the financing bank. BUT!, if all goes well
    I'll at least have the basic mini at home tomorrow afternoon and
    be holed up in my room the rest of the day. 
    
    "DIY" Do It Yourself. Like what I'll be doing when "I" upgrade
    my mini in due time. 
    
    
    
    
    --- fleming.j at comcast.net wrote:
    
    > 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.
    
    
    
    	
    		
    __________________________________ 
    Do you Yahoo!? 
    Yahoo! Mail - You care about security. So do we. 
    http://promotions.yahoo.com/new_mail
    
  • [Eug-lug] Wrapping for Access Control



    SteveFri Jan 21 20:05:36 PST 2005

    On Fri, 2005-01-21 at 18:49 -0800, Jeff_W wrote:
    > 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
    
    OK, let me see if I can get this right (and readable). I'm not a python
    guru so excuse my ignorance in that respect. The script returns a socket
    error so I am assuming that it is attempting to setup a listener. On the
    other hand inetd is going to reserve that port and listen on it and when
    incoming connections hit this port it will direct descriptor 0 and 1 to
    the socket and call the registered program, in a nutshell wrapping the
    application IO up in the socket instead of normal STDIN / STDOUT. When
    PYG initializes the socket it is trying to open a listener on a port
    that is already in use, as the above output explains. 
    
    A good example of how inetd (also tcpserver, xinetd and other
    "wrappers") work would be to register the date command at a port from
    within inetd.conf and add the service to /etc/services. When you hit
    this port (with something like a telnet client) you should see the same
    output as you would by typing the date command at the console - since
    the commands STDOUT is redirected to the socket. BTW, if you try this
    example make sure you run date as user nobody or someone is apt to start
    changing the date/time on your machine for you.
    
    In my opinion the only way to manage this connection in something like
    inetd would be to remove the network code and run all IO through STDIN,
    STDOUT and STDERR. Probably not trivial, stick with a filter.
    
    -- 
    Steve <euglinux at nwtechops.com>
    
    
  • [Eug-lug] Computer time



    John SechrestFri Jan 21 19:30:25 PST 2005

    Jim K <kjim9 at earthlink.net> writes:
    
     %       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?
    
    VIM (VI) and EX are the same editor. 
    VI is the visual mode, EX is the line mode.
    
     % 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.
    
    ed is the original editor. The key nice thing about it
    is that it is always available. 
    
    
     %     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
     % >
     % >  
     % >
     % 
     % _______________________________________________
     % EUGLUG mailing list
     % euglug at euglug.org
     % http://www.euglug.org/mailman/listinfo/euglug
    
    -----
    John Sechrest          .         Helping people use
                            .           computers and the Internet
                              .            more effectively
                                 .                      
                                     .       Internet: sechrest at peak.org
                                          .   
                                                  . http://www.peak.org/~sechrest