Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
.
google site




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #1 (permalink)  
Old 10-22-2009
maiku09 maiku09 is offline
Registered User
 

Join Date: Oct 2009
Posts: 5
Duplicate directory in same partition help.

Hi,

I have found a directory on my web server that have 2 same directory names in the same location on the same partition. Is there a way to mkdir a name twice and be able to see them both in the same location?

Heres an example of the ouput:


Code:
[root]# ls
access_log.1.bkup       access_log.1.bkup.2.gz  data         public_html 
access_log.1.bkup.1.gz  access_log.1.bkup.3.gz  public_html

Unix forbids the same file name under the same directory. How could this be possible?

As you can see there are two public_html directories and they both have two different inode numbers but when you cd into public_html which one would you end up in?
Is there some way to know which one is the suspicious one? I would like to delete the suspicious public_htm. I believe an unauthorized access has created this duplicate and doing something malicious.

I have use the command find . -inum 293843 | xargs cd to try to change directory to the one I thought was suspicious but I get an error message saying directory doesn't exist. And the same error message for the other directories by trying to CD into a directory by specifying the inode instead of the file name.

Any help and ideas would be appreciated!

I need to cd into a directory by specifying the inode number and not the file name.
I would aslo like to know the possibility of creating two same name folders under same directory.

Best Regards,[COLOR="#738fbf"]

Last edited by maiku09; 10-23-2009 at 02:10 PM..
Sponsored Links