I've recently learned about an amazing usage of chmod:
chmod g+s /path/to/dir which makes every new file in that directory be put into the group that the directory itself is owned by.
Is there a way to have this behaviour, but for user? That is, if a public_html folder was owned by user/group "someuser", setting g+s on the folder means new files created as root are owned by user "root" and group "someuser". What I'd like to set up is new files created by root are owned by user "someuser" and group "someuser".
It looks like
chmod u+s should do this, except that appears to only modify who can execute executable files. :/