Question

question:

I'm just getting into aws. I've installed vsftpd on my instance, set up usergroups and all that jazz. It works really well, except I've noticed that the owner on all the files are numbered. The owner isn't the user that that it should be.

What I'm trying to do is a mkdir with php, which works fine:

<?php
mkdir('test', 0777);
?>

But the owner shows up as '48'. It should be the owner of the domain correct? 48 is not the owner. safe_mode is turned off.

When doing a 'ls -l' in the directory from the command line, the owner and group are both what they should be.

Was it helpful?

Solution

48 maybe group/owner id. Type cat /etc/passwd in terminal to make sure.

Note: When you create files or directory from php/wsgi app/etc, your webserver user and group (e.g. www-data for apache2 on debian) become owners of your file or directory.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top