Sponsored Content
Operating Systems HP-UX Critical files in /etc overwritten EMPTY! Post 302238340 by avronius on Friday 19th of September 2008 03:51:28 PM
Old 09-19-2008
I was under the impression that, while deprecated, SAM was still available...

Knowing the date/time that the file was cleared should help you to pinpoint when the corruption took place. I'd recommend going through your cron and at logs, etc. to see if something was running at the time that the files were cleared.

You could search all file systems mounted on the host for scripts that might have included the words "inittab", "inetd.conf" and "MANPATH". Once you have the list of possible hits - check to see if any of them had the syntax to clear the files.

You should also check your authlog to see if someone (or some script) initiated a connection at that time, and repeat the search there.
 

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

.cshrc and .login overwritten !!

Hi, My account is : abcd I belong to a group: pqrs Some thing straneg happened yesterday. My .cshrc and .login got overwritten into pqrs's .cshrc and .login I obviously did not explicitly overwrite pqrs's .cshrc. Are there any reasons how this could have happened indirectly due to... (5 Replies)
Discussion started by: gjthomas
5 Replies

2. AIX

UIDs being overwritten immediately

We have a problem where we delete a user and their associated UID gets dumped back in the UID pool. The if we immediately create a another (new) user, AIX reuses the last UID, the one that was just released. This is causing a problem when reports are being generated because the new users name is... (2 Replies)
Discussion started by: xsys2000
2 Replies

3. Shell Programming and Scripting

Empty Files

Hi, How can I check if a file is empty? I have read that I could done in this way: if then echo "non-zero length file" fi But nothing happens (3 Replies)
Discussion started by: DNAx86
3 Replies

4. Solaris

overwritten rootdisk?

Hi, The dump device on my system was set to /dev/dsk/c0t0d0s7. I have done a savecore -Lv on the system which worked fine. I'm wondering have I overwritten the rootdisk here by mistake? The system is still up but will need to be rebooted due to an error on it. Will it come back up? ... (8 Replies)
Discussion started by: gwhelan
8 Replies

5. Programming

variables overwritten

Hi, i have some problems with the following code: char *tab_path; char *sep=" \t\n"; char line; char *p; FILE * file; int i = 0; if(fgets(line,MAXLINE,file)!=NULL){ if((p=strtok(line,sep))!=NULL)tab_path=p; while((p=strtok(NULL,sep))!=NULL){ i++; ... (4 Replies)
Discussion started by: littleboyblu
4 Replies

6. Shell Programming and Scripting

To empty the files

Hi, Using the shell script, how can I empty the files that are under a dir. -Siva (2 Replies)
Discussion started by: gsiva
2 Replies

7. Shell Programming and Scripting

file is getting overwritten

Hello All, I am writing a bash script on Solaris O/S. I looping through an array. For each iteration, i connect to the datatabase and use select statement. Output of which is redirected to .CSV file. here is the code for it. output="loop.csv" elements=${#currency_pair} ... (3 Replies)
Discussion started by: arundhati_s
3 Replies

8. What is on Your Mind?

How safe is Dropbox and Ubuntu one? Would you store critical files or programs there? Any comments o

How safe is Dropbox and Ubuntu one? Would you store critical files or programs there? Any comments on the guarantee that the two companies provide and on the technology used for encryption? (1 Reply)
Discussion started by: frad
1 Replies

9. Shell Programming and Scripting

How to preserve the value of a variable from being overwritten?

Hi All, I am new new to unix.com, I have a question related to shell scripting. We have a Oracle database backup shell script, which can be used for taking full, incremental & archive log backup based on the parameters passed. Within the script we export a variable as export... (5 Replies)
Discussion started by: veeresh_15
5 Replies

10. Solaris

Replace critical files with errors - pam_UNIX_auth.so.1 & fed

I moved my server while it was running. I was in a hurry. Also it's a bare motherboard with drives in a cage sitting basically on their own. Once I realized how badly I had hurt it doing this, I mounted the board in a tower case I repurposed, mounted the drives, power supply etc. Now the... (1 Reply)
Discussion started by: BillyPrefect
1 Replies
kmknod(8)						      System Manager's Manual							 kmknod(8)

NAME
kmknod - Creates device special files for static kernel layered products SYNOPSIS
/sbin/kmknod DESCRIPTION
The kmknod command obtains information from a running kernel and determines if any device special files must be created for use by the ker- nel layered products that are statically configured. To enable kmknod to create device special files, the statically configured kernel layered products must have been registered with the kreg command. Note To create device special files for the kernel layered products that are loadable modules, such as loadable device drivers, use the cfgmgr command instead of the kmknod command. The kmknod command first deletes any files that have matching names and any files that have both matching major numbers and matching device types (block or character). After any matching files are deleted, the kmknod command creates all the required device special files. The /etc/inittab file contains instructions to invoke the kmknod command at boot time. You must be superuser to invoke the kmknod command. FILES
Provides the init program with instructions for creating and running initialization processes. SEE ALSO
Commands: kmknod(8), kreg System Administration Writing Device Drivers: Tutorial kmknod(8)
All times are GMT -4. The time now is 02:03 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy