Change folder permissions on user login

I'm trying to make a shared folder for games, so two local users I have on my system would be able to share games. Wine requires the game folder to be owned by the user who's trying to run the game. So my solution was to run sudo chown -R $USER: /path/to/games/folder when user logs in. Could anyone help me figure out how to do that?