How to reconfigure an instance to run as non-root user

Hi,Sun Java System Web Server 6.1, SP7I created an instance using root. How to reconfigure the instance starting an instance using non-root user account?KW
[183 byte] By [ncs_sysadmina] at [2007-11-27 6:32:49]
# 1

cd <ws61installroot>

chown -R <nonrootuser>:<nonrootgroup> https-foo

chown <nonrootuser:nonrootgroup> httpacl/generated/https-foo.acl

chown <nonrootuser:nonrootgroup> httpacl/genwork/https-foo.acl

su - nonrootuser

cd https-foo/config

edit magnus.conf and change User directive to become nonrootuser

now, if you are running on s10, then you can also make this nonrootuser to bind at port 80 without requiring you to start the server as root .

http://blogs.sun.com/natarajan/date/20060612

On other platforms, you will need to start the server as root to run at port 80. though, you start the server as root, web server will later become the <nonrootuser> you provide in the magnus.conf/User directive

hope this helps

chilidevelopera at 2007-7-12 17:58:30 > top of Java-index,Web & Directory Servers,Web Servers...