What does chown 999 mean?

8,404

who is the user 999? Is it just custom to him or a code used universally?

In Ubuntu and the Ubuntu family flavours, the numeric user ID in live sessions is 999. (The literal user ID is ubuntu, kubuntu, lubuntu ... xubuntu but in all these cases the numeric user ID is 999.)

When you boot from a USB drive, 'Try Ubuntu', you boot into a live session.

You can check with the command

grep 999 /etc/group

and you will find the user if you run a live session. Otherwise you will probably not find anything via that command.

The operating system used for the Docker tutorial is probably an installed system. And there seems to be a user ID with the numeric 999. It is possible to create such a user ID, but in an installed Ubuntu system there is no standard user with that numeric user ID.

Share:
8,404

Related videos on Youtube

YulePale
Author by

YulePale

Human.

Updated on September 18, 2022

Comments

  • YulePale
    YulePale over 1 year

    I know what chmod (change mode) and what chown (change owner) do.

    I also understand what the numbers mean after chmod do.

    I was going through a docker tutorial and I saw chown 999 being used.

    What does it mean and do?

  • YulePale
    YulePale over 4 years
    who is the user 999? Is it just custom to him or a code used universally?
  • Yaron
    Yaron over 4 years
    @YulePale updated my answer, in my machine logstash has user-id 999
  • Sergiy Kolodyazhnyy
    Sergiy Kolodyazhnyy over 4 years
    UID 999 is possible, there are other posts on askubuntu referencing this UID, but it may be specific to each system. stackoverflow.com/q/1013516 mentions UIDs below 1000 are reserved for system users, but there is no official list of what those users may be and POSIX apparently doesnt enforce UIDs either.
  • Sergiy Kolodyazhnyy
    Sergiy Kolodyazhnyy over 4 years
    According to stackoverflow.com/q/4159910/3701431 even root user isn't POSIXly required.