There is probably a lession to be learnt here.... Proper permissions set on the /usr directory and the files contained within it would stop a "user" from being able to delete the files within it.
If permissions were set correctly, and seeing as the "user" didn't specify a recursive delete, then the only output you'd get would be something like
If the user had su'd to root, however, it'd be a different story, although rm still wouldn't recurse. If this is the case, I'd say it's time to review your policy on allowing users root access.
Depending on what's been deleted, you might have limited success pulling the files from your backup tapes (you do have backups, right?)
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)
Server 1 - Sun Solaris 5.8 sparc SUNW,Sun-Fire-480R with attached DLT tape drive /dev/rmt/0n
Server 2 - Old DG-UX box which has restore command on it compatible with the files on the backyup tape - backed up with dump2
Server 3 - Sun solaris 5.9 sparc SUNW,Sun-Fire-V490 with lots of free space... (4 Replies)
Hi,
Can any one tell me how to restore back the deleted file in unix?
I know the file name.
If i know the inode number of the file does help more to restore back the file? (1 Reply)
Hi All,
I am using Fedora Core and Windows Xp. I deleted all the files from root
directory. When i am trying to restart the computer it showing some grub > prompt. What i will do ? I have lots of data in XP OS.
Please help me
i used
# rm * (8 Replies)
Hello
I take a backup using the following command on Solaris 9
tar cvf /dev/rmt/0n data
the data volume contains a number of files say a, b, c , d ... etc
Now I want to restore only one file (eg b) from the data volume.
When I issue the command
tar xvf /dev/rmt/0n data/b... (1 Reply)
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)
Hello. I am having a problem and I was wondering if I could get some help from here. I changed into a directory with the cd command and I wanted to delete a folder and all of its subdirectories, so I went ahead and did a rm --recursive * in my current directory to realize that I was in the wrong... (3 Replies)
I'm using a script (automysqlbackup) to dump mysql db's to .sql file followed by taking one full backup of the .sql file and the differential backups of the newer sql file every day using the tool diff.
Now the backup destination folder contains files like,
I would like to how do i restore... (3 Replies)
Hello, I need to restore some yesterday emails from backup within a 5 hours timeframe
this is a openvz container, backup is made by rsync files to another partition in the same server
I have tried to do this
#!/bin/sh
cd /vz/backup/414/home/smartftp/mail/domain1.com/
for dir in new... (6 Replies)
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
LEARN ABOUT MINIX
elvprsv
ELVPRSV(8) System Manager's Manual ELVPRSV(8)NAME
elvprsv - Preserve the the modified version of a file after a crash.
SYNOPSIS
elvprsv ["-why elvis died"] /tmp/filename...
elvprsv -R /tmp/filename...
DESCRIPTION
elvprsv preserves your edited text after elvis dies. The text can be recovered later, via the elvprsv program.
For UNIX-like systems, you should never need to run this program from the command line. It is run automatically when elvis is about to
die, and it should be run (via /etc/rc) when the computer is booted. THAT'S ALL!
For non-UNIX systems such as MS-DOS, you can either use elvprsv the same way as under UNIX systems (by running it from your AUTOEXEC.BAT
file), or you can run it separately with the "-R" flag to recover the files in one step.
If you're editing a file when elvis dies (due to a bug, system crash, power failure, etc.) then elvprsv will preserve the most recent ver-
sion of your text. The preserved text is stored in a special directory; it does NOT overwrite your text file automatically.
elvprsv will send mail to any user whose work it preserves, if your operating system normally supports mail.
FILES
/tmp/elv*
The temporary file that elvis was using when it died.
/usr/preserve/p*
The text that is preserved by elvprsv.
/usr/preserve/Index
A text file which lists the names of all preserved files, and the names of the /usr/preserve/p* files which contain their preserved
text.
BUGS
Due to the permissions on the /usr/preserve directory, on UNIX systems elvprsv must be run as superuser. This is accomplished by making
the elvprsv executable be owned by "root" and turning on its "set user id" bit.
If you're editing a nameless buffer when elvis dies, then elvprsv will pretend that the file was named "foo".
AUTHOR
Steve Kirkendall
kirkenda@cs.pdx.edu
ELVPRSV(8)