Gentoo Archives: gentoo-user

From: Harry Putnam <reader@×××××××.com>
To: gentoo-user@l.g.o
Subject: [gentoo-user] [OT emacs-vcs/gnus] movemail failure (on permissions)
Date: Sat, 20 Dec 2014 00:35:04
Message-Id: 87ioh7hzlv.fsf@reader.local.lan
1 Hopefully some emacs/gnus adept will have some idea what's going here.
2
3 I've hit a snag after deciding to use the gentoo approach to acquiring
4 and tracking a fast moving emacs from bzr sources.
5
6 I've emerged emacs-vcs and a few required pkgs.
7
8 After adjusting my emacs init files to suit the new arrangement, when I
9 fire up gnus; I hit failure of `movemail' soon as it tries to check and
10 pull mail.
11
12 (From *Messages* buffer)
13 ,----
14 | Reading incoming mail from directory...
15 | Processing mail from ~/.emacs-mail-crash-box...
16 | Reading incoming mail from file...
17 | movemail: Permission denied for /var/spool/mail/harry (1 return). Continue? (y or n) n
18 | Mail source (file :path /var/spool/mail/harry) error (Permission denied for /var/spool/mail/harry). Continue? (y or n) n
19 | Mail source (file :path /var/spool/mail/harry) failed: (error Cannot get new mail)
20 | nnml: Reading incoming mail (no new mail)...done
21 `----
22
23 Something in those permisssions is set wrong:
24
25 ls -ld /var/spool/mail
26 drwxr-xr-x 2 mail root 4096 Dec 19 13:30 /var/spool/mail
27
28 ls -l /var/spool/mail
29 total 4
30 -rw------- 1 harry nfsu 676 Dec 19 13:30 harry
31
32 ls -l /usr/libexec/emacs/25.0.50/i686-pc-linux-gnu/
33 -rwxr-xr-x 1 root root 9552 Dec 19 16:19 hexl
34 -rwxr-xr-x 1 root root 22016 Dec 19 16:19 movemail
35 -rwxr-xr-x 1 root root 5412 Dec 19 16:19 profile
36 -rwxr-xr-x 1 root root 21067 Dec 19 16:19 rcs2log
37 -rwxr-xr-x 1 root root 9636 Dec 19 16:19 update-game-score
38
39 ------- ------- ---=--- ------- -------
40
41 On other Linux OSs I vaguely recall something about movemail being
42 setuid or setgid or maybe both.... perhaps that is the problem.
43
44 I tried both but the error didn't change