I'm trying to automatize some build and deploy procedures. To do it I want to start the jboss server with my user instead of root for security reasons. I've tried it many time but I get a lot of problems with the permissions of the files. I've already added my user to the adm group and all the files under the $JBOSS_HOME/server/default are owned by the adm group, but there are many files that don't have the write permission to the group.
How I can start JBoss with my user?