- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Best location for sys admin scripts?
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
01-20-2003 06:37 AM
01-20-2003 06:37 AM
Best location for sys admin scripts?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-20-2003 06:42 AM
01-20-2003 06:42 AM
Re: Best location for sys admin scripts?
We put them in their own filesystem. In our case, we call it /apps. That way, a new install doesn't overwrite them (as with /usr/local/bin) - we just restore /apps.
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-20-2003 06:43 AM
01-20-2003 06:43 AM
Re: Best location for sys admin scripts?
Usually most in house/ad-hoc programs are loaded under the /opt filesystem. Also you
should ensure that this filesystem is large enough for sufficient growth of your log files for these applications, I tend to make my /opt
filesystems 1.5 to 2.0GB in size.
Good luck
Frank G.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-20-2003 06:44 AM
01-20-2003 06:44 AM
Re: Best location for sys admin scripts?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-20-2003 06:46 AM
01-20-2003 06:46 AM
Re: Best location for sys admin scripts?
a. easier to specify in the path
b. the backups are taken with ignite , root fielsystems etc
Manoj Srivastava
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-20-2003 07:07 AM
01-20-2003 07:07 AM
Re: Best location for sys admin scripts?
If you have MC-ServiceGuard installed or you are planning, pls consider keep it in *shared* place!
Rgds.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-20-2003 07:27 AM
01-20-2003 07:27 AM
Re: Best location for sys admin scripts?
/opt/sysadmin
Regards
Rainer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-20-2003 07:47 AM
01-20-2003 07:47 AM
Re: Best location for sys admin scripts?
Sysadmin scripts are in.
/usr/contrib/bin
Permissions in general are 700. That way when I decide users are allowed to use them, all I have to do is change permissions.
Nobody but root can write to /usr/contrib/bin on our system.
I'm a user right? root
I contributed the script right?
some of them came from this forum? cool
P
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-20-2003 08:06 AM
01-20-2003 08:06 AM
Re: Best location for sys admin scripts?
I like '/usr/local/' or '/usr/contrib/' for scripts used by root or scripts of general applicability. For scripts specific to database support, my preference is in a directory like '$HOME/oracle/'. For scripts specific to an application, I find a $HOME directory applicable.
Aside from standard file permissions, I'd make sure, too, that you set the sticky bit of the directory holding the scripts such that only the script's owner has the right to delete.
Most importantly, whatever you decide, be consistent.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-20-2003 08:30 AM
01-20-2003 08:30 AM
Re: Best location for sys admin scripts?
I'm in the unpleasant situation of having some systems with scripts in up to 10 (yes ten) different locations. (including /usr/local, /usr/contrib, /home and application directories). What's worse is that some scripts from one location call scripts from others. Ah the joys of progressive development. Guess who's going to have to sort this out (eventually).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-20-2003 08:48 AM
01-20-2003 08:48 AM
Re: Best location for sys admin scripts?
We found it better to create our own standard than try and re-organise the existing standards. It also gives is the ability to extend the filesystem without single-user mode, and protection of the OS lvols if scripts run over and fill up filesystems.
As long as you define a standard and stick to it, and cater for the most likely maintenance / disaster scenarios, you should be fine.
Share and Enjoy! Ian
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-20-2003 08:51 AM
01-20-2003 08:51 AM
Re: Best location for sys admin scripts?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-20-2003 09:46 AM
01-20-2003 09:46 AM
Re: Best location for sys admin scripts?
Stuff for my own work and amusement sits in my home directory. The unwritten standard is that anything that goes into a crontab has to be moved to /usr/scripts. With only 3 admins, it's not too terribly difficult to deal with.
mark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-20-2003 11:18 AM
01-20-2003 11:18 AM
Re: Best location for sys admin scripts?
Our shop -
Oracle specific scripts:
/opt/apps/"specific subdirectory"
Root type scripts:
/usr/local/bin/"specific subdirectory"
In reading other responses, it appears one takes what is common to their shop and is consistent.
Best of luck.
dl
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-20-2003 11:29 AM
01-20-2003 11:29 AM
Re: Best location for sys admin scripts?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-20-2003 01:51 PM
01-20-2003 01:51 PM
Re: Best location for sys admin scripts?
few people put these scripts in a bundle and also install it using swinstall in /opt/ as well. (easy for administration of scripts across multiple systems)
HTH,
Manju
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-20-2003 01:57 PM
01-20-2003 01:57 PM
Re: Best location for sys admin scripts?
Some people place them in /usr/local/bin or somwhere else where it easily manageable. Some may have a standard bundle of tools deployed from sort of management server, where they could be developed. I have them (localised scripts) in a directory in /
The reason I do this is purely for convenience, where I may want to use them in single-user mode or doing some maintenance. Because of the small size of the number and size of the scripts in question, it does not pose a problem.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-21-2003 05:34 AM
01-21-2003 05:34 AM
Re: Best location for sys admin scripts?
If this is purely local stuff, then it should probably go in /usr/local.