R-Ts NetWorks

Server the Best

How To: Find Symlink under UNIX / Linux


How To: Find Symlink under UNIX / Linux

Now, a days sym/root hacking is famous and hacker can create a sym/root folder by using script.
How do I find symlink(s) under UNIX and Linux operating systems?

Use the below command to find symlink directory

find /path/to/dir -lname /path/to/file

OR

If you want to search sym/root folder under users account on server then run the below command in /home

cd /home

find -lname /root

The above command will find sym/root folder under all the users but it will take time. There is another method which is described below.

Install mlocate on server using yum.

yum install mlocate -y

Once it is installed then run below command to update locate database.

updatedb

then run below command to search the server

locate sym/root

Above command will locate all the folder which is having symlink of root.

 

December 15, 2012 - Posted by | CPanel / WHM, Installation, Uncategorized

No comments yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: