To configure Application Server with a non-root ID, you can set up an entire administrative domain owned and operated by a non-root user.
Log in to the host using a non–root user ID.
Run the asadmin create-domain command with the --domaindir option, pointing to the directory where you have write permissions. For example:
/opt/SUNWappserver/appserver/bin ./asadmin create-domain --domaindir /export/domains --adminport 5050 --adminuser admin --passwordfile /tmp/passwordfile --instanceport 9090 domain2
In this example domain2 directory will be created under /export/domains
Start this domain using the --domaindir option again. For example:
/opt/SUNWappserver/appserver/bin ./asadmin start-domain --domaindir /export/domains --user admin --passwordfile /tmp/passwordfile domain2
For more information, see the Sun Java System Application Server Enterprise Edition 8.1 2005Q2 Administration Guide.