jmd
05-21-2005, 01:17 AM
Running OS X 10.3.9, and just noticed some problematic looking links in /etc that Hayne suggested I make a post about. I noticed while doing an "ls -l" in /etc that a few files came back as "invalid arguments":
/etc % type ls
ls is /bin/ls
/etc % ls -la > /dev/null [print stderr only]
ls: ./aliases: Invalid argument
ls: ./daily: Invalid argument
ls: ./monthly: Invalid argument
ls: ./resolv.conf: Invalid argument
ls: ./rmt: Invalid argument
ls: ./weekly: Invalid argument
Those file do show up in the ls output, with empty contents:
/etc % ls -l aliases
ls: aliases: Invalid argument
lrwxr-xr-x 1 root wheel 0 13 Jan 11:36 aliases
Note how it has a 'l' in the first column, but no -> destination printed. The only symlink in /etc that isn't fubar'ed like this is localtime:
/etc % ls -l 2>/dev/null|grep '>' [ls all the files, skip error messages]
lrwxr-xr-x 1 root wheel 35 11 May 23:30 localtime -> /usr/share/zoneinfo/America/Chicago
Most frighteningly, I get a bus error trying to file(1) these six files:
/etc % /usr/bin/file resolv.conf
zsh: bus error /usr/bin/file resolv.conf
I'm not sure how Mac's DNS resolution works... from what I know of UNIX, I should be dead in the water without that file. But I see intermittent results from command line utilities:
/etc % host google.com
;; connection timed out; no servers could be reached
/etc % ping google.com
PING google.com (216.239.39.99): 56 data bytes
64 bytes from 216.239.39.99: icmp_seq=0 ttl=237 time=36.262 ms
Come to think of it, my Mac did crash last night, when I tried to plug it into an external monitor. And I noticed another file system oddity earlier, which could very well be nothing, but thought I might include it under the circumstances:
% find ~/Library/Mail/Mailboxes -name mbox -group jmd|wc -l
15
% find ~/Library/Mail/Mailboxes -name mbox -group wheel|wc -l
2
Two of my 17 mailboxes are owned by the wheel group. Only those two files, out of all 131 files in ~/Library/Mail.
Any suggestions?
*starts bailing out data to the old PC before the ship sinks any further*
/etc % type ls
ls is /bin/ls
/etc % ls -la > /dev/null [print stderr only]
ls: ./aliases: Invalid argument
ls: ./daily: Invalid argument
ls: ./monthly: Invalid argument
ls: ./resolv.conf: Invalid argument
ls: ./rmt: Invalid argument
ls: ./weekly: Invalid argument
Those file do show up in the ls output, with empty contents:
/etc % ls -l aliases
ls: aliases: Invalid argument
lrwxr-xr-x 1 root wheel 0 13 Jan 11:36 aliases
Note how it has a 'l' in the first column, but no -> destination printed. The only symlink in /etc that isn't fubar'ed like this is localtime:
/etc % ls -l 2>/dev/null|grep '>' [ls all the files, skip error messages]
lrwxr-xr-x 1 root wheel 35 11 May 23:30 localtime -> /usr/share/zoneinfo/America/Chicago
Most frighteningly, I get a bus error trying to file(1) these six files:
/etc % /usr/bin/file resolv.conf
zsh: bus error /usr/bin/file resolv.conf
I'm not sure how Mac's DNS resolution works... from what I know of UNIX, I should be dead in the water without that file. But I see intermittent results from command line utilities:
/etc % host google.com
;; connection timed out; no servers could be reached
/etc % ping google.com
PING google.com (216.239.39.99): 56 data bytes
64 bytes from 216.239.39.99: icmp_seq=0 ttl=237 time=36.262 ms
Come to think of it, my Mac did crash last night, when I tried to plug it into an external monitor. And I noticed another file system oddity earlier, which could very well be nothing, but thought I might include it under the circumstances:
% find ~/Library/Mail/Mailboxes -name mbox -group jmd|wc -l
15
% find ~/Library/Mail/Mailboxes -name mbox -group wheel|wc -l
2
Two of my 17 mailboxes are owned by the wheel group. Only those two files, out of all 131 files in ~/Library/Mail.
Any suggestions?
*starts bailing out data to the old PC before the ship sinks any further*