Shared directory between two users
Posted by: Joreji
Posted on: 2007-01-14 13:08:00
Hi all.
I have two users, one with a webserver (user1) and the other with merely ftp access to his home dir (user2).
What I want to accomplish, is user1's webserver to be able to access a directory with full user rights in user2's home dir. I can do that by setting other's user-rights on mentioned directory to rws, but with that, everyone could access the files, which is not what I'd like to have.
I want a place for people who know user2's password to upload images via user2's ftp account and read/write/rename/delete those files via user1's webserver.
I tried using setuid on a directory created by user1 (in a subdir with o+rws rights), but files that are being copied per user2's ftp still got user2 as their owner instead of user1.
Anyone got some ideas on how I can accomplish this?
Thanks,
Joreji