${LOGNAME} vs. ${USER}
Nils Kassube
kassube at gmx.net
Sun Jul 12 18:28:18 UTC 2015
Johnny Rosenberg wrote:
> One thing that changed when I switched from Ubuntu 12.04 to Ubuntu
> 14.04 is what I already mentioned, that things like SD-cards end up
> at ”/media/<username>/” now, the earlier location was just ”/media/”.
> One wild guess I do is that Ubuntu uses either USER or LOGNAME
> somewhere ”under the hood”, to determine the location of my SD card.
> If so, which one?
Skimming through the source code of the udisks2 package it looks like
none of them is used. Instead the username is read from /etc/passwd.
Nils
More information about the ubuntu-users
mailing list