In the virtual manufacturing process based on grid technology, user and resource provider share resource and service connected through different virtual enterprises. In order to realize the target, virtual enterprise will manage the enterprises in its lower level, and then the hierarchically distributed environment will be formed. The resource provider and virtual enterprise should achieve the agreement on the strategy of resource sharing, such as the quantity, type and proportion of resource sharing. Therefore the users in the virtual enterprises in lower level could get access to the resource of the upper level to achieve the common aim. The problem of allocating resources among hierarchically distributed virtual enterprises is the focus, at the same time, the suitable proportion of sharing resource is also discussed. In addition, under the specific proportion condition, a new resource sharing scheme is put forward. Compared with some other resource sharing method, the effectiveness of sharing resource is verified by using simulation software. The most effective and suitable resource sharing method among hierarchically distributed enterprises is explored.