D-Link Forums

The Graveyard - Products No Longer Supported => D-Link Storage => DNS-323 => Topic started by: tentimes on July 30, 2010, 11:49:23 AM

Title: Easy way to temp hide a folder?
Post by: tentimes on July 30, 2010, 11:49:23 AM
Hi,

I'm sure I will figure this out eventually but I am scratching my head right now...

Is there a quick way to hide a directory? I have my nieces staying for the weekend and I don't want them finding certain, err, folders containing, err, um.... my tax returns... yea that's it, tax returns ;)
Title: Re: Easy way to temp hide a folder?
Post by: dosborne on July 30, 2010, 04:24:32 PM
Move it to a different share with different access permissions.
Title: Re: Easy way to temp hide a folder?
Post by: irotjaf on July 30, 2010, 07:41:48 PM
One fast solution if you have telnet access is:

/ # chown -R root:root /mnt/HD_a2/YourFolder
/ # chmod -R 700 /mnt/HD_a2/YourFolder

Then, when your nieces leave:

/ # chown -R nobody:501 /mnt/HD_a2/YourFolder
/ # chmod -R 777 /mnt/HD_a2/YourFolder

This is the only trustful way I've found quickly. The official explanations are not helpful:
ftp://files.dlink.com.au/products/DNS-323/REV_B/SetupGuides/How_to_set_folders_and_permissions.pdf

P.s. I dont know how changing owner in command line can affect any scheduled backup you may have set on that folder.
Title: Re: Easy way to temp hide a folder?
Post by: Buhric on July 31, 2010, 02:39:26 PM
dosborne has the best solution, new share with different credentials

but you can try to add a period in front of the name....
like
"2009 tax returns" becomes ".2009 tax returns" and that should hide it....
but of course if in windows you set it tho "show hidden folders" ...
then guess what ? everyone would still be able to see your "tax returns"
Title: Re: Easy way to temp hide a folder?
Post by: Rodent on July 31, 2010, 07:25:21 PM
If you want to hide a share than rename the folder that is being shared and add a '$' sign.
i.e.

if you are sharing a folder called 'Private' than remove the share from the 323, than rename the folder to 'Private$', and than re-share it.

The share is now hidden from browsing but you can map a drive to it or access it by '\\dnd323\private$'

hope this helps

R.