Re: getting user name from uid

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



>>> Erik Mouw
[ PGP not available, raw data follows ]
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> On Wed, Apr 11, 2007 at 06:40:59AM +0300, Kari Hurtta wrote:
> > >>> Erik Mouw
> > > On Tue, Apr 10, 2007 at 06:12:58PM +0300, Kari Hurtta wrote:
> > > > (NFSv4 protocol passes usernames around. )
> > > > 
> > > > ( Documentation talks about id mapper daemon. )
> > > 
> > > Which runs in userspace because user *names* are a userspace thing.
> > > 
> > > The kernel doesn't care about usernames. The kernel only cares about
> > > user IDs. The whole issue about usernames is because we poor humans are
> > > much better in remembering names instead of numbers. That's why we have
> > > DNS to resolve www.kernelnewbies.org to 74.92.59.67. That's why your
> > > parents decided to call you "Kari Hurtta" instead of "6455243".
> > 
> > Well kernel NFSv4 code needs these usernames, because protocol uses 
> > them.   So because NFS server and client are on kernel space, these
> > usernames are no longer just userspace thing.
> 
> They still are. It's userspace that resolves them, not the kernel
> reading /etc/passwd (or whatever method is used to to map usernames on
> UIDs).

kernel either does not get numeric uid by reading them from /etc/passwd

-- all these data is ultimately passed from userspace -- way or another
 
   numeric uid is passed to kernel by login -program (or sshd or whartever)
   -- that is also userspace

> Erik

/ Kari Hurtta
 
> - -- 
> They're all fools. Don't worry. Darwin may be slow, but he'll
> eventually get them. -- Matthew Lammers in alt.sysadmin.recovery
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.6 (GNU/Linux)
> 
> iD8DBQFGHJFz/PlVHJtIto0RAjTEAJ98bEG5UDXKmJdBL19GjcOfbKLKowCdGFB6
> nFVrSAfw6KeROpfLNGnGFxs=
> =3oZs
> -----END PGP SIGNATURE-----
[ End of raw data. ]

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux