euglug.org

[작성자:] admin

  • [Eug-lug] sticky group?



    Ben BarrettWed Nov 15 18:42:31 PST 2006

    I meant to imply that our (my!) guesses at correct answers are a lot more
    fun than finding out exactly how any given problem has been definitively
    solved & documented in the past.  That is to say that I can only offer
    partial answers, which are bound to be mostly wrong ;)
    
    On 11/15/06, Ben Barrett <stircrazyben at gmail.com> wrote:
    >
    > Yeah, the non-numerical chmod is much easier to understand,
    > so it'd be something like
    > chmod g+srw dirName
    > (add read/write/sticky for group)
    > and to get all files already in there I think you'd want to
    > chmod -R g+rw dirName
    > (recursively make dir & things in it, readable & writable for group)
    >
    > The group affected is the current group owning the file; it should stay
    > even if that group name changes.  Beware, if you're using a more complex
    > access control system, like say the NSA code bundled with Fedora & some
    > others, it will be a very different story, but not necessarily harder -- =
    for
    > those I'd recommend a nice front-end utility to help it make sense & get =
    the
    > right answer :)
    >
    > Google is for those without enough time, eh?  The LUG is here for the rest
    > of us.
    > HA, j/k.
    >
    >      Ben
    >
    >
    > On 11/15/06, Quentin Hartman < qhartman at gmail.com> wrote:
    > >
    > > On 11/15/06, Rob Hudson < rob at euglug.net> wrote:
    > > > How do I set up a directory so that any new files created in its
    > > > subdirectories maintain the group and group write permissions?
    > >
    > > Entering the above sentence into google returned this page as the first
    > > hit:
    > >
    > > http://www.dartmouth.edu/~rc/help/faq/permissions.html<http://www.dartm=
    outh.edu/%7Erc/help/faq/permissions.html>
    > >
    > > search for "groupID" on that page to get the relevant bits.
    > >
    > > :D
    > >
    > > --
    > > -Regards-
    > >
    > > -Quentin Hartman-
    > > _______________________________________________
    > > EUGLUG mailing list
    > > euglug at euglug.org
    > > http://www.euglug.org/mailman/listinfo/euglug
    > >
    >
    >
    -------------- next part --------------
    An HTML attachment was scrubbed...
    URL: http://euglug.org/pipermail/euglug/attachments/20061115/4fdf6d4d/attac=
    hment.htm
    
  • [Eug-lug] sticky group?



    Ben BarrettWed Nov 15 18:38:38 PST 2006

    Yeah, the non-numerical chmod is much easier to understand,
    so it'd be something like
    chmod g+srw dirName
    (add read/write/sticky for group)
    and to get all files already in there I think you'd want to
    chmod -R g+rw dirName
    (recursively make dir & things in it, readable & writable for group)
    
    The group affected is the current group owning the file; it should stay even
    if that group name changes.  Beware, if you're using a more complex access
    control system, like say the NSA code bundled with Fedora & some others, it
    will be a very different story, but not necessarily harder -- for those I'd
    recommend a nice front-end utility to help it make sense & get the right
    answer :)
    
    Google is for those without enough time, eh?  The LUG is here for the rest
    of us.
    HA, j/k.
    
         Ben
    
    
    On 11/15/06, Quentin Hartman <qhartman at gmail.com> wrote:
    >
    > On 11/15/06, Rob Hudson <rob at euglug.net> wrote:
    > > How do I set up a directory so that any new files created in its
    > > subdirectories maintain the group and group write permissions?
    >
    > Entering the above sentence into google returned this page as the first
    > hit:
    >
    > http://www.dartmouth.edu/~rc/help/faq/permissions.html
    >
    > search for "groupID" on that page to get the relevant bits.
    >
    > :D
    >
    > --
    > -Regards-
    >
    > -Quentin Hartman-
    > _______________________________________________
    > EUGLUG mailing list
    > euglug at euglug.org
    > http://www.euglug.org/mailman/listinfo/euglug
    >
    -------------- next part --------------
    An HTML attachment was scrubbed...
    URL: http://euglug.org/pipermail/euglug/attachments/20061115/8b289f62/attac=
    hment.htm
    
  • [Eug-lug] Thursday’s mtg



    Jim KWed Nov 15 16:12:01 PST 2006

    I assume we are meeting at EWEB as per schedule. What is the topic?
    Jim K
    
  • [Eug-lug] OT: Sun hardware wanted



    Quentin HartmanWed Nov 15 13:31:27 PST 2006

    I just went by the OSUsed surplus store and they had a bunch of Sun
    gear and a few SGI boxes as well. I bet a lot will still be there next
    week...
    
    On 11/14/06, Bill Essig <billessig at gmail.com> wrote:
    >
    >
    > >
    > > I'll look into it.
    > >
    > > Garl
    >
    > Thanks!
    >
    > ~Andrew
    >
    >
    >
    > _______________________________________________
    > EUGLUG mailing list
    > euglug at euglug.org
    > http://www.euglug.org/mailman/listinfo/euglug
    >
    >
    >
    
    
    -- 
    -Regards-
    
    -Quentin Hartman-
    
  • [Eug-lug] Procmail dummy



    Jason LaPierWed Nov 15 11:39:55 PST 2006

    I guess all I wanted was:
    
    :0 
    ! jason at newdomain.tld
    
    Thanks,
    
    Jason
    
    
    Jason LaPier
    Network Manager
    TACS / WRRC / NPSO
    University of Oregon
    
    
    > -----Original Message-----
    > From: euglug-bounces at euglug.org 
    > [mailto:euglug-bounces at euglug.org] On Behalf Of Jason LaPier
    > Sent: Wednesday, November 15, 2006 9:39 AM
    > To: 'Eugene Unix and Gnu/Linux User Group'
    > Subject: [Eug-lug] Procmail dummy
    > 
    > Confession time - I never did figure out how to use procmail, 
    > and looking at procmail recipes makes my head hurt. Now I 
    > just want to set up a procmail recipe to forward email to a 
    > different address. Very simple. This is the U of O email, and 
    > they have it set up so that if you make a .forward file, your 
    > email gets forwarded straight off the SMTP. That's fine and 
    > dandy, however, they have a bunch of spam tagging and 
    > filtering that'd I like to take advantage of, so I want to 
    > use a procmail script instead, so the mail gets forwarded 
    > _after_ getting wrung through spam-assassin, etc.
    > I know my maildir, and I'm pretty sure I don't want any 
    > logging (since it will be forwarding mail from here on out). 
    > 
    > Thanks in advance for what I hope is a simple recipe,
    > 
    > - Jason
    > 
    > 
    > Jason LaPier
    > Network Manager
    > TACS / WRRC / NPSO
    > University of Oregon
    > 
    > _______________________________________________
    > EUGLUG mailing list
    > euglug at euglug.org
    > http://www.euglug.org/mailman/listinfo/euglug
    > 
    > 
    
    
  • [Eug-lug] Procmail dummy



    Joseph TomanWed Nov 15 11:19:59 PST 2006

    Jason LaPier wrote:
    > Confession time - I never did figure out how to use procmail, and looking at
    > procmail recipes makes my head hurt. Now I just want to set up a procmail
    > recipe to forward email to a different address. Very simple. This is the U
    > of O email, and they have it set up so that if you make a .forward file,
    > your email gets forwarded straight off the SMTP. That's fine and dandy,
    > however, they have a bunch of spam tagging and filtering that'd I like to
    > take advantage of, so I want to use a procmail script instead, so the mail
    > gets forwarded _after_ getting wrung through spam-assassin, etc.
    > I know my maildir, and I'm pretty sure I don't want any logging (since it
    > will be forwarding mail from here on out). 
    > 
    > Thanks in advance for what I hope is a simple recipe,
    > 
    
    Okay, excuse me if you've done this already, but have you looked at "man
    procmailex" ? This is where I start when I forget how to write a
    procmail recipe. The first example should show you how to forward
    based on other tags in the header. As the man page suggests, I would
    put a catchall recipe in until you really trust what you've done.
    
    						J. Toman
    
    
  • [Eug-lug] sticky group?



    Rob HudsonWed Nov 15 11:12:30 PST 2006

    How do I set up a directory so that any new files created in its 
    subdirectories maintain the group and group write permissions?
    
    For example:  There's a shared folder on a server and a group of users 
    create and edit files in that folder.  We want those new files to be 
    editable by all users in the same group.  By default, new files are 
    created with the user's default user and group making them non-editable 
    by others in the group.
    
    Thanks,
    Rob
    
  • [Eug-lug] Procmail dummy



    Rob HudsonWed Nov 15 10:37:44 PST 2006

    $ cat /cs/lib/procmail/forward_spamassassin
    # spam filter new messages before sending them to FORWARDTO
    # spam is /dev/null'd if forwarding
    
    SPAMDEFAULT=${FORWARDTO:+/dev/null}
    SPAMDEST=${SPAMDEST:-$SPAMDEFAULT}
    
    :0
    * $ ! SPAMOK ?? yes
    {
         INCLUDERC=/cs/lib/procmail/spamassassin
    }
    INCLUDERC=/cs/lib/procmail/forward
    
    
    And just in case:
    
    $ cat /cs/lib/procmail/spamassassin
    # spam filter new messages
    # procmail locking provides longer timeouts than spamc locking
    :0fw: spamc.lock
    | spamc -f
    
    # store anything found to be spam in SPAMDEST (if defined) or CaughtSPAM
    :0:
    * ^X-Spam-Status: Yes
    ${SPAMDEST:-CaughtSPAM}
    
    # semi-spammy stuff is separated to MAYBEDEST (if defined) or MaybeSPAM
    :0:
    * $ ! ${SPAMLEVEL:+!}
    * $ ^X-Spam-Level: ${SPAMLEVEL}
    ${MAYBEDEST:-MaybeSPAM}
    
    
    $ cat /cs/lib/procmail/forward
    # KEEPCOPY should be empty unless yes
    KEEPCOPY=`expr "${KEEPCOPY:-no}" : '\([yY]\).*'`
    # use ours to separate mailer and sendmail
    MAILER="(^(((Resent-)?(From|Sender)|X-Envelope-From):|>?From 
    )([^>]*[^(.%@a-z0-9])?(Post(ma(st(er)?|n)|office)|sendmail|Mailer|daemon|mmdf|n?uucp|ops|r(esponse|oot)|(bbs\.)?smtp(error)?|s(erv(ices?|er)|ystem)|A(dmin(istrator)?|MMGR))(([^).!:a-z0-9][-_a-z0-9]*)?[%@> 
            ][^<)]*(\(.*\).*)?)?$([^>]|$))"
    
    # protect against forwarding loops / don't forward MAILER mail
    :0f
    * $ ! ${FORWARDTO:+!}
    * $ ! ${MAILER}
    * $ ! ^X-Loop: ${LOGNAME}
    | /local/bin/formail -A"X-Loop: $LOGNAME"
    
    COMSAT=no
    
    :0A${KEEPCOPY:+c}
    ! $FORWARDTO
    
    
    Hmmm... Hope it's ok to copy/paste all this.  :|
    
    -Rob
    
    Jason LaPier wrote:
    >>From the looks of those scripts, they're relying on other scripts to do the
    > actual work. Could you:
    > cat /cs/lib/procmail/forward_spamassassin
    > 
    > I couldn't find anything like that on the uoregon shell, so it must be
    > something custom on the cs server.
    > 
    > Thanks,
    > 
    > Jason
    > 
    > 
    >> -----Original Message-----
    >> From: euglug-bounces at euglug.org 
    >> [mailto:euglug-bounces at euglug.org] On Behalf Of Rob Hudson
    >> Sent: Wednesday, November 15, 2006 9:48 AM
    >> To: Eugene Unix and Gnu/Linux User Group
    >> Subject: Re: [Eug-lug] Procmail dummy
    >>
    >> I have a CS account and this is what I have.  I didn't set it 
    >> up.  The sysadmin did...
    >>
    >> $ cat ~/.procmailrc
    >> # basic configuration information
    >> SHELL=/bin/sh
    >> PATH=$HOME/bin:/local/bin:/usr/bin
    >>
    >> # any local overrides
    >> INCLUDERC=$HOME/etc/procmail.settings
    >>
    >> INCLUDERC=/cs/lib/procmail/forward_spamassassin
    >> INCLUDERC=$HOME/etc/procmail.rules
    >> INCLUDERC=/cs/lib/procmail/vacation
    >>
    >> :0 w : inbox.lock
    >> * $ ! ${MHINBOX:+!}
    >> | rcvstore +${MHINBOX}
    >>
    >>
    >> $ cat ~/etc/procmail.settings
    >> MAILDIR=$HOME/mail
    >> FORWARDTO=rob at mydomain.com
    >>
    >>
    >> I'm pretty sure this still passes off to spamassassin and if 
    >> it's ok, then forwards it on to me.
    >>
    >> -Rob
    >>
    >> Jason LaPier wrote:
    >>> Confession time - I never did figure out how to use procmail, and 
    >>> looking at procmail recipes makes my head hurt. Now I just 
    >> want to set 
    >>> up a procmail recipe to forward email to a different address. Very 
    >>> simple. This is the U of O email, and they have it set up 
    >> so that if 
    >>> you make a .forward file, your email gets forwarded 
    >> straight off the 
    >>> SMTP. That's fine and dandy, however, they have a bunch of spam 
    >>> tagging and filtering that'd I like to take advantage of, 
    >> so I want to 
    >>> use a procmail script instead, so the mail gets forwarded 
    >> _after_ getting wrung through spam-assassin, etc.
    >>> I know my maildir, and I'm pretty sure I don't want any 
    >> logging (since 
    >>> it will be forwarding mail from here on out).
    >>>
    >>> Thanks in advance for what I hope is a simple recipe,
    >>>
    >>> - Jason
    >>>
    >>>
    >>> Jason LaPier
    >>> Network Manager
    >>> TACS / WRRC / NPSO
    >>> University of Oregon
    >>>
    >>> _______________________________________________
    >>> 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
    > 
    
  • [Eug-lug] Procmail dummy



    Jason LaPierWed Nov 15 10:29:54 PST 2006

    >From the looks of those scripts, they're relying on other scripts to do the
    actual work. Could you:
    cat /cs/lib/procmail/forward_spamassassin
    
    I couldn't find anything like that on the uoregon shell, so it must be
    something custom on the cs server.
    
    Thanks,
    
    Jason
    
    
    > -----Original Message-----
    > From: euglug-bounces at euglug.org 
    > [mailto:euglug-bounces at euglug.org] On Behalf Of Rob Hudson
    > Sent: Wednesday, November 15, 2006 9:48 AM
    > To: Eugene Unix and Gnu/Linux User Group
    > Subject: Re: [Eug-lug] Procmail dummy
    > 
    > I have a CS account and this is what I have.  I didn't set it 
    > up.  The sysadmin did...
    > 
    > $ cat ~/.procmailrc
    > # basic configuration information
    > SHELL=/bin/sh
    > PATH=$HOME/bin:/local/bin:/usr/bin
    > 
    > # any local overrides
    > INCLUDERC=$HOME/etc/procmail.settings
    > 
    > INCLUDERC=/cs/lib/procmail/forward_spamassassin
    > INCLUDERC=$HOME/etc/procmail.rules
    > INCLUDERC=/cs/lib/procmail/vacation
    > 
    > :0 w : inbox.lock
    > * $ ! ${MHINBOX:+!}
    > | rcvstore +${MHINBOX}
    > 
    > 
    > $ cat ~/etc/procmail.settings
    > MAILDIR=$HOME/mail
    > FORWARDTO=rob at mydomain.com
    > 
    > 
    > I'm pretty sure this still passes off to spamassassin and if 
    > it's ok, then forwards it on to me.
    > 
    > -Rob
    > 
    > Jason LaPier wrote:
    > > Confession time - I never did figure out how to use procmail, and 
    > > looking at procmail recipes makes my head hurt. Now I just 
    > want to set 
    > > up a procmail recipe to forward email to a different address. Very 
    > > simple. This is the U of O email, and they have it set up 
    > so that if 
    > > you make a .forward file, your email gets forwarded 
    > straight off the 
    > > SMTP. That's fine and dandy, however, they have a bunch of spam 
    > > tagging and filtering that'd I like to take advantage of, 
    > so I want to 
    > > use a procmail script instead, so the mail gets forwarded 
    > _after_ getting wrung through spam-assassin, etc.
    > > I know my maildir, and I'm pretty sure I don't want any 
    > logging (since 
    > > it will be forwarding mail from here on out).
    > > 
    > > Thanks in advance for what I hope is a simple recipe,
    > > 
    > > - Jason
    > > 
    > > 
    > > Jason LaPier
    > > Network Manager
    > > TACS / WRRC / NPSO
    > > University of Oregon
    > > 
    > > _______________________________________________
    > > 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] Procmail dummy



    Rob HudsonWed Nov 15 09:47:49 PST 2006

    I have a CS account and this is what I have.  I didn't set it up.  The 
    sysadmin did...
    
    $ cat ~/.procmailrc
    # basic configuration information
    SHELL=/bin/sh
    PATH=$HOME/bin:/local/bin:/usr/bin
    
    # any local overrides
    INCLUDERC=$HOME/etc/procmail.settings
    
    INCLUDERC=/cs/lib/procmail/forward_spamassassin
    INCLUDERC=$HOME/etc/procmail.rules
    INCLUDERC=/cs/lib/procmail/vacation
    
    :0 w : inbox.lock
    * $ ! ${MHINBOX:+!}
    | rcvstore +${MHINBOX}
    
    
    $ cat ~/etc/procmail.settings
    MAILDIR=$HOME/mail
    FORWARDTO=rob at mydomain.com
    
    
    I'm pretty sure this still passes off to spamassassin and if it's ok, 
    then forwards it on to me.
    
    -Rob
    
    Jason LaPier wrote:
    > Confession time - I never did figure out how to use procmail, and looking at
    > procmail recipes makes my head hurt. Now I just want to set up a procmail
    > recipe to forward email to a different address. Very simple. This is the U
    > of O email, and they have it set up so that if you make a .forward file,
    > your email gets forwarded straight off the SMTP. That's fine and dandy,
    > however, they have a bunch of spam tagging and filtering that'd I like to
    > take advantage of, so I want to use a procmail script instead, so the mail
    > gets forwarded _after_ getting wrung through spam-assassin, etc.
    > I know my maildir, and I'm pretty sure I don't want any logging (since it
    > will be forwarding mail from here on out). 
    > 
    > Thanks in advance for what I hope is a simple recipe,
    > 
    > - Jason
    > 
    > 
    > Jason LaPier
    > Network Manager
    > TACS / WRRC / NPSO
    > University of Oregon
    > 
    > _______________________________________________
    > EUGLUG mailing list
    > euglug at euglug.org
    > http://www.euglug.org/mailman/listinfo/euglug
    >