HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- weblogic on hpux
Operating System - HP-UX
1838577
Members
4098
Online
110128
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-13-2005 02:44 PM
08-13-2005 02:44 PM
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
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
Solved! Go to Solution.
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-13-2005 02:56 PM
08-13-2005 02:56 PM
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
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"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-13-2005 06:56 PM
08-13-2005 06:56 PM
Solution
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).
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
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP