mailx: /usr/spool/mail: Permission denied

I’m trying to send email from cron jub running in qnx4, but for me it
looks like mail/mailx is totally broken:

0 root@1:/#mailx tavasti@foo.bar
mailx: /usr/spool/mail: Permission denied
78 root@1:/usr/spool/mail#cd
0 root@1:/#ls -l /usr/spool/mail
total 16
drwxrwxr-x 2 root root 4096 Dec 20 2000 .
drwxrwxr-x 6 root root 4096 Dec 20 2000 …
0 root@1:/#ls -ld /usr/spool/mail
drwxrwxr-x 2 root root 4096 Dec 20 2000 /usr/spool/mail

Any ideas?


M. Tavasti / tavastixx@iki.fi / +358-40-5078254
Poista sähköpostiosoitteesta molemmat x-kirjaimet
Remove x-letters from my e-mail address

M. Tavasti <tawzz@212-246-108-82.adsl.tpo.fi> wrote:

I’m trying to send email from cron jub running in qnx4, but for me it
looks like mail/mailx is totally broken:

/usr/spool/mail is suppsed to be user:group mail:mail, and it is supposed
to have the (I think it is called sticky) bit set, such that files in
it are user:mail.

The mailx utility is supposed to be group:mail, and it is supposed to
have the setgid bit set, so that when it runs, it runs as group mail,
which then lets it create files in /usr/spool/mail, and lets it write
to spool files (through the group permission being valid).

-David

0 root@1:/#mailx > tavasti@foo.bar
mailx: /usr/spool/mail: Permission denied
78 root@1:/usr/spool/mail#cd
0 root@1:/#ls -l /usr/spool/mail
total 16
drwxrwxr-x 2 root root 4096 Dec 20 2000 .
drwxrwxr-x 6 root root 4096 Dec 20 2000 …
0 root@1:/#ls -ld /usr/spool/mail
drwxrwxr-x 2 root root 4096 Dec 20 2000 /usr/spool/mail

Any ideas?


M. Tavasti / > tavastixx@iki.fi > / +358-40-5078254
Remove x-letters from my e-mail address


QNX Training Services
http://www.qnx.com/support/training/
Please followup in this newsgroup if you have further questions.