Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

In my FTP client I can see files' owner ID (99).

How do I find out which user is the owner of these files?

share|improve this question
up vote 27 down vote accepted

Shorter getent version (as long as you don't need just the username)

$ getent passwd 99

Works on at least CentOS 5.6 - will take username or uid as key.

share|improve this answer
Interestingly enough centos has done something wierd and user 48 is not listed in passwd. – Kendrick Jan 2 '13 at 3:34
$ getent passwd | awk -F: '$3 == 99 { print $1 }'
share|improve this answer

The quickest way to check it (if you have a shell access) is to: cat /etc/passwd | grep 99

Btw UID 99 usually belongs to "nobody" user.

share|improve this answer
getent is a better answer because it works even if the userid is coming from NIS. – Paul Tomblin Apr 30 '11 at 10:37

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.