Can i direct my Apache server to a local user in ebox and the Apache httpd.conf?
I'm sure you could (though technically you'd want to edit ebox's template file in /lib/share/ebox/stubs/ IIRC)
BUT I don't think I'd want to mess around with apache like that, I'm pretty sure it would break loads of stuff and be a security nightmare. (there are some very good reasons why webservers don't get normal shell accounts!)
If we're specifically talking about files for a website then this is what I'd do:
- chown -R myuser /web/root
- chgrp -R webservergroup /web/root
- chmod -R 755 /web/root
- chmod g+s /web/root
this changes all files to be owned by you
changes the group of all files to give the webserver access
makes sure you have read/write access to all files while giving apache read only access
sets the group sticky bit on the site directory so new files you add have you as the owner but apache's group
If there are any specific folders you need to allow apache to write in chmod -R 775 them (use -R in case there are already some files in them). Any new files created by the webserver will be read only to you.
If that is a problem then ignore all this and install ACLs (apt-get install acl); append the acl option to your data partition on the server; reboot and start setting them up.
The two main commands are getfacl and setfacl.