D-Link Forums

The Graveyard - Products No Longer Supported => D-Link Storage => DNS-321 => Topic started by: zachlac on August 17, 2010, 07:43:04 AM

Title: Permissions on the 321 with fun_plug
Post by: zachlac on August 17, 2010, 07:43:04 AM
I'm trying to understand permissions on the NAS so that I can properly set up what I want.  I've installed fun_plug, setting up the root account/password.  I've also set up two accounts, a guest and admin account, through the web GUI.  SSH and Telnet both work.

Do read-write permissions work simply like they do in linux (user/group/all) for everything?  Since I have my admin user set up to read/write and the guest just to read, then all files written to the NAS when I'm logged in as admin should have permissions which allow the guest user to read (some type of 0774 permission or something like that)?

Basically, if someone could explain what the DNS-321 does out of the box with linux permission, that would be wonderful.  I've already seen that since all of the fun_plug stuff is owned by root, none of the usable mountable accounts can use them.

Thanks!
Title: Re: Permissions on the 321 with fun_plug
Post by: gunrunnerjohn on August 17, 2010, 07:50:57 AM
Be careful tinkering with the permissions behind the curtain.  I suspect that could really screw up the access for connected machines. :)
Title: Re: Permissions on the 321 with fun_plug
Post by: zachlac on August 17, 2010, 07:55:21 AM
Believe me, my two-year experience with Linux (as little as that is) has taught me how much permissions can suck  :)

However, I'd like to just get these basic things set through SSH, and never touch them again.  I'm happy with the web GUI handling everything.  If I understood how it works, then I could stay out of its way.
Title: Re: Permissions on the 321 with fun_plug
Post by: gunrunnerjohn on August 17, 2010, 07:59:27 AM
I've never felt the need to tinker with any of the data directory permissions behind the scenes.

The one issue this box has, which I don't think you can correct with a command prompt, is the anonymous access problem.

If you define any password protected shares, you can not have any anonymous shares.  I do hope this is fixed in a future release, it's one of the significant sticking points of this box.  Older versions of firmware allowed this, but it was "fixed" in the current version. :(
Title: Re: Permissions on the 321 with fun_plug
Post by: zachlac on August 17, 2010, 08:01:40 AM
Appreciated.  I think I'll see what happens, and report it here in case someone else comes looking around.  I'd rather not be a guinea pig...but here it goes.

Thanks!
Title: Re: Permissions on the 321 with fun_plug
Post by: gunrunnerjohn on August 17, 2010, 08:04:33 AM
You can pick out the pioneers, they're the folks with the burning wagons!  :P
Title: Re: Permissions on the 321 with fun_plug
Post by: zachlac on August 17, 2010, 03:57:17 PM
As promised, the results:

The web GUI simply adds accounts like any Linux machine; user/group.  All files written when the drive is mounted are written with 777 permissions, it seems.  I still need to look at what happens when I log in as the guest, whether or not I can edit the files.  You would think that it would write them with something like 775 permissions, so that user/group can write, but everyone else can only read/execute.

That's pretty much it.  I still am going to test logging in with the guest user, and we'll see what happens.
Title: Re: Permissions on the 321 with fun_plug
Post by: kaiserbachfeld on August 20, 2010, 06:48:19 AM
I am still working through how I want to use this device.  I am a newbie to Linux but I found this site that might be helpful regarding Linux features of the DNS-321

http://www.coertvonk.com/technology/embedded/backup-appliance-using-dns-313-479 (http://www.coertvonk.com/technology/embedded/backup-appliance-using-dns-313-479)