Koozali.org: home of the SME Server

ShadowCopy - Restore with windows eplorer

Offline portedaix

  • ***
  • 54
  • +0/-0
ShadowCopy - Restore with windows eplorer
« on: June 14, 2012, 06:33:03 PM »
Hello,
ShadowCopy is working fine on my 8.0 server. I have all snapshot taken. The only problem is that I am not abe to see the different file versions via internet explorer in the property tab. I have to go to each individual .shadow binders. I use windows 7 on a x64 machine.What do I miss ?
Thanks
Olivier

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: ShadowCopy - Restore with windows eplorer
« Reply #1 on: July 05, 2012, 03:58:39 PM »
did you try another browser? Firefox for example?

Offline portedaix

  • ***
  • 54
  • +0/-0
Re: ShadowCopy - Restore with windows eplorer
« Reply #2 on: July 05, 2012, 04:37:59 PM »
Hello Stefano,

Thanks for your answer. But I think there is a misunderstanding unless I missed something. How can you browse i-bays files with firefox (which I use, by the way) ? shadowcopy if for making copies of the files in ...i-bay/files directory. With firefox I will acces ...i-bay/html/index.html and the following links, not the document in .../files.

Best regards
Olivier

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: ShadowCopy - Restore with windows eplorer
« Reply #3 on: July 06, 2012, 12:35:20 PM »
The only problem is that I am not abe to see the different file versions via internet explorer in the property tab.

here you are talking about internet explorer, and I understand that you have problem with it..

Offline portedaix

  • ***
  • 54
  • +0/-0
Re: ShadowCopy - Restore with windows eplorer
« Reply #4 on: July 07, 2012, 12:59:16 PM »
Hello,

Yes, file explorer, not internet explorer. Thanks Stefano.
Anyway, I still have the same problem. Somebody has a hint ?

Thanks
Olivier

Offline gklaus

  • *
  • 12
  • +0/-0
Re: ShadowCopy - Restore with windows eplorer
« Reply #5 on: October 18, 2012, 06:09:45 PM »
I had the same problem. Since the update, Samba is no longer following sysmlinks in a share if they lead outside of the share directory (as links to the .shadow directories). The reason is a security problem.

See here:
http://www.samba.org/samba/news/symlink_attack.html

To re-enable the previous default behaviour, the /etc/samba.conf needs to contain the line "wide links = yes" (and for good measure "follow symlinks = yes") in each share definition section. To avoid the security issue described in the link above, I understand it is wise to check if "unix extensions = no" is set in the global section of smb.conf.

See, e.g., here:
http://ubuntuforums.org/showthread.php?t=1439092&page=3

Because the SME server re-creates the smb.conf automatically, I added some custom templates on my servers so that the changes are permanent:

/etc/e-smith/templates-custom/etc/smb.conf/50homes

with the content:

"[homes]                                                                         
comment = Home directory                                                       
browseable = no                                                                 
guest ok = no                                                                   
read only = no                                                                 
writable = yes                                                                 
printable = no                                                                 
create mode = 0660                                                             
force create mode = 0660                                                       
directory mode = 0770                                                           
force directory mode = 0770                                                     
path = /home/e-smith/files/users/%S/home                                       
follow symlinks = yes                                                           
wide links = yes"                                                               
                                                                               
and

/etc/e-smith/templates-custom/etc/smb.conf/ibays/21symlinks
and
/etc/e-smith/templates-custom/etc/smb.conf/ibays/22widelinks

with the respective contents:

"{                                                                               
    $OUT .= "follow symlinks = yes";                                           
}"

and

"{                                                                               
    $OUT .= "wide links = yes";                                                 
}"
                                                                               
Maybe not the most elegant solution, but it solved the problem over here.

Hope it helps!