Smart spaces are defined as an environment capable of communicating with users in order to support them in achieving a goal. Previously, smart spaces were restricted to closed private areas in a well defined environment. However, factors such as the omnipresence of mobile devices, the advancement in wireless communication, and the low cost of technological infrastructure allows the creation of smart spaces everywhere. One trend that is acquiring relevance these days is to use surrounding public resources to perform tasks on behalf of mobile devices, which are resource constrained. To achieve this, systems should be able to control the access to public resources, minimize possible interference among users, and maintain the purpose of public resources untouched. This work presents a multi-user ad-hoc resource manager for smart urban areas based on previous considerations. The current system helps to avoid conflicts between users by means of a distributed scheme based on social gain for the community. The management is performed without the need of a central infrastructure. Results show that it is possible to discover and manage public resources from mobile devices while handling conflicts in a distributed manner.