1752795 Members
5867 Online
108789 Solutions
New Discussion юеВ

system admin scripts

 
SOLVED
Go to solution
KathyK
Regular Advisor

system admin scripts

Where is the best location to place the scripts developed by system admin. some might be run from crontab, some manually.

thank you in advance.

OS: HP-UX11.23

Kathy
10 REPLIES 10
James R. Ferguson
Acclaimed Contributor

Re: system admin scripts

Hi KathyL

A collection posted on this Forum can be found here:

http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=51050

The author's opening remarks point to two previous threads of the same.

Regards!

...JRF...
KathyK
Regular Advisor

Re: system admin scripts

Thank you James, that's great:)
but i meant the scripts that I have developed on my system, which directory is the best place to put them? is it
/usr/local/bin?

thanks agian
Kathy
Dennis Handly
Acclaimed Contributor

Re: system admin scripts

The location is wherever you can remember them and that make logical sense.
If run manually, you would have to use absolute paths or you would have to add that to your PATH.
Do any of these have to run in single user mode?
KathyK
Regular Advisor

Re: system admin scripts

No nothing at single run level. they are cleaning scripts some ftp scripts and some backup scripts. I thought there a standard practice in place for crontab and where the scripts are placed. no?
Doug O'Leary
Honored Contributor
Solution

Re: system admin scripts

Hey;

There are no hard and fast rules. I usually like /usr/local/bin for scripts that normal users will have to run, /usr/local/sbin for scripts that root and other administrative accounts have to run, and /root/bin for scripts that *only* root should be running.

That's my standard though; your mileage may vary.

Doug O'Leary

------
Senior UNIX Admin
O'Leary Computers Inc
linkedin: http://www.linkedin.com/dkoleary
Resume: http://www.olearycomputers.com/resume.html
Torsten.
Acclaimed Contributor

Re: system admin scripts

No, not really.

I prefer to create a "special" directory used for root's home, e.g. /root directly in / . So it is available in any mode and I'm not at the top of the directory tree by default.

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
KathyK
Regular Advisor

Re: system admin scripts

Thank you everyone for your response.
Kathy
Arturo Galbiati
Esteemed Contributor

Re: system admin scripts

Hi Kathy,
I put the scripts under my personal login (on /local/bin, /local/sbin) to allply them the version control by RCS.
Once ok I move them in /usr/local/bin, /usr/local/sbin
HTH,
Art
Sameer Kelkar
Advisor

Re: system admin scripts

Hello
Check /usr/lib/cron/cron.allow
Make sure entry for root & other users is there.