muhammad,
Your Mac commands worked perfectly on one of my macs running pre-yosemite code. When I tried this on a yosemite mac, I get the "no such directory...." when trying to edit the Internetsharing.plist. Should these commands hit a different plist?