default user id for any file created in a certain directory
Posted on 2004-04-26
I understand that using the root account may be convenient but not a good idea in the long run. I have a whole bunch of directories that should be edited by user A but sometimes they are edited by root. Is there a way to make any new file/edited file in a certain folder be owned by user A regardless if root or any other user is the one creating it. I've tried setting the uid and gid permissions but this does not work (at least with the root user). Changing the umask will not help the issue due to security concerns. Any suggestions?