Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

We have a media server where all of our audio, etc. is served out of. A few different servers mount a certain directly 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? I hope this makes sense!

On CentOS 5

-Bryan

share|improve this question

1 Answer 1

up vote 1 down vote accepted

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.

share|improve this answer

Your Answer

 
discard

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.