We have a media server where all of our audio, etc. is served out of. A few different servers mount a certain directory on the media server. I noticed though, that depending on which server I'm looking at the files from, the owner/group is different.
For example, on the media server, all of the directories are owned by user media
. On one of our web servers, all of the directories appear to be owned by the application user. This makes it easy for an application to read and write data to the media server, without having to give 777 permissions to the directory.
How is this possible?
On CentOS 5
Answer
Every file has a ID number for the user and group, for example, 500
.
When you say stat FILE
or ls -l
it, your system will use its own /etc/passwd
to map 500
to a name - that's why you get a different name on a different system.
Comments
Post a Comment