Subscribe
Accepted Solution

CIFS File Permissions in the ~snapshot directory

I have taken over sys.admin in my department, which includes taking over Netapps and I have found a virus in the ~snapshot directory found on the netapp box.

On a windows machine, i connect to the netapps via windows explorer using the IP address \ <share name>

10.10.10.10\MyShare

In the share, there is a folder ~snapshot, and a file myLun.lun

Traversing the ~snapshot directory, I go into a subfolder sep1011 and I find 2 files, myLun.lun and virus.avi

The owner of this file is a machine from another domain (<domain>\<computer name>$)

I attempted to remove virus.avi, but I get access denied.  I tried to change the owner to myself, but I still get access denied.

I created a user locally on the netapps box and added the user to the Administrator group.  I then connected to the share, 10.10.10.10\MyShare  using these credentials via windows explorer, but I still can not change the ownership of the file, virus.avi.

Looking at the permissions, EVERYONE has FULL access to this file.

Is there a way to get to the directory through the console?

Thx.

D.

Re: CIFS File Permissions in the ~snapshot directory

Contents of snapshots are always read-only. If you don't want those files in there, the only option you have is to delete the snapshot that they're in. You will also be removing access to any other files in the snapshot, unless you copy them somewhere else first.

Richard

Re: CIFS File Permissions in the ~snapshot directory

Hi Darrell

You cannot delete any Files in the snapshots, because snapshots are readonly. You can delete the File in the active Filesystem. In the snapshot you have to wait till the the retention is over (the System delete the snapshot)

or you can manually delete the snapshots, where the virus.avi is in...

Greetz

Thomas

Re: CIFS File Permissions in the ~snapshot directory

The files don't exist in the snapshot.  The file exists in the snapshot directory.

Re: CIFS File Permissions in the ~snapshot directory

The files don't exist in the snapshot.  The file exists in the snapshot directory.

Re: CIFS File Permissions in the ~snapshot directory

Folders beneath the ~snapshot folder are the different snapshots on the volume containing the CIFS share. Perhaps you have a snapshot named "sep1011". The ~snapshot folder does not contain anything other than snapshots.

Re: CIFS File Permissions in the ~snapshot directory

I understand that it's not supposed to have anything but the snapshot, but what I'm telling you is that there are 2 shortcuts that exist in there along with the LUN.  Check the pic.

Re: CIFS File Permissions in the ~snapshot directory

So, you have a snapshot named "sep1011" with those files inside.

Re: CIFS File Permissions in the ~snapshot directory

oh god.....i'm an idiot.

I'm thinking that the LUN is the only thing that exists in a snapshot.

thanks for your replies and patience!!

Re: CIFS File Permissions in the ~snapshot directory

Well, it's not common practice to have a LUN in the same location as other (NAS) files.