1753772 Members
5194 Online
108799 Solutions
New Discussion юеВ

Re: Directory is missing

 
SOLVED
Go to solution
Suraj K Sankari
Honored Contributor

Re: Directory is missing

Hi,

This type of problem is common where too many new users (who is new to unix) are there, Most of the time I found those missing directories are not removed from the system, those directory has been moved from their original location.
So better check with find command, I hope you will find those missing directory here is the command

#cd /
#find / -name missingdirectory ├в print | more

Best of luck
Suraj

mrk_1
Frequent Advisor

Re: Directory is missing

Hi,
I could not find out those directorys. The directory contains the installable files for MQ application.

So, I took back of those directory from other server and checked in current server. Its working fine.

How do I check who deleted those directorys. Is there any command?

Thank you.
Suraj K Sankari
Honored Contributor

Re: Directory is missing

Hi,

If auditing is enable then you can do very easy way other wise you have to go users home directory and grep rm in .sh_history this may help you.
# grep rm .sh_history

Suraj
V. Nyga
Honored Contributor

Re: Directory is missing

Hi,

check also the permissions of the directory in which the lost directory was.
Change permissions, so no user can delete files or sub-directories.
You can also check the Trash-directories of your users.
It's in /.dt/Trash.
Well, with the find command from '/' these directories will be checked too.

Do a 'grep rm /*/.sh_hist*'
so the first '*' is for all users.

Volkmar
*** Say 'Thanks' with Kudos ***
mrk_1
Frequent Advisor

Re: Directory is missing

Thank you all.
I could see the directory was deleted by some one. found that using the command 'grep rm /*/.sh_hist*

Thanks,
Ram
Kenan Erdey
Honored Contributor

Re: Directory is missing

and after deleting perhaps tried to delete his log, you said last command isn't working.
Computers have lots of memory but no imagination
Gokul Chandola
Trusted Contributor

Re: Directory is missing

Hi,
Congrets for recovered Valuable Data and Putting Point as per you accessment also.

Regards,
Gokul Chandola
There is always some scope for improvment.
Dennis Handly
Acclaimed Contributor

Re: Directory is missing

>I could see the directory was deleted by some one.

If the directory that contains that directory isn't modified that often you can use "ll -d parent-directory" to see the time of last deletion/addition.