Files under two users' ownership on a Linux server
Posted on 2005-04-29
I have the following case - the site was transfered from a Cobalt RAQ to a Fedora Plesk server, and since we have an ownership / perms issue with some files.
In the site structure, the main site resides at / and some users have their own subdirectory a say /web_users/user1 etc. Each user can FTP into the site, and the site also has a different, main FTP account that supposedly can manage everything.
The problem is that the files in say /web_users/user1 that therefore belong to user1 here, cannot be accessed or modified by the main FTP user anymore. Our need is for those sub-directories and their files to be editable by the main FTP access for that account, but also by the user those files belong to.
Obviously we can "chown -R" all files within /web_users/user1 so that they belong to the main FTP user, but in that case the problem is reversed and from then on the user1 cannot change the files in what is supposedly his own space.
Therefore my question is to know if, and how, we can have two users potentially access and modify some files on the server, without comprosing each other's rights to update that file in the future.
I am almost positive this is how it worked on the RAQ where the main FTP account could do everything, but also where a user could manage its own site at domain/~user1/.