advertisement

Article:
  Learning the Mac OS X Terminal, Part 2
Subject:   .forward stopped working
Date:   2002-02-12 02:56:18
From:   plr
Response to: .forward stopped working

Chris,


I checked the .forward file. It's OK. The logs show this (daily is set to run at 18:30):


Feb 11 18:31:42 justine sendmail[1342]: gethostbyaddr(192.168.1.35) failed: 1
Feb 11 18:31:42 justine sendmail[1342]: g1BHVgc01342: forward /var/root/.forward.justine+: World writable directory
Feb 11 18:31:42 justine sendmail[1342]: g1BHVgc01342: forward /var/root/.forward+: World writable directory
Feb 11 18:31:42 justine sendmail[1342]: g1BHVgc01342: forward /var/root/.forward.justine: World writable directory
Feb 11 18:31:42 justine sendmail[1342]: g1BHVgc01342: forward /var/root/.forward: World writable directory
Feb 11 18:31:42 justine sendmail[1342]: g1BHVgc01342: from=root, size=324, class=0, nrcpts=1, msgid=<200202111731.g1BHVgc01342@justine>, relay=root@localhost
Feb 11 18:31:42 justine sendmail[1344]: g1BHVgc01342: to=root, ctladdr=root (0/0), delay=00:00:00, xdelay=00:00:00, mailer=local, pri=30324, dsn=2.0.0, stat=Sent


OK, there's a problem. But I don"t see which directory it's complaining about being world writable:


[justine:~] plr% ls -la /var/root/
total 32
drwxr-x--- 10 root wheel 296 Feb 10 11:49 .
drwxr-xr-x 19 root wheel 602 Feb 9 22:53 ..
-rw-r--r-- 1 root wheel 4 Jan 1 1970 .CFUserTextEncoding
drwx------ 7 root wheel 264 Jan 31 22:08 .Trash
-rw-r----- 1 root wheel 4 Feb 10 12:40 .forward
-rw------- 1 root wheel 1658 Dec 8 09:30 .nsmbrc
drwx------ 2 root wheel 264 Dec 19 19:38 Desktop
drwxr-xr-x 2 root wheel 264 Dec 21 19:06 Documents
drwxr-xr-x 5 root wheel 264 Jan 12 13:38 Library
-rw-r--r-- 1 root wheel 2136 Dec 23 15:57 retroclient.state


Does it make any sense to you?


I see root is getting the mail when I do sudo mail.


Thanks for an excellent series by the way. I'm looking forward to part 3.


--Paul