I cannot work this out. If I'm logged in as root (using chroot - possibly) then all my actions (e.g. mkdir) are assigned to the user
For my websites I need to associate files and directories and such to a specific user which appears to be linked to the virtual host account for the hosting account. (Its a dedicated hosting server - we log into the control panel and click "create account". This creates a new dir in
/home with a
www/public_html dir in it). For instance here is a screenshot of the
www folder for one account:
I don't understand what its all about. The user appears to be
2045 however this is a number. Typing
id 2045 into the command line results in
id: 2045: No such user so does
chown 2045:sites though, so I'm not entirely sure what's going on. Is
2045 a user? Or something else I don't know about?
What I really want to do is be able to switch user (su) to 2045 and run the commands so that I don't have to
chown every time I do something (I work with SVN a lot).
Any insight would be very helpful. :) Thank you.