D-Link Forums

The Graveyard - Products No Longer Supported => D-Link Storage => DNS-321 => Topic started by: wayd on August 05, 2010, 02:12:29 PM

Title: Permissions Alternative
Post by: wayd on August 05, 2010, 02:12:29 PM
Hello All,
I have a DNS-321 and I have had so many issues with folder permissions I am about to throw this thing out the window.  It seems like every other day a variety of my folders are locked out to me, while others are available.  Whenever I change anything in the configuration, I get locked out. I hate it.

Are there any alternatives to the standard firmware? I had read about fun_plug, and I seem to have a general understanding of it, but all I am interested in fixing my permissions... Is there a fun_plug feature that over-rides permissions? I would even settle for NO restricted permissions, but I can't even get that to work out.  Any and all advice is welcome, thank you!
Title: Re: Permissions Alternative
Post by: gunrunnerjohn on August 05, 2010, 02:27:39 PM
Reset to factory defaults, you'll have no permissions anywhere, it'll be wide open.
Title: Re: Permissions Alternative
Post by: wayd on August 05, 2010, 03:29:27 PM
Yeah, but even when I do that, all of the folders I created when I DID have permissions are still locked to me! I don't know if this is a Mac thing or a DNS-321 thing, but I am pretty sure its a DNS thing because when i structure my Network Users and Permissions back to what they were when i created the folder, they unlock to me. Its really getting old.
Title: Re: Permissions Alternative
Post by: gunrunnerjohn on August 05, 2010, 04:44:32 PM
This may be a case where you'll have to install fun_plug and use Linux to set the permissions on the whole folder tree.
Title: Re: Permissions Alternative
Post by: wayd on August 05, 2010, 06:21:57 PM
I don't have a Linux system...
Title: Re: Permissions Alternative
Post by: gunrunnerjohn on August 06, 2010, 05:13:15 AM
I don't have a Linux system...
Sure you do, it's called the DNS-321. :)
Title: Re: Permissions Alternative
Post by: wayd on August 06, 2010, 06:31:44 AM
ha-ha, I never thought of it that way.

So my primary computer is a Macbook Pro running the latest OS. Does that matter when using fun_plug?

You're saying that I can use fun_plug and modify each folder's access rights? 

Are there not different versions of "fun_plug", which do different things?  Can someone please tell me where to get the version I am looking for to do this?

Thanks for the help guys. I just wish there was better technical support/development for this product so we didn't have these problems... I can tell you one thing, this will be the last D-Link product I buy for quite some time.
Title: Re: Permissions Alternative
Post by: gunrunnerjohn on August 06, 2010, 07:30:33 AM
fun_plug is independent of what you run on your machine.

Here's the installation instructions, all you need is in the basic package: http://wiki.dns323.info/howto:ffp (http://wiki.dns323.info/howto:ffp)
Title: Re: Permissions Alternative
Post by: jamieson on August 06, 2010, 08:13:24 AM
I can't make any sense out of the DNS web interface permissions screen.

Using fun_plug to enable ssh access to the DNS is a pretty cool deal.  I log into the DNS and can set read only permissions on files and directories.  Then these files/directories are really read only... can't overwrite them or delete them from the regular network interface.

(And I realize that this is not a substitute for a real backup, even on my raid-1 setup.)





Title: Re: Permissions Alternative
Post by: wayd on August 08, 2010, 05:47:05 PM
I can't get this to load... I put "fun_plug" and "fun_plug.tgz" in volume 1 and reboot... nothing happens...
Title: Re: Permissions Alternative
Post by: gunrunnerjohn on August 08, 2010, 07:01:30 PM
Remove them, reboot, then try downloading a new copy.  Do not edit or modify either file with Windows, just copy them to the root of Volume_1
Title: Re: Permissions Alternative
Post by: wayd on August 09, 2010, 11:40:01 AM
Thanks! Ok, so I believe they are loaded there now. But I cannot use "Putty" with my Mac, and the instructions for setting up the SSH are for using Windows and Putty. Does anyone have instructions for Macs?
Title: Re: Permissions Alternative
Post by: gunrunnerjohn on August 09, 2010, 01:36:42 PM
I'm at a loss here.  Other than getting into Telnet for the first time, what is Windows dependent?  You don't have to use SSH if that's a problem, you can just continue to use Telnet.
Title: Re: Permissions Alternative
Post by: wayd on August 09, 2010, 02:11:06 PM
The instructions I have to getting into Telnet are for a Window's program called "Putty". How do I get into Telnet with a Mac?
Title: Re: Permissions Alternative
Post by: wayd on August 09, 2010, 02:15:22 PM
Ok, so I figured out how to do it on Terminal... I need to enter "telnet [ip] [port]" and the default port for telnet is 23. but I am not connecting... Do I use the DNS-321 ip address and port 23? How do I confirm both of these numbers?

Thank you!
Title: Re: Permissions Alternative
Post by: wayd on August 09, 2010, 02:17:31 PM
Oh snap, I think I did it... Is this where I want to be to begin setting my network folder permissions?


220---------- Welcome to Pure-FTPd [TLS] ----------
220-You are user number 1 of 2 allowed.
220-Local time is now 17:16. Server port: xxxx.
220-This server supports FXP transfers
220 You will be disconnected after 2 minutes of inactivity.



If I have managed to get into this Telnet server... Can someone please define for me what process I am looking for to set folder permissions? Is it the SSH that I need to modify to do this? I am a noob at this, sorry.
Title: Re: Permissions Alternative
Post by: gunrunnerjohn on August 09, 2010, 02:21:45 PM
http://www.wikihow.com/Use-Telnet-on-Mac-OS-X
Title: Re: Permissions Alternative
Post by: wayd on August 09, 2010, 03:11:35 PM
Additionally... This only works when my FTP server is up... it appears as tho I am connecting through the FTP... is that right? I don't think I am getting into TelNet server for fun_plug... I think I am just logging into the FTP...

What is the fool-proof way of knowing that fun_plug is actually installed??
Title: Re: Permissions Alternative
Post by: gunrunnerjohn on August 09, 2010, 03:51:34 PM
If you can telnet into the box, ffp is running.
Title: Re: Permissions Alternative
Post by: wayd on August 09, 2010, 04:10:47 PM
If you can telnet into the box, ffp is running.

And was what I posted above doing this?
Title: Re: Permissions Alternative
Post by: gunrunnerjohn on August 09, 2010, 04:17:19 PM
Are you using a telnet client to connect?  Are you getting the Linux command prompt?  Clearly, you don't use FTP to connect to the box, but I have no idea how FTP comes into the picture.
Title: Re: Permissions Alternative
Post by: wayd on August 09, 2010, 05:19:24 PM
I got it! I needed to use Volume_2 for some reason... Ok, so is SSH what I need to use to setup folder permissions?
Title: Re: Permissions Alternative
Post by: wayd on August 09, 2010, 05:56:03 PM
Well I have successfully gotten Fun_Plug, Telnet and SSH up and running...

Thank you gunrunner for your help!
Title: Re: Permissions Alternative
Post by: gunrunnerjohn on August 10, 2010, 05:25:43 AM
Glad it all worked out.  You had me confused for a bit there. :D
Title: Re: Permissions Alternative
Post by: emanoyhl on August 21, 2010, 04:21:04 PM
you can use SCP for mac - on terminal - it's already built in

just google SCP for commands

:)
Title: Re: Permissions Alternative
Post by: gunrunnerjohn on August 21, 2010, 04:44:05 PM
Of course, since he already has it working...
Title: Re: Permissions Alternative
Post by: wayd on August 28, 2010, 07:31:28 PM
Ok, So I have Telnet and SSH running, and I have finally trouble shooted through what was causing my FTP to not work, so thats up now.

My next goal is to change my FTP permissions like I did with SSH.  When I use the DNS-321 firmware, I apparently can only give a user 1 folder access... I have 6 main folders, I want to give 1 user access to only 3 of the 6... apparently something so easy cannot be done on the firmware, I have only limit a user to 1 folder and thats it.

So, how do I go about setting up FTP permissions like SSH?  I apparently have Pure-FTPd, because I can log into it, but once I log in, I can't do anything... and in the ffp folder, I cannot find anything (including config files) which relate to Pure-FTPd... Do I use SSH to designate FTP access, or do I use Pure-FTPd, and if so, how?  Can someone please shed some light?

Thank you.
Title: Re: Permissions Alternative
Post by: gunrunnerjohn on August 29, 2010, 06:43:49 AM
The only way I found to deal with FTP was to put all the stuff I wanted to have available for FTP in a single folder.
Title: Re: Permissions Alternative
Post by: vzguy on September 08, 2010, 10:46:18 AM
I am having similar issues with my folder permissions. My main folder that holds my subfolders (movies, music, photos etc) is read only thus I cannot modify, add or delete any files. I have factory reset the DNS twice with no change. I have loaded the fun_plug program on the the Volume_1 root and can telnet into the drive. Can anyone help point me in the direction on how I can change the parameters of the folders from read only to read/write. I have very limited exp in linux.

Thnx
Title: Re: Permissions Alternative
Post by: gunrunnerjohn on September 08, 2010, 10:52:11 AM
Well, symbolic links have been suggested, though I haven't tried it yet.  It should work, basically you create a symbolic link to each folder you want to be available, and put all the links into a folder that you allow the FTP from.

Naturally, this assumes you have access to Linux through fun_plug to access the system at that level.
Title: Re: Permissions Alternative
Post by: primeone on September 12, 2010, 01:23:22 AM
So after 4 hours, 3 cups of coffee and a lot of copy and pasting, I'M FINALLY IN! All I have to figure out now is how to actually change the file/folder permissions while inside the OpenSSH app. Any Linux programmers in the house?!?!