How can I grant user access to one directory only, so they can edit a file?
October 3, 2008 12:02 PM
Subscribe
How can I grant user access to one directory only, so they can edit a file?
I'm sure there's a way to do this. I'm hosting a site and I want to allow a person access to one directory, so that he can edit the php file in it whenever he wants. What's the best way to do this?
It seems to me that my options are: 1) set up a new user in my hosting and give him FTP access to the folder (I'm on Dreamhost - not sure how to do it, or how to stop him from seeing the entire domain). Problem with this is that then I won't own the files, right?
2) There might be some kind of user management system that can a) let the person log in. b) Give them a web front-end with an editor so they can edit the file. I've looked at hotscripts.com but they don't seem to be quite what I want.
Unfortunately I can't put the script in a database in joomla etc because it is feeding information to a shockwave application. So it needs to be a separate file. Which I think rules out number 2. Am I missing something?
posted by media_itoku to computers & internet (3 comments total)
Can you create a new account? If so, add it, and add it to a new group. "chown :newgroup filename" and then "chmod g+w filename". Anyone in that group can edity that file. Add yourself to that group also.
posted by cmiller at 12:16 PM on October 3, 2008