Ocarina of Time has eight masks, all from the Happy Mask Shop in Hyrule Castle Town. The shopkeeper lends you one mask at a time: find someone who wants it, sell it, then go back and pay him the mask's price. Sell all four and he lets you borrow the Mask of Truth and three more masks. The whole quest is done as young Link.
Quick answers
When does the shop open? After you show Zelda's Letter to the guard at the gate to Death Mountain Trail in Kakariko Village. He asks you to bring a Keaton Mask for his son.
How do I get the Mask of Truth? Sell the Keaton Mask, Skull Mask, Spooky Mask and Bunny Hood, in that order. The Mask of Truth lets you read Gossip Stones.
Do I make money? Yes. The Running Man fills your wallet for the Bunny Hood, so get a bigger wallet from the House of Skulltula first.
Tick each step as you finish it. Your ticks are saved in this browser only.
Keaton Mask
Young
Borrow the Keaton Mask, wear it, and talk to the guard at the gate to Death Mountain Trail in Kakariko Village. He buys it for his son for 15 Rupees. Go back to the shop and pay the 10 Rupees you owe. From then on the guard calls you "Mr. Hero".
Skull Mask
Young
Enter the Lost Woods from Kokiri Forest and take the first left to find the Skull Kid playing his flute on a stump. Wear the mask and talk to him. He likes it but only pays 10 Rupees, so you have to add 10 of your own when you pay the shop.
Spooky Mask
YoungDay
Sell it to the boy in Kakariko Graveyard, who wants to look like Dampé the gravekeeper. He is only there during the day. He pays the full 30 Rupees.
Bunny Hood
YoungAfter Jabu-Jabu's Belly
The Running Man only appears after you finish Lord Jabu-Jabu's Belly. In the day he jogs around Lon Lon Ranch in Hyrule Field; at night he sits near the entrance to Gerudo Valley. Wear the Bunny Hood and talk to him, and he pays enough to fill your wallet. Pay the shop 50 Rupees.
Mask of Truth
Young
With all four masks paid for, the shopkeeper opens the rest of his shop. You can now borrow the Mask of Truth, the Goron Mask, the Zora Mask and the Gerudo Mask for free, and borrow the first four masks again.
What Each Mask Does 8
Mask of Truth. Wear it and talk to a Gossip Stone to hear what it knows. Wear it in front of the Deku Scrubs at the Deku Theater in the Lost Woods for a bigger Deku Nut capacity (on the Nintendo 64, do this before you get the Poacher's Saw, or the upgrade is gone for good).
Skull Mask. Wear it in front of the Deku Scrubs at the Deku Theater and they reward you with a bigger Deku Stick capacity. Keese and Guay leave you alone while you wear it.
Bunny Hood. Stalchildren don't appear in Hyrule Field at night while you wear it.
Keaton Mask. No special power, but lots of people react to it.
Spooky Mask. No special power; people find it creepy.
Goron, Zora and Gerudo Masks. No special powers. Wear them around Goron City, Zora's Domain and Gerudo Valley to see what people say.