Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

9
  • 1
    If this returns nothing does that mean I don't have access to translate the id to a username? Commented Apr 17, 2012 at 4:07
  • 2
    More likely you didnt set "$uid"` or that uid doesn't exist. Does grep ":$uid:" /etc/passwd find it? Does getent passwd produce any output? Commented Apr 17, 2012 at 4:14
  • @cwd: You should always have access to translate an id to a username. For instance, ls -l is always doing this. Commented Apr 17, 2012 at 7:00
  • Just curious because looking at an ls listing on a shared host was showing numbers in the user / group name columns with ls. Perhaps it is a security precaution or jailshell thing? Commented Apr 17, 2012 at 19:50
  • @cwd More likely the shared host is using an /etc/passwd mounted / shared from elsewhere which wasn't mounted at the time. Commented Apr 17, 2012 at 19:56