- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- requirement for app
Categories
Company
Local Language
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
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
Community
Resources
Forums
Blogs
- 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
07-20-2006 04:43 AM
07-20-2006 04:43 AM
Thanks Much.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-20-2006 04:47 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-20-2006 04:53 AM
07-20-2006 04:53 AM
Re: requirement for app
I assume that you are referring to those scripts in '/sbin/init.d/'. If so, then permissions of 555 (r-xr-xr-x) with an ownership of bin:bin would be "standard". Since the process that starts these scripts is a root process, though, this doesn't matter that much.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-20-2006 04:54 AM
07-20-2006 04:54 AM
Re: requirement for app
Your final tasks are to create symbolic links from the run-level directories to the actual script in /sbin/init.d. Generally, when a service is started at run-level N, it is stopped at run-level N - 1. For example, let's suppose that you need to start myscript at run-level 3 and stop it at run-level 2.
You would do something like this:
ln -s /sbin/init.d/myscript /sbin/rc3.d/S912myscript
ln -s /sbin/init.d/myscript /sbin/rc2.d/K088myscript.
Note that the 3-digit SNNN and Knnn values add to 1000. This convention tends to order the start and stop sequences correctly.
You can also manually start and stop your service by :
/sbin/init.d/myscript start (or stop)
Man rc for details.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-20-2006 06:23 AM
07-20-2006 06:23 AM
Re: requirement for app
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-20-2006 06:28 AM
07-20-2006 06:28 AM
Re: requirement for app
The "gotcha" to avoid is, suppose that your /sbin/init.d/script does an "su mickey -c myotherscript"; in that case, "myotherscript" would need to readable and executable by user mickey.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-20-2006 06:30 AM
07-20-2006 06:30 AM
Re: requirement for app
A script owned by 'root' with permissions of 742 will not be a problem for the reason I mentioned: the process starting your script during starup/shutdown sequeneces (ultimately 'init') is a 'root' process.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-20-2006 06:43 AM
07-20-2006 06:43 AM
Re: requirement for app
The application will start.
If its owned by root it presents a security risk and could conceivably be used to gain root priviledges on the system.
Oracle and many other application vendors recommend you have an application user that you set up to own the app.
Other possible problems are if the app uses shared memory it will be hard to identify and can not be accessed by other users if its a multi user app.
In general, it is a bad idea to have an application owned by root.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com