Thread View: gnu.epoch.misc
3 messages
3 total messages
Started by Guan-Hsing Hsu
Tue, 10 Aug 1993 16:38
movemail cannot lock file
Author: Guan-Hsing Hsu
Date: Tue, 10 Aug 1993 16:38
Date: Tue, 10 Aug 1993 16:38
27 lines
1838 bytes
1838 bytes
Hi, Dear Epocher, I have recently compiled Epoch 4.2 to run on a HP 720 and it runs very well except for movemail. I cannot read mail with Epoch and I checked the source movemail.c, and I quote So, if your system uses lock files rather than flock, then the only way you can get proper operation is to enable movemail to write lockfiles there. This means you must either give that directory access modes that permit everyone to write lockfiles in it, or you must make movemail a setuid or setgid program. */ Well, so I make movemail both setuid and setgid program -rwsrwsr-x 1 root mail 20480 Aug 4 17:03 movemail I still cannot receive mail. Meanwhile, my existing movemail in the old emacs-18.59 can read mail without problem. It is usless even if I rename the movemail in epoch and reolace it with the one from emacs (I actually use a symbolic link). Can anybody give me a hint? Many thanks in advance. -- Guan-Hsong Hsu Email: ghsu@nswc-wo.navy.mil Nonlinear Dynamics Group (301)394-5289, 394-5290 Mathematics and Computations Branch (R44) NSWC DD/WO, Silver Spring, MD 20903-5640
Re: movemail cannot lock file
Author: Guan-Hsing Hsu
Date: Tue, 10 Aug 1993 21:42
Date: Tue, 10 Aug 1993 21:42
24 lines
1364 bytes
1364 bytes
In an earlier arictle, I wrote : >Hi, Dear Epocher, > I have recently compiled Epoch 4.2 to run on a HP 720 and it runs >very well except for movemail. I cannot read mail with Epoch and I >checked the source movemail.c, and I quote ... text deleted I just tried to use rmail from epoch when I login as root. And it worked. So it really seems like a problem that with setting the permission of movemail. What am I doing wrong? Any suggestion is appriciated! By the way, I am running HP UX 9.01 on an HP 720. -- Guan-Hsong Hsu Email: ghsu@nswc-wo.navy.mil Nonlinear Dynamics Group (301)394-5289, 394-5290 Mathematics and Computations Branch (R44) NSWC DD/WO, Silver Spring, MD 20903-5640
Re: movemail cannot lock file
Author: Hamish Macdonald
Date: Wed, 11 Aug 1993 14:22
Date: Wed, 11 Aug 1993 14:22
52 lines
1906 bytes
1906 bytes
>>>>> On 10 Aug 1993 11:38:24 EST,
>>>>> In message <ghsu.745000704@unstable>,
>>>>> ghsu@unstable.nswc.navy.mil (Guan-Hsing Hsu) wrote:
Guan-Hsing> I have recently compiled Epoch 4.2 to run on a HP 720 and
Guan-Hsing> it runs very well except for movemail. I cannot read mail
Guan-Hsing> with Epoch and I checked the source movemail.c, and I
Guan-Hsing> quote
This is what I use for movemail on hpux:
# This is a shell archive. Remove anything before this line,
# then unpack it by saving it in a file and typing "sh file".
#
# Wrapped by Hamish Macdonald <hamish@bmerh166> on Wed Aug 11 10:22:16 1993
#
# This archive contains:
# /bnr/contrib/lemacs/etc/movemail
#
LANG=""; export LANG
PATH=/bin:/usr/bin:$PATH; export PATH
echo x - movemail
cat >movemail <<'@EOF'
#!/bin/sh
if [ "$#" != 2 ]; then
echo "Usage: $0 infile outfile" 1>&2
exit 1
fi
umask 077
if [ -r $1 ]; then
/bin/rm -f $2
touch $2
yes "s $2" | mail -r -f $1 > /dev/null
stat=$?
if [ $stat = 0 ]; then
/bin/rm -f $1
exit 0
else
exit $stat
fi
else
echo "$0: File $1 is not readable" 1>&2
exit 1
fi
@EOF
chmod 755 movemail
exit 0
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads