4 ms·
Regarding 'ls', I ran "strace ls" on Linux and didn't see any open on /etc/password; it's important that you run 'ls -l', which should trigger the /etc/password
by jff 10y ago
Regarding 'ls', I ran "strace ls" on Linux and didn't see any open on /etc/password; it's important that you run 'ls -l', which should trigger the /etc/password access because it has to map UIDs to usernames.
- bch 10y agore: "ls -l" understood. I ran "ls -ld ."
- jff 10y agoAh, I'm not familiar with dtrace so I guess I missed that in your comment. Thanks for the clarification.
- bch 10y agoUnderstandable. The dtrace command you see is tracing a process "ls" (regardless of switches). I didn't show my work (ls -ld .) that generated the output, so your confusion isn't unfounded. :)