Menu

#850 xemacs movemail needs chrgp, setgid

Any_OS_X
open
5
2013-05-21
2003-10-08
A K Bressen
No

Hi--

/sw/lib/xemacs-21.4.9/powerpc-apple-darwin6.6/movemail
installed as group admin and without the setgid bit set,
and failed to be able to get local system mail when
called by gnus from inside of xemacs.

I chgrp'd it to mail and flipped the setgid bit, and now
it works. It is using dotfile locking by default on
the mailboxes; I hope that is what Apple Sendmail
uses... someone should probably verify this and then
change the package...

I'm using xemacs from Fink.
Packages xemacs 21.4.9-3,
with xemacs-base-pkg 1.71-1, xemacs-efs-pkg 1.29-1.
gnus 5.10.2.

Error message was
movemail: Permission denied for
/private/var/mail/EnRR2In--see
source file lib-src/movemail.c (1 return). Continue?

--best
--akb

Discussion

  • Max Horn

    Max Horn - 2003-11-07

    Logged In: YES
    user_id=12935

    The information you provided is incomplete. Please make sure you state:
    * the exact version of fink you are using ("fink --version")
    * the exact version and revision of the package(s) in question ("fink info <PACKAGE>")
    * the version of OS X you are running ("sw_vers")
    * if possible, the exact steps needed to reproduce your problem
    * if appropriate, the exact error output you received

    Please understand that we cannot process your request without this information.

     
  • Max Horn

    Max Horn - 2003-11-07
    • assigned_to: nobody --> jswhit
     
  • A K Bressen

    A K Bressen - 2003-11-08

    Logged In: YES
    user_id=608262

    Package manager version: 0.13.2
    Distribution version: 0.5.3

    package versions noted above.

    os is 10.2.8

    to reproduce the error, have some mail delivered and sitting
    in spool.
    then run xemacs and start gnus (M-x gnus).
    I think it'll try to grab the mail by default, but if not,
    try putting
    (setq gnus-select-method '(nnbabyl "my-rmail"
    (nnbabyl-mbox-file "~/RMAIL")))
    into ~/.gnus.

    error output noted above.

     
  • Max Horn

    Max Horn - 2003-11-08

    Logged In: YES
    user_id=12935

    Can you please update your system (we are at 0.16.0 / 0.6.1) and
    try again?

    fink selfupdate

    should do it

     
  • A K Bressen

    A K Bressen - 2003-11-12

    Logged In: YES
    user_id=608262

    My error report noted that a package installed a file with
    a group and mode set such that part of the package wouldn't
    work.

    Upon downloading and unpacking the latest version of this
    package, I don't see anything that indicates that movemail
    will be installed with the correct group and mode; the file
    in the archive is not
    setgid, and I didn't see any mention of it in the install
    scripts.

    I should have checked this before bothering with the package
    manager upgrade. Sure enough, movemail has
    installed from package version xemacs-21.4.9-13 and is not
    in group
    mail and is not setgid, and thus does not work.

    The upgrade was really hairy.
    Using fink selfupdate and fink commander, my system was
    put into a state in which dpkg was upgraded but its libraries
    were not, so it wouldn't run.

    I recovered by downloading the installer package
    and copying over the libraries. I'm not sure if this is why all
    the upgraded files are owned by uid 2011, group nogroup.

    Additonally, dselect is a bit messed up; all help screens
    display in some terminal mode wherein everything is
    inverted, flashing, and mostly in an alternate character set.

    I'd file a bug, but I don't think I could provide enough
    details on
    sequence of events. Do fink and fink commander log their
    actions someplace?

    I'll probably just rm -r /sw and start over...

     
  • A K Bressen

    A K Bressen - 2003-11-16

    Logged In: YES
    user_id=608262

    My error report noted that a package installed a file with
    a group and mode set such that part of the package wouldn't
    work.

    Upon downloading and unpacking the latest version of this
    package, I don't see anything that indicates that movemail
    will be installed with the correct group and mode; the file
    in the archive is not
    setgid, and I didn't see any mention of it in the install
    scripts.

    I should have checked this before bothering with the package
    manager upgrade. Sure enough, movemail has
    installed from package version xemacs-21.4.9-13 and is not
    in group
    mail and is not setgid, and thus does not work.

    The upgrade was really hairy.
    Using fink selfupdate and fink commander, my system was
    put into a state in which dpkg was upgraded but its libraries
    were not, so it wouldn't run.

    I recovered by downloading the installer package
    and copying over the libraries. I'm not sure if this is why all
    the upgraded files are owned by uid 2011, group nogroup.

    Additonally, dselect is a bit messed up; all help screens
    display in some terminal mode wherein everything is
    inverted, flashing, and mostly in an alternate character set.

    I'd file a bug, but I don't think I could provide enough
    details on
    sequence of events. Do fink and fink commander log their
    actions someplace?

    I'll probably just rm -r /sw and start over...

     
  • Darian Lanx

    Darian Lanx - 2004-07-20

    Logged In: YES
    user_id=613165

    What is the status of this item?

     
  • Daniel Macks

    Daniel Macks - 2004-08-02
    • milestone: --> 10.2-gcc3.3
     
  • Hanspeter Niederstrasser

    What is the status of this item?

     
  • Hanspeter Niederstrasser

    chgrp/setid still not set on xemacs-1:21.4.20-1002. Still needed?

     
  • Hanspeter Niederstrasser

    Debian seems to do this:

    --- xemacs21-21.4.22.orig/debian/PackagesMakefile.in
    +++ xemacs21-21.4.22/debian/PackagesMakefile.in
    (LOTS OF OTHER CHANGES)
    +   chown root.mail \
    +       $(b)/$@/@PREFIX@/lib/xemacs-@VERSION@/@CONF_NAME@/movemail
    +   chmod 2755 $(b)/$@/@PREFIX@/lib/xemacs-@VERSION@/@CONF_NAME@/movemail
    (MORE CHANGES)
    

    However, doing so opens xemacs up to a race security condition, but debian also provides a patch.

    Someone who uses xemacs should test. I can make the changes but have no mail spool to test on.

     
  • Hanspeter Niederstrasser

    • Group: 10.2-gcc3.3 --> Any_OS_X
     

Log in to post a comment.