|
Post by jasok2 on Nov 20, 2006 14:56:40 GMT 7
Does anyone know if there is a way to limit FTP access to only a particular folder. I have all my music and pics etc in a public share so that my media player "Zensonic Z500" can access the content through SMB, however I dont want this to be avalible to FTP access. If I could have a dedicated FTP folder that would be good. Any ideas
|
|
|
Post by ryebank on Nov 22, 2006 6:20:36 GMT 7
Actually that is just what you are getting ... it is to /raid/ftproot and in there there are symlinks to all the other directories under the /raid/ path that have been defined
It appears these links are made when you add a folder via admin GUI - if you remove them I am not sure if the N2100 will rebuild on reboot though (somehow I doubt it)
If you are brave enough if you SSH in you can do
cd /raid/ftproot rm FolderToRemoveFromFtp
where FolderToRemoveFromFtp is name of folder you dont want to show in ftp etc
|
|
|
Post by chemist on Nov 26, 2006 4:12:58 GMT 7
thanks for the tip !
is there also a way to remove folders made by the webgui from the folder list in the webgui?
(i don't want to remove the folders, I just don't want them to be visible)
|
|
|
Post by marty on Nov 26, 2006 21:34:53 GMT 7
Do you mean not visible in FTP client?
|
|
|
Post by chemist on Nov 26, 2006 22:07:05 GMT 7
No I mean not visible in the webgui. I made a folder via the webgui, but I don't it to be visible there anymore.
Another question; what is the easiest way to set up ACL for folders created in SSH (those are not visible in the webgui, so I cannot change it there...)
|
|
|
Post by marty on Nov 27, 2006 12:02:42 GMT 7
If you modify the /raid/sys/smb.conf, the folder will not be visible in the WebGUI, and you can keep what's in the folder.
Why not just deny access to everyone for that folder?
|
|
|
Post by jasok2 on Nov 27, 2006 15:23:37 GMT 7
Actually that is just what you are getting ... it is to /raid/ftproot and in there there are symlinks to all the other directories under the /raid/ path that have been defined It appears these links are made when you add a folder via admin GUI - if you remove them I am not sure if the N2100 will rebuild on reboot though (somehow I doubt it) If you are brave enough if you SSH in you can do cd /raid/ftproot rm FolderToRemoveFromFtp where FolderToRemoveFromFtp is name of folder you dont want to show in ftp etc Thanks ryebank, I actually want to keep the folders I made, but i dont want them to be visible through FTP. I want the folders to be avalible on my LAN, but i want to open up FTP on my router and i dont want random people to be able to see all my pics, and download all my music, (imagine the law suit) I can't just password protect these folders because then my Z500 wont be able to play the media. From what you've told me in your reply, The solution might be if the folders that i made throuhg the web GUI were not in the "/ftproot" directory. Probably nothing i can do about it
|
|
|
Post by ryebank on Nov 27, 2006 17:52:03 GMT 7
Removing the symlink does not remove the actual folder you made - the folder is e.g. /raid/FolderToRemoveFromFTP
When you make that folder through the Web GUI it makes a link to that folder in /raid/ftproot named /raid/ftproot/FolderToRemoveFromFTP - if you remove (rm) the symlink file then the folder remains in the /raid/FolderToRemoveFromFTP but does not show via FTP (so you can still access folder via SAMBA etc)
|
|
|
Post by marty on Nov 27, 2006 23:19:11 GMT 7
I wrote a module to add/remove links under /raid/ftproot based on ryebank's suggestion, and it seems to work. The problem is - I have no place for people to download. Does ThecusWiki allow user to upload module?
|
|
|
Post by jasok2 on Nov 29, 2006 14:28:32 GMT 7
I wrote a module to add/remove links under /raid/ftproot based on ryebank's suggestion, and it seems to work. The problem is - I have no place for people to download. Does ThecusWiki allow user to upload module? I would love to get that module
|
|
|
Post by jasok2 on Nov 30, 2006 17:01:16 GMT 7
I wrote a module to add/remove links under /raid/ftproot based on ryebank's suggestion, and it seems to work. The problem is - I have no place for people to download. Does ThecusWiki allow user to upload module? Thanks Marty that module is great
|
|
|
Post by jasok2 on Dec 1, 2006 11:55:34 GMT 7
Hi Marty I dont think you can upload files to the Thecuswiki you need a place on the internet to store the file. There are people on the forum who have such a place hopefully one of them will volunteer to host your module. Once it has a home its easy to setup a link to it on the thecus wiki.
|
|
|
Post by jasok2 on Dec 3, 2006 9:05:33 GMT 7
I wrote a module to add/remove links under /raid/ftproot based on ryebank's suggestion, and it seems to work. The problem is - I have no place for people to download. Does ThecusWiki allow user to upload module? Marty I have a static IP address so i was thinking that i could host it with an ftp link, but i cant seem to make a user account called "anonymous" without putting in a password. I was thinking that i could make a folder and give a user called anonymous read only access to the folder, then link to it from the thecus wiki, oh well back to the drawing board. Also I dont think you can upload the file to this forum. If any forum moderators are reading this could we have a thread that we can upload modules to Cheers Jasok2
|
|
|
Post by mikebuzz on Dec 7, 2006 21:10:08 GMT 7
i can host files for you if you want
just let me know
|
|
|
Post by marty on Dec 11, 2006 21:57:32 GMT 7
Thank you Mikebuzz, getmythe already did it for me. The url is : www.freeside.ch/thecus/FTPaccess.mod.tgzI have a problem using the ThecusWiki. What do I do after I modified the "module template" page? Is there a SAVE AS function on that page, so I can save the page to a different name?
|
|