![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX for Advanced & Expert Users Expert-to-Expert. Learn advanced UNIX, UNIX commands, Linux, Operating Systems, System Administration, Programming, Shell, Shell Scripts, Solaris, Linux, HP-UX, AIX, OS X, BSD. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| One Question related to alias | neerajrathi2 | UNIX for Advanced & Expert Users | 4 | 01-24-2008 05:43 AM |
| Simple Shell Script Question.... [java related] | Drags111 | Shell Programming and Scripting | 3 | 12-22-2007 05:23 AM |
| signals related question | ninjanesto | High Level Programming | 2 | 02-13-2007 02:43 PM |
| a math related question | jahjah | Shell Programming and Scripting | 9 | 09-13-2004 11:56 AM |
| A Question related to the net | sskb | UNIX for Dummies Questions & Answers | 8 | 10-03-2001 10:37 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
|||||
|
Lose that script that chmods them back. Instead write a script that does a date and then a ls -l on the binaries and appends the output to a special log file. Have this script run as the first and last item on both startup and shutdown on all the rc?.d directories.
After you do this and after it happens again, you will know, say, that it happens during the K* scripts in /sbin/rc1.d (or whatever). So next you put the script at 3 or 4 points in this sequence of scripts. Eventually you will have the name of the script that is doing this. Also remember that after it happens, you can type: ls -lc binary and get the exact time that it was chmod'ed. This may help track it down. Where do the binaries reside? Who owns them? Which version of HP-UX? What output do you get from "grep chmod /sbin/init.d/*"? |
|
|||||
|
Thanks
Thanks for reply. Unfortunately I can't afford to not have my chmod script run since this is a prod box and it needs to be functional after a reboot, or in a worst case, after a crash. I will, however write a script like you mentioned and put it in the rc?.d directories between each of the other scripts since I can't afford to keep rebooting. I will have to catch it in 1 try, hopefully. I have been through init.d already, but here is the output if you want to see it:
/sbin/init.d/clean_tmps: chmod 1777 /tmp /sbin/init.d/hpfc: chmod 666 /dev/lan$CARD_INSTANCE /sbin/init.d/hpfcms: chmod 666 /dev/fcms${inst} /sbin/init.d/inetsvcs: chmod 444 $file /sbin/init.d/maclan_init: chmod 600 /dev/lan$INSTANCE_NUMBER /sbin/init.d/nfs.core: chmod 755 /etc/net /sbin/init.d/nfs.core: chmod 755 /etc/net/$i /sbin/init.d/nfs.core: chmod 644 $ETC_NET/$j/$i /sbin/init.d/nfs.core: /usr/bin/chmod 644 /etc/net/$i/hosts /sbin/init.d/nfs.core: chmod 644 /etc/net/$i/hosts /sbin/init.d/ppp: mknod $dev c $MAJOR $m; chown root $dev; chmod 600 $dev /sbin/init.d/ppp: mknod $dev c $MAJOR $n; chown root $dev; chmod 600 $dev /sbin/init.d/ppp: mknod $dev c $MAJOR $m; chown root $dev; chmod 600 $dev /sbin/init.d/splex: chmod 0664 /dev/splex > /dev/null 2>&1 /sbin/init.d/splex: chmod 0664 /dev/splexc > /dev/null 2>&1 /sbin/init.d/swagentd: chmod 600 $acl_path Nothing unusual as far as I can tell. The inetsvcs was suspect breifly becuase of the 444. We see this on both HPUX 10.20 and 11, both 32 bit. Any other thoughts or ideas are more then welcome. Thanks, Tony |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|