Discussion:
movemail failing .. apparently permission issue
Harry Putnam
2014-12-20 00:36:05 UTC
Permalink
Setup:
Very new install of Gentoo linux
GNU Emacs 25.0.50.1 (i686-pc-linux-gnu, GTK+ Version 3.12.2)
of 2014-12-19 on gv
(Installed thru gentoo manager (emerge/portage) emacs-vcs)
(Gets installed from bzr repo)

When starting gnus:
I get a failure of movemail being unable to access some part of the
setup. Apparently either /var/spool/mail or ~/spool

(from *Messages* buffer)
,----
| Reading incoming mail from directory...
| Processing mail from ~/.emacs-mail-crash-box...
| Reading incoming mail from file...
| movemail: Permission denied for /var/spool/mail/harry (1 return). Continue? (y or n) n
| Mail source (file :path /var/spool/mail/harry) error (Permission denied for /var/spool/mail/harry). Continue? (y or n) n
| Mail source (file :path /var/spool/mail/harry) failed: (error Cannot get new mail)
`----

/var/spool/mail is set mail:root and octal 755

drwxr-xr-x 2 mail root 4096 Dec 19 13:30 mail

Actual mail file: /var/spool/mail/harry
-rw------- 1 harry nfsu 676 Dec 19 13:30 harry

My spool area in ~ is Myuser:Mygroup octal 755

`movemail' is set root:root octal 755

ls -l /usr/libexec/emacs/25.0.50/i686-pc-linux-gnu/
-rwxr-xr-x 1 root root 22016 Dec 19 16:19 movemail

Anyone here understand what is happening?
Andreas Schwab
2014-12-20 08:55:08 UTC
Permalink
Post by Harry Putnam
-rw------- 1 harry nfsu 676 Dec 19 13:30 harry
^^^^^^^^^^
Post by Harry Putnam
My spool area in ~ is Myuser:Mygroup octal 755
^^^^^^^^^^^^^^

What is your login id and group?

Andreas.
--
Andreas Schwab, ***@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."
Harry Putnam
2014-12-20 12:59:33 UTC
Permalink
Post by Andreas Schwab
Post by Harry Putnam
-rw------- 1 harry nfsu 676 Dec 19 13:30 harry
^^^^^^^^^^
Post by Harry Putnam
My spool area in ~ is Myuser:Mygroup octal 755
^^^^^^^^^^^^^^
What is your login id and group?
harry:nfsu

ls -ld ~/spool

drwxr-xr-x 2 harry nfsu 4096 Dec 17 18:56 /home/harry/spool
Harry Putnam
2014-12-21 21:05:20 UTC
Permalink
Harry Putnam <***@newsguy.com> writes:

Attempting to give a little clearer picture of my situation. Some of
this repeats an earlier post but hopefully a bit more clear.

Setup:
Very new install of Gentoo linux

GNU Emacs 25.0.50.1 (i686-pc-linux-gnu, X toolkit,
Xaw3d scroll bars) of 2014-12-20 on gv
(Built from git sources)

(Installed thru gentoo manager (emerge/portage) emacs-vcs)

When starting gnus:
I get a failure of movemail being unable to access some part of the
setup. Apparently either /var/spool/mail or ~/spool

(from *Messages* buffer)
,----
| Reading incoming mail from directory...
| Processing mail from ~/.emacs-mail-crash-box...
| Reading incoming mail from file...
| movemail: Permission denied for /var/spool/mail/harry (1 return). Continue? (y or n) n
| Mail source (file :path /var/spool/mail/harry) error (Permission
| denied for /var/spool/mail/harry). Continue? (y or n) n
| Mail source (file :path /var/spool/mail/harry) failed: (error Cannot get new mail)
`----

Apparently above is not considered an error since setting
debug-on-error does not produce a backtrace.

ls -ld /var/spool/mail
drwxr-xr-x 2 mail root 4096 Dec 19 13:30 /var/spool/mail

ls -l /var/spool/mail/
total 4
-rw------- 1 harry nfsu 716 Dec 19 13:30 harry

ls -ld /home/harry/spool
drwxr-xr-x 2 harry nfsu 4096 Dec 17 18:56 /home/harry/spool

ls -l /usr/libexec/emacs/25.0.50/i686-pc-linux-gnu/
total 80
-rwxr-xr-x 1 root root 9552 Dec 20 21:13 hexl
-rwxr-xr-x 1 root root 22016 Dec 20 21:13 movemail
-rwxr-xr-x 1 root root 5412 Dec 20 21:13 profile
-rwxr-xr-x 1 root root 21067 Dec 20 21:13 rcs2log
-rwxr-xr-x 1 root root 9636 Dec 20 21:13 update-game-score

What need to change here:

I did try setting movemail like:

mail:root instead of root:root

Tried setting /var/spool/mail setuid root and setgid with no change in
gnus output about movemail.

Loading...