• February 24, 2025, 04:14:13 AM
  • Welcome, Guest
Please login or register.

Login with username, password and session length
Advanced search  

News:

This Forum Beta is ONLY for registered owners of D-Link products in the USA for which we have created boards at this time.

Author Topic: Permissions on the 321 with fun_plug  (Read 6055 times)

zachlac

  • Level 1 Member
  • *
  • Posts: 10
Permissions on the 321 with fun_plug
« 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!
Logged

gunrunnerjohn

  • Level 11 Member
  • *
  • Posts: 2717
Re: Permissions on the 321 with fun_plug
« Reply #1 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. :)
Logged
Microsoft MVP - Windows Desktop Experience
Remember: Data you don't have two copies of is data you don't care about!
PS: RAID of any level is NOT a second copy.

zachlac

  • Level 1 Member
  • *
  • Posts: 10
Re: Permissions on the 321 with fun_plug
« Reply #2 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.
Logged

gunrunnerjohn

  • Level 11 Member
  • *
  • Posts: 2717
Re: Permissions on the 321 with fun_plug
« Reply #3 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. :(
Logged
Microsoft MVP - Windows Desktop Experience
Remember: Data you don't have two copies of is data you don't care about!
PS: RAID of any level is NOT a second copy.

zachlac

  • Level 1 Member
  • *
  • Posts: 10
Re: Permissions on the 321 with fun_plug
« Reply #4 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!
Logged

gunrunnerjohn

  • Level 11 Member
  • *
  • Posts: 2717
Re: Permissions on the 321 with fun_plug
« Reply #5 on: August 17, 2010, 08:04:33 AM »

You can pick out the pioneers, they're the folks with the burning wagons!  :P
Logged
Microsoft MVP - Windows Desktop Experience
Remember: Data you don't have two copies of is data you don't care about!
PS: RAID of any level is NOT a second copy.

zachlac

  • Level 1 Member
  • *
  • Posts: 10
Re: Permissions on the 321 with fun_plug
« Reply #6 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.
Logged

kaiserbachfeld

  • Level 1 Member
  • *
  • Posts: 7
Re: Permissions on the 321 with fun_plug
« Reply #7 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
Logged