euglug.org

[카테고리:] Uncategorized

  • [Eug-lug] bad terms



    Bob MillerFri Apr 30 13:34:14 PDT 2004

    Rob Hudson wrote:
    
    > I can connect to the laptop from my workstation.  Is that what you mean?
    
    Then pty's aren't the problem.  Nevermind.
    
    Try running xterm under strace and see where it fails/stops.
    
        # strace xterm -display :0 
    
    Also, if you have a konsole that hangs, see what "ps fax" shows.
    It should show something like this.
    
    	kdeinit: konsole
    	 \_ -bin/bash
    
    -- 
    Bob Miller                              K<bob>
    kbobsoft software consulting
    http://kbobsoft.com                     kbob at jogger-egg.com
    
  • [Eug-lug] bad terms



    Rob HudsonFri Apr 30 13:05:20 PDT 2004

    On 20040430.1146, Bob Miller said ...
    
    > Rob Hudson wrote:
    > 
    > > I recently got Debian up on my laptop, and X working.  When I try to
    > > launch an xterm, however, it dies right away.
    > 
    > Sounds like pseudo-terminals (ptys) aren't working.  Verify by trying
    > some non-X11 programs that require ptys such as ssh (inbound), script
    > or screen.  I bet they don't work either.
    
    I turned on X11Forwarding and logged in via ssh passing the -X flag,
    tried to launch an xterm and got this:
    
    xterm: Error 32, errno 2: No such file or directory
    Reason: get_pty: not enough ptys
    
    -Rob
    
  • [Eug-lug] bad terms



    Rob HudsonFri Apr 30 12:57:44 PDT 2004

    On 20040430.1139, Jacob Meuser said ...
    
    > On Fri, Apr 30, 2004 at 11:22:10AM -0700, Rob Hudson wrote:
    > > I recently got Debian up on my laptop, and X working.  When I try to
    > > launch an xterm, however, it dies right away.
    > > 
    > > I installed KDE and then launched Konsole, and it stays up but I never
    > > get an active terminal I can work with.
    > > 
    > > Same with rxvt, wterm, etc.
    > > 
    > > Any clues on why I can't get a terminal in X?
    > 
    > Bad permissions (terms usually need to be set[ug]id)?  Bad stuff in
    > ~/.Xauthority or ~/.Xdefaults or (/etc|/usr/X11R6/lib)/X11/app-defaults/XTerm?
    
    ls -l /usr/bin/X11/xterm shows "-rwxr-sr-x"
    ~/.Xauthority is rw by me only.
    I don't have a ~/.Xdefaults
    
    > Are you uing [kgx]dm or startx?
    
    kdm.
    
  • [Eug-lug] bad terms



    Rob HudsonFri Apr 30 12:54:47 PDT 2004

    On 20040430.1146, Bob Miller said ...
    
    > Rob Hudson wrote:
    > 
    > > I recently got Debian up on my laptop, and X working.  When I try to
    > > launch an xterm, however, it dies right away.
    > 
    > Sounds like pseudo-terminals (ptys) aren't working.  Verify by trying
    > some non-X11 programs that require ptys such as ssh (inbound), script
    > or screen.  I bet they don't work either.
    
    I can connect to the laptop from my workstation.  Is that what you mean?
    
    > Did you build your own kernel?  Did you include pty support?  Or maybe
    > you need to mount the /dev/pts filesystem?
    
    Using Debian's 2.4.25 kernel.  'dmesg' shows "pty: 256 Unix98 ptys
    configured".
    
    mount shows: /, /proc, /dev/pts type devpts, /dev/shm type tmpfs, /boot,
    /proc/bus/usb type usbfs, /var/lib/noflushd/devfs type devfs
    
  • [Eug-lug] bad terms



    Bob MillerFri Apr 30 12:46:12 PDT 2004

    Rob Hudson wrote:
    
    > I recently got Debian up on my laptop, and X working.  When I try to
    > launch an xterm, however, it dies right away.
    
    Sounds like pseudo-terminals (ptys) aren't working.  Verify by trying
    some non-X11 programs that require ptys such as ssh (inbound), script
    or screen.  I bet they don't work either.
    
    Did you build your own kernel?  Did you include pty support?  Or maybe
    you need to mount the /dev/pts filesystem?
    
    -- 
    Bob Miller                              K<bob>
    kbobsoft software consulting
    http://kbobsoft.com                     kbob at jogger-egg.com
    
  • [Eug-lug] bad terms



    Jacob MeuserFri Apr 30 12:39:00 PDT 2004

    On Fri, Apr 30, 2004 at 11:22:10AM -0700, Rob Hudson wrote:
    > I recently got Debian up on my laptop, and X working.  When I try to
    > launch an xterm, however, it dies right away.
    > 
    > I installed KDE and then launched Konsole, and it stays up but I never
    > get an active terminal I can work with.
    > 
    > Same with rxvt, wterm, etc.
    > 
    > Any clues on why I can't get a terminal in X?
    
    Bad permissions (terms usually need to be set[ug]id)?  Bad stuff in
    ~/.Xauthority or ~/.Xdefaults or (/etc|/usr/X11R6/lib)/X11/app-defaults/XTerm?
    
    Are you uing [kgx]dm or startx?
    
    -- 
    <jakemsr at jakemsr.com>
    
  • [Eug-lug] bad terms



    Ben BarrettFri Apr 30 12:27:19 PDT 2004

    Do you know what shell is being started (your, or your distro's, default)?
    
    ...maybe its config is conflicting with something in X?  if so, commenting out
    parts of its config files could help identify the problem; or maybe just try a
    different shell to see if that helps...
    
    sorry, not much help here  = )
    
    
    
    On Fri, 30 Apr 2004 11:22:10 -0700
    Rob Hudson <rob at euglug.net> wrote:
    
    | I recently got Debian up on my laptop, and X working.  When I try to
    | launch an xterm, however, it dies right away.
    | 
    | I installed KDE and then launched Konsole, and it stays up but I never
    | get an active terminal I can work with.
    | 
    | Same with rxvt, wterm, etc.
    | 
    | Any clues on why I can't get a terminal in X?
    | 
    | I can Ctrl-Alt-F1 to the console fine.
    | 
    | Thanks,
    | Rob
    
  • [Eug-lug] bad terms



    Rob HudsonFri Apr 30 12:22:10 PDT 2004

    I recently got Debian up on my laptop, and X working.  When I try to
    launch an xterm, however, it dies right away.
    
    I installed KDE and then launched Konsole, and it stays up but I never
    get an active terminal I can work with.
    
    Same with rxvt, wterm, etc.
    
    Any clues on why I can't get a terminal in X?
    
    I can Ctrl-Alt-F1 to the console fine.
    
    Thanks,
    Rob
    
  • [Eug-lug] local root exploit via setuid



    Jacob MeuserFri Apr 30 12:10:57 PDT 2004

    On Thu, Apr 29, 2004 at 06:06:26PM -0700, Cory Petkovsek wrote:
    > On Thu, Apr 29, 2004 at 02:20:31PM -0700, Rob Hudson wrote:
    > > How does this work?
    > 
    > Short answer is they utilize a bug, like a buffer overflow in a program
    > setuid.  The setuid prog, say '/bin/ping' runs as root to access the network
    > socket.  Let's say ping has an option --BD.  When it is fed input from the user
    > it does some stuff on it, like prints extra fields.
    > 
    > Perhaps there is a bug in the code that processes the user input to --BD, and
    > under the right circumstances, might actually execute that code:
    > ping google.com --BD="%Y%D%m-%T\0x33\0x34\0x66\0x88\0x224\0x221"
    > 
    > --BD was only expecting a few date strings, like %Y %D.  Since I gave it
    > something it didn't expect, it 'exploited' the bug.  Perhaps it did so that it
    > ran my extra input as an executable.  Perhaps my extra input was some code that
    > told it to run /bin/bash.  That would give me a root shell.
    > 
    > Another method would be to have the input code change my uid to 0.  After the
    > program finished, I'd be root.
    
    So, why doesn't glibc have strlcat?  Oh yeah, all those GNU coders know
    how to properly code ... yeah, right.
    
    People used to always ask why I use OpenBSD.  Well, OpenBSD goes to
    great lengths to have less code using root privileges and to make buffer
    exploits much more difficult.  Doesn't matter on a single-user desktop?
    Well, I'd rather have flaws in a program only affect that program,
    not possibly screw with/crash the rest of my system.  Besides, the
    compiler is pretty good about letting me know that some code has
    potential exploits.
    
    http://www.openbsd.org/cgi-bin/man.cgi?query=gcc-local
    
    -- 
    <jakemsr at jakemsr.com>
    
  • [Eug-lug] MWVLUG Meeting – 5/4 – 6:30pm – Custom Knoppix Live CD



    John SechrestFri Apr 30 12:01:52 PDT 2004

        The Making of Knoppix-AVR
        Matthew MacClary 
        Tuesday May 4th, 6:30pm
        Owen 101 on the OSU campus, Corvallis Oregon
    
        This presentation describes a re-master of Knoppix, the excellent
        CD based Linux distribution.  Re-mastering in this context means
        extracting the compressed Knoppix filesystem, modifying the
        configuration, and finally mastering a new bootable Linux CD.
        Bootable Linux CDs are a powerful solution to a wide range of
        challenges.
    
        The subject for this discussion is the Knoppix-AVR CD which was
        created by TekBots at OSU for a microcontroller development class.
        The key addition to this CD was the gcc-avr cross compiler and
        related libraries.  Because this CD was to be used in an
        electronics lab on campus, steps were taken to increase local
        security.  These precautions included preventing root or single
        user access, disabling hard drive access, and removing network
        software that could be dangerous.
    
        Matthew is a graduating senior in Computer Engineering at OSU.  He
        plans to begin a masters in ECE at OSU next Fall.  It is possible
        to derive great enjoyment from using and examining open source
        software, while accomplishing a great deal at the same time.
        He says: "Hopefully you will enjoy this look inside a live Linux
        distribution as much as I did"
    
    
        After the meeting, we usually retire to Clodfelters for a beer
        and discussion.
    
    
    
    --
    John Sechrest          .         Helping people use
                            .           computers and the Internet
                              .            more effectively
                                .                      
                                   .       Internet: sechrest at peak.org
                                        .        
                                                . http://www.peak.org/~sechrest