Berkeley CSUA MOTD:Entry 12817
Berkeley CSUA MOTD
 
WIKI | FAQ | Tech FAQ
http://csua.com/feed/
2025/05/26 [General] UID:1000 Activity:popular
5/26    

2004/3/23-24 [Computer/SW/Unix] UID:12817 Activity:very high
3/23    What's the easiest way to find all files on a unix box that contain
        both the words 'imap' and 'pop' on different lines. I'm trying to
        find a courier authd config file that I swear had lines for turning
        on and off different protocols (pop3 and imapd) but I can't find it
        anywhere. and I can't find any references to it. -brett
        \_ hrm.
        egrep -ri '(imap|pop)' / | grep -iv 'imap.*pop' | grep -iv 'pop.*imap'
           --scotsman
          \_ your grep only matches if they are on the same line.
             for speed, i recomend using file to *not* check binaries.
             \_ Picky picky.  use egrep -I, then.  and no, it doesn't match
                "only if they are on the same line".  man egrep.  And no, it
                doesn't guarantee that both are in the file, but i've set you
                on the road to recovery.  For the task at hand, this should
                be sufficient.. --scotsman
        \_ find / -type f -print0 | xargs -0 fgrep -iIl imap \
           | perl -pe 's/\n/\0/' | xargs -0 fgrep -iH pop | fgrep -iv imap \
           | cut -d: -f1 | sort -u      --dbushong
           (this doesn't work for files w/ : in the name; i'll think about
            it.)
           \_ I think I must by smoking crack, be cause the file that I'm
              searching for doesn't appear to exist. I thought there was a
        \_ I think I must by smoking crack, cause the file that I'm searching
           for doesn't appear to exist. I thought it was a courier authd
           file, but maybe I'm confusing it with something I only half remember.
        \_ this is a terrible approach.  strace/truss the daemon and see what
           files it tries to read.  -tom
           \_ Unfirtunateley courier has a bunch of different daemons and
              I don't know which one reads the said file.
              courier config that controlled what serviced either
              authdaemon or couriertcp would allow connections from. Maybe
              I'm confusing it with something I only half remember. -brett
              I'm confusing it with something other file that I only half
              remember. Is anybody here familiar with the courier-ssl
              pop/imap auth daemon? -brett
                \_ Nevermind, I'm totally on crack. The file doesn't exist,
                   Thanks for helping me determine that. I got it to work,
                   I had the wrong userdb name: "poppw" instead of "pop3pw".
        \_ This is a terrible approach; strace/truss the daemon and see what
           files it accesses.  -tom
ERROR, url_link recursive (eces.Colorado.EDU/secure/mindterm2) 2025/05/26 [General] UID:1000 Activity:popular
5/26    

You may also be interested in these entries...
2012/8/29-11/7 [Computer/SW/Security] UID:54467 Activity:nil
8/29    There was once a CSUA web page which runs an SSH client for logging
        on to soda.  Does that page still exist?  Can someone remind me of the
        URL please?  Thx.
        \_ what do you mean? instruction on how to ssh into soda?
           \_ No I think he means the ssh applet, which, iirc, was an applet
              that implemented an ssh v1 client.  I think this page went away
	...
2012/8/30-11/7 [Computer/SW/Apps, Computer/SW/Unix] UID:54470 Activity:nil
8/30    Is wall just dead? The wallall command dies for me, muttering
        something about /var/wall/ttys not existing.
        \_ its seen a great drop in usage, though it seems mostly functional.
            -ERic
        \_ Couldn't open wall log!: Bad file descriptor
           Could not open wall subscription directory /var/wall/ttys: No such file or directory
	...
2012/3/29-6/4 [Computer/HW/Memory, Computer/HW/CPU, Computer/HW/Drives] UID:54351 Activity:nil
3/29    A friend wants a PC (no mac). She doesn't want Dell. Is there a
        good place that can custom build for you (SSD, large RAM, cheap video
        card--no game)?
        \_ As a side note: back in my Cal days more than two decades ago when
           having a 387SX made me the only person with floating-point hardware,
           most machines were custom built.
	...
2012/5/8-6/4 [Computer/SW/Unix] UID:54383 Activity:nil
5/8     Hello everyone!  This is Josh Hawn, CSUA Tech VP for Spring 2012.
        About 2 weeks ago, someone brought to my attention that our script
        to periodically merge /etc/motd.public into /etc/motd wasn't
        running.  When I looked into it, the cron daemon was running, but
        there hadn't been any root activity in the log since April 7th.  I
        looked into it for a while, but got lost in other things I was
	...
2012/1/27-3/26 [Computer/SW/Unix] UID:54299 Activity:nil
1/27    Interesting list of useful unix tools. Shout out to
        cowsay even!
        http://www.stumbleupon.com/su/3428AB/kkovacs.eu/cool-but-obscure-unix-tools
        \_ This is nice.  Thanks.
	...
2011/11/20-2012/2/6 [Computer/Companies/Apple, Computer/SW/Unix] UID:54237 Activity:nil
11/20   Are there tools that can justify a chunk of plain ASCII text by
        replacing words with words of similar meaning and inserting/removing
        commas into the text?  I received a 40-line plain text mail where
        all the lines are justified on left and right.  Every word and comma
        is followed by only one space, and every period is followed by two
        spaces.  The guy is my kid's karate instructor which I don't think is
	...
2011/10/26-12/6 [Computer/SW/Unix] UID:54202 Activity:nil
10/24  What's an easy way to see if say column 3 of a file matches a list of
       expressions in a file? Basically I want to combine "grep -f <file>"
       to store the patterns and awk's $3 ~ /(AAA|BBB|CCC)/ ... I realize
       I can do this with "egrep -f " and use regexp instead of strings, but
       was wondering if there was some magic way to do this.
       \_ UNIX has no magic. Make a shell script to produce the ask or egrep
	...