package resouse using `user attribute`

This problem occur at ssh connected to OSX(darwin).
In this case package installed by "root" user. but OSX packaging system brew's user is "not root" user.

This patch is using `user attribute` to package resource.