1838577 Members
4098 Online
110128 Solutions
New Discussion

weblogic on hpux

 
SOLVED
Go to solution
Shivkumar
Super Advisor

weblogic on hpux

Dear Sirs/Madam,

We support weblogic 7.x on hpux 11i. The weblogic server is being configured to run as a user "weblogic" and we start weblogic process as a "weblogic" user.

Someone told us that in case we start web logic server as a "root" user then it will change the files permission of the weblogic and mess up configuration.

I find it difficult to buy that starting process with root user changes file permissions.

Can someone throw some light on this ?

Thanks in advance,
Shiv
2 REPLIES 2
Devender Khatana
Honored Contributor

Re: weblogic on hpux

Hi,

You can use su with -c option to call the commands which startup the process. I do not the weblogic process but for oracle we do it like this. This can give an idea to start with.
===================================
su - oraprd -c "sqlplus /nolog << EOF
connect / as sysdba
startup nomount;
=======================================


HTH,
Devender
Impossible itself mentions "I m possible"
Matti_Kurkela
Honored Contributor
Solution

Re: weblogic on hpux

The weblogic server needs to write in quite a few files and directories when it is running. For example, if logfile rotation is enabled (as it is by default), the weblogic.log gets occasionally renamed to weblogic.log.nnnn (where nnnn is an increasing number) and a new weblogic.log is created.

If you run the server normally as "weblogic", all these files get created as user "weblogic".

If you later start the server as "root", there is no immediate problem, because root can always read and write any file. However, all the files the server creates while running as root will become owned by root. This will be a problem later.

When the server is again started as user "weblogic", it will find that it can't write to weblogic.log, access.log and many other files, because they are now owned by root. If the weblogic server cannot write to these files and directories, it cannot complete its startup and will crash.

Do yourself a favour: make the weblogic startup script check it's running as a correct user and stop if it isn't.

Even better, you can make it automatically try to change to the correct user if it isn't already (this is best done using the "sudo" tool, if you have it installed).

MK