Directory structure of clients and corresponding permissions
Hello. I have a question about the directory structure of a client.
I've created a "client" and a "site" and the corresponding directory layout is /var/www/clients/client1/web1. The permissions of the files are web1 as owner and client1 as group. Now, when I'm creating an ftp/ssh account the owner becomes the client's username, that is [CLIENTNAME] and what the user desires from the empty field. The client1 when connects via ssh it sees as owner his username, but via ftp it sees web1. Is this some sort of mapping that the ftp is using? Is it possible that the /etc/passwd file undesirable entries?
Another question. Let's say I'm having 5 sites in my "site" panel. If I'm going to delete the 5th and create a new one, I'don't get an id of 5, but the next value (6). If I'm keep deleting the last entry for example, the id value will still be increased for the newly created site. Why?