6 Jun
2005
6 Jun
'05
11:57
Markus Natter writes:
... What does "ls" do to? I think it uses a kind of an abstraction layer, as it seems to ask any underlieing authentication mechanism and nscd..
The ls command does a stat(2) system call on each file or directory, gets the uid from the returned data, and then calls the getpwuid(3) to get the passwd data, which contains the login name. The getpwuid() function is NIS-aware (and I think LDAP as well). -Ti