Sponsored Content
Top Forums UNIX for Dummies Questions & Answers restoring old /etc permissions Post 9482 by Kelam_Magnus on Sunday 28th of October 2001 01:20:06 PM
Old 10-28-2001
/etc chmod

It would help us understand better if you gave us the OS version and what tools you have to use for the restore.

In HPUX, restoring from an Ignite tape is very easy.
If using a tar ball, it is equally as easy with a few options that you will need to use.
With dump and restore, it shouldn't be too hard either.


I had the same thing happen about a month ago on a live production box. Someone did "chmod 444 *", very bad!! All of my executables were disabled as well as several daemons like telnet, sendmail, inetd, and others.

I did mine by hand, instead of using a backup. But now that I look back it could have been easier using a backup tape to restore.

It was time consuming, took the better part of a day, but I could not take the box down at the time.

There are several linked executables from /etc to /usr/sbin and then to /bin as well. You will also have to look at subordinate directories as well. There exe parms are probably wrong as well.

As to your question, there should be a parameter of the restore command to keep date and time stamps as well as permissions and ownership.

Now that I think about it, permissions shouldn't change when restoring, but time and date stamps may.

It took me the better part of a day to straighten my 2 systems out, but I did it without using a restore tape. Primarily by comparing the corrupted system to one that was similar and in good order.

After you have restored this box, check it against another box just to be sure.

Also, check to ensure that all of your pertinent daemons are running, namely sendmail, inetd, init, etc...


Smilie Smilie
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Restoring a file from Tape

help please i have "inherited" a Sco Server (the administrator departed in a hurry...yes we are chasing him..) and haven't used Unix for 8 years. i have a file that i need to retrieve from a tape. i have been able to find the file on tape using the cpio -ivt command. however... the problem I... (3 Replies)
Discussion started by: mfischer
3 Replies

2. UNIX for Dummies Questions & Answers

restoring backups

okay.. pple.. say now i got an aix box. of course i could restore a backup done in aix environment. 1) now how about doing a restore from sun, hp from the aix box.? 2) can we install a sun, hp os into an aix box? 3) if (1) prohibits, then how about doing an sun, hp os installation on... (1 Reply)
Discussion started by: yls177
1 Replies

3. AIX

restoring mksysb urgent

Guys, Got a very urgent question here. I accindently deleted everything on my RS600, with the rm -R command. Now I want to restore an mksysb tape but I get the following error. format on /dev/rmt1.1 is not in backup format please mount /dev/rmt1.1 and press enter. Can anyone help me... (7 Replies)
Discussion started by: Erik Rooijmans
7 Replies

4. UNIX for Dummies Questions & Answers

restoring deleted files

I had a user run, by accident, the following line command on our UNIX server: rm -f /usr/* This apparently deleted some needed files on your system. Having very limited knowledge in UNIX, I thought I would ask the group if anyone knows how I can recover these file? The version of UNIX is... (3 Replies)
Discussion started by: mikem
3 Replies

5. Shell Programming and Scripting

Restoring a file

I'm new to Unix and have just wrote a little program to move files to a recycle bin (a Directory i created) and restore them. The problem is that i need to keep track of all the full filenames so that i can restore them to the right place. I did this by creating a file called delreg and putting the... (4 Replies)
Discussion started by: zoolz
4 Replies

6. UNIX for Dummies Questions & Answers

Restoring tape files...

Hi all, I have kinda inherited this problem, but was wondering if anyone else had any ideas. Currently all our backup rentention periods are set to 2 weeks, so that we can cycle through tapes (save money etc...). Anyhow the guys next door in IT, decided one day long long ago, that it would... (0 Replies)
Discussion started by: B14speedfreak
0 Replies

7. UNIX for Advanced & Expert Users

Restoring files from CVS !

I have accidently removed a file using the command rm -r "file.txt" (I have removed it locally !) I need to restore the file.txt to my existing CVS version.How can I do it ? Please help. Thank you. :wall: (5 Replies)
Discussion started by: gameboy87
5 Replies

8. Shell Programming and Scripting

Restoring problem on tape!

hi all , a messages appeared to me when i was checking my /var/adm/messages and the below code was in it Oct 6 13:15:21 medprod scsi: /pci@3,700000/SUNW,emlxs@0/fp@0,0/st@w21000024ff305234,7 (st1): Oct 6 13:15:21 medprod Restoring tape position at fileno=320,... (5 Replies)
Discussion started by: semaan
5 Replies

9. UNIX for Dummies Questions & Answers

Copying/Restoring UNIX O/S

can someone shed just a little light in the broadest sense, not actual commands, on what is involved in copying a UNIX install from one HD to another, or if that is even possible Can I use DOS as a frame of reference or is that at all relevant? With DOS (and early Windows versions) You could... (4 Replies)
Discussion started by: chrishouse
4 Replies

10. UNIX for Dummies Questions & Answers

Restoring deleted file with rm -rf

Is there a way I could recover a deleted text file with "rm -rf" command. Running CentOS 6.5. Thank you. (5 Replies)
Discussion started by: galford
5 Replies
BACKUP_JOBS(8)						       AFS Command Reference						    BACKUP_JOBS(8)

NAME
backup_jobs - Lists pending and running operations in interactive mode SYNOPSIS
jobs [-help] j [-h] DESCRIPTION
The backup jobs command lists the job ID number and status of each backup operation running or pending in the current interactive session. This command can be issued in interactive mode only. If the issuer of the backup interactive command included the -localauth flag, the -cell argument, or both, those settings apply to this command also. To terminate operations that appear in the output, issue the backup kill command and identify the operation to cancel with the job ID number from this command's output. To check the status of a Tape Coordinator, rather than of a certain operation, use the backup status command. OPTIONS
-help Prints the online help for this command. All other valid options are ignored. OUTPUT
The output always includes the expiration date and time of the tokens that the backup command interpreter is using during the current interactive session, in the following format: <date> <time>: TOKEN EXPIRATION If the execution date and time specified for a scheduled dump operation is later than <date time>, then its individual line (as described in the following paragraphs) appears below this line to indicate that the current tokens will not be available to it. If the issuer of the backup command included the -localauth flag when entering interactive mode, the line instead reads as follows: : TOKEN NEVER EXPIRES The entry for a scheduled dump operation has the following format: Job <job_ID>: <timestamp>: dump <volume_set> <dump_level> where <job_ID> Is a job identification number assigned by the Backup System. <timestamp> Indicates the date and time the dump operation is to begin, in the format month/date/year hours:minutes (in 24-hour format) <volume_set> Indicates the volume set to dump. <dump_level> Indicates the dump level at which to perform the dump operation. The line for a pending or running operation of any other type has the following format: Job <job_ID>: <operation> <status> where <job_ID> Is a job identification number assigned by the Backup System. <operation> Identifies the operation the Tape Coordinator is performing, which is initiated by the indicated command: Dump (dump name) Initiated by the backup dump command. The dump name has the following format: <volume_set_name>.<dump_level_name> Restore Initiated by the backup diskrestore, backup volrestore, or backup volsetrestore command. Labeltape (tape_label) Initiated by the backup labeltapen command. The tape_label is the name specified by the backup labeltape command's -name or -pname argument. Scantape Initiated by the backup scantape command. SaveDb Initiated by the backup savedb command. RestoreDb Initiated by the backup restoredb command. <status> Indicates the job's current status in one of the following messages. If no message appears, the job is either still pending or has finished. number Kbytes, volume volume_name For a running dump operation, indicates the number of kilobytes copied to tape or a backup data file so far, and the volume currently being dumped. number Kbytes, restore.volume For a running restore operation, indicates the number of kilobytes copied into AFS from a tape or a backup data file so far. [abort requested] The backup kill command was issued, but the termination signal has yet to reach the Tape Coordinator. [abort sent] The operation is canceled by the backup kill command. Once the Backup System removes an operation from the queue or stops it from running, it no longer appears at all in the output from the command. [butc contact lost] The backup command interpreter cannot reach the Tape Coordinator. The message can mean either that the Tape Coordinator handling the operation was terminated or failed while the operation was running, or that the connection to the Tape Coordinator timed out. [done] The Tape Coordinator has finished the operation. [drive wait] The operation is waiting for the specified tape drive to become free. [operator wait] The Tape Coordinator is waiting for the backup operator to insert a tape in the drive. EXAMPLES
The following example shows that two restore operations and one dump operation are running (presumably on different Tape Coordinators) and that the backup command interpreter's tokens expire on 22 April 1999 at 10:45 am: backup> jobs Job 1: Restore, 1306 Kbytes, restore.volume Job 2: Dump (user.sunday1), 34 Kbytes, volume user.pat.backup Job 3: Restore, 2498 Kbytes, restore.volume 04/22/1999 10:45: TOKEN EXPIRATION PRIVILEGE REQUIRED
None. However, queuing any operation requires privilege, and it is possible to issue this command only within the interactive session in which the jobs are queued. SEE ALSO
backup(8), backup_interactive(8), backup_kill(8), backup_quit(8) COPYRIGHT
IBM Corporation 2000. <http://www.ibm.com/> All Rights Reserved. This documentation is covered by the IBM Public License Version 1.0. It was converted from HTML to POD by software written by Chas Williams and Russ Allbery, based on work by Alf Wachsmann and Elizabeth Cassell. OpenAFS 2012-03-26 BACKUP_JOBS(8)
All times are GMT -4. The time now is 01:49 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy