Sponsored Content
Top Forums UNIX for Advanced & Expert Users Model script related question Post 8752 by TioTony on Wednesday 17th of October 2001 10:35:14 AM
Old 10-17-2001
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
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

A Question related to the net

well, I was suggested to remove the contents of the cache as i get out of the browser netscape from the .netscape folder. is that really necessary? if so what are the rest to be done? can anybody please tell me?:rolleyes: (8 Replies)
Discussion started by: sskb
8 Replies

2. Shell Programming and Scripting

a math related question

hello: First I know the rules on Homework related questions, I wrote my script, but I cannot seem to figure out how to do one math problem. How do I take a zip code and seperate the idvidual digits? I used the modulus expression and divided the number by 10 ^ n but that only worked... (9 Replies)
Discussion started by: jahjah
9 Replies

3. Programming

signals related question

Hi all, Just a little question relative to signals. I know that if an application is in the sleep state, When a signal is catched, it will be processed by the handler. But what happens if it's processing something? Does the processing stops?? The following code should illustrate this case ... (2 Replies)
Discussion started by: ninjanesto
2 Replies

4. Shell Programming and Scripting

Simple Shell Script Question.... [java related]

Hey guys! This is my first post, as im new here :S I have a simple problem for a big program. We have a .sh to install it, but when I run the .sh in terminal like i should, It says the class is not found. I believe it has to do with the syntax, as the person who made it is not a linux pro. I... (3 Replies)
Discussion started by: Drags111
3 Replies

5. UNIX for Advanced & Expert Users

One Question related to alias

Hello, I have created following alias in csh lab 'rlogin -l user23 complab23' but problem is complab23 does not allow automatic login by checking .rhosts file. So after typing lab on command line I have to type complicate password and if wrong password is typed thrice then account gets... (4 Replies)
Discussion started by: neerajrathi2
4 Replies

6. Solaris

RBAC related question.....

I am referring Bill Calkins(SCSA exam prep) for RBAC..actually i wanted to make a normal user to get the privilege to run a command through authorization, not through profile files... This is the exact steps given by Bill calkins.. 1.roleadd -m -d /export/home/adminusr -c... (11 Replies)
Discussion started by: saagar
11 Replies

7. Shell Programming and Scripting

awk related question

awk "/^<Mar 31, 2012 : /,0" /app/blah.log can someone please help me figure out why the above command isn't pulling anything out from the log? basically, i want it to pull out all records, from the very first line that starts with the date "Mar 31, 2012" and that also has a time immediately... (4 Replies)
Discussion started by: SkySmart
4 Replies

8. UNIX for Dummies Questions & Answers

Question related to 'ps'

If I run a script called 'abc.sh' and then execute the following : ps -ef | grep 'abc.sh' I always get two rows of output, one for the executing script, and the other for the grep command that I have triggered after the pipe. Questions: Why does the second row turn up in the results. My... (10 Replies)
Discussion started by: jawsnnn
10 Replies

9. Shell Programming and Scripting

awk related question

awk -F ";" 'FNR==NR{a=$1;next} ($2 in a)' server.list datafile | while read line do echo ${line} done when i run the above, i get this: 1 SERVICE NOTIFICATION: nagiosadmin skysmart-01.sky.net .... instead of: SERVICE NOTIFICATION: nagiosadmin skysmart-01.sky.net .... can... (4 Replies)
Discussion started by: SkySmart
4 Replies

10. UNIX for Dummies Questions & Answers

Question related to grep

We have huge file with control A as delimiter. Somehow one record is corrupted. This time i figured it out using ETL graph. If future , how to print only bad record. Example Correct record:... (2 Replies)
Discussion started by: srikanth38
2 Replies
reboot(1M)																reboot(1M)

NAME
reboot - reboot the system SYNOPSIS
time] message] time] message] DESCRIPTION
The command terminates all currently executing processes except those essential to the system, then reboots the system, or halts, or makes the partition ready for reconfiguration. When invoked without arguments, syncs all disks before rebooting the system. Options The command recognizes the following options: Shut down the system and halt. Shut down the system and reboot automatically (default). Shut down the system to a ready-to-reconfigure state and reboot if possible. If the partition is unable to reboot, it will stop at a ready-to-reconfigure state. However, if the option is also specified, the system will always stop at ready-to-reconfigure state. This option is available only on systems that support hardware partitions. Shut down the system to a ready-to-reconfigure state and do not reboot. This option can be used only in combination with the option. This option is available only on systems that support hardware partitions. Do not sync the file systems before shutdown. The and options are ignored with this option. Sync the file systems before shutdown; for file systems that were cleanly mounted, modify the flag from to (default). Quick and quiet. Suppress broadcast of warning messages, terminate processes by brute force (with and immediately call with arguments as indicated by the other options (see reboot(2)). No logging is performed. The and options are ignored with this option. Specify what time will bring the system down. time can be the word (indicating immediate shutdown) or a future time in one of two for- mats: and The first form brings the system down in number minutes; the second brings the system down at the time of day indicated (based on a 24-hour clock). Display message at the terminals of all users on the system at decreasing intervals as reboot time approaches. The message must not contain any embedded double quotes. At shutdown time a message is written in the file (if it exists), containing the time of shutdown, who ran and the reason. Only users with appropriate privileges can execute the command. WARNINGS
does not invoke the shutdown scripts associated with subsystems to bring them down in a cautious manner. See shutdown(1M). If the option is used in a virtual partition environment on a partitionable system, then the requested reconfiguration will not take place until all the virtual partitions on that hard partition are shut down and the virtual partition monitor is rebooted. AUTHOR
was developed by HP and the University of California, Berkeley. FILES
Shutdown log SEE ALSO
vpartition(1), reboot(2), partition(5). reboot(1M)
All times are GMT -4. The time now is 10:16 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy