• February 24, 2025, 04:09:35 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: Connecting to the share with read-only user  (Read 5640 times)

zachlac

  • Level 1 Member
  • *
  • Posts: 10
Connecting to the share with read-only user
« on: August 17, 2010, 08:59:34 PM »

I have two users enabled, one with read/write and the other with only read.  I'm trying to understand how the NAS is set up: it has two volumes, Volume_1-1 and Volume_1-2.  My admin user can login to 1-1, my guest user to 1-2.  They both have the same data, and permissions work as expected: admin can read/write, guest can only read.

Why are there these two volume listings?  Is this correct?
Logged

gunrunnerjohn

  • Level 11 Member
  • *
  • Posts: 2717
Re: Connecting to the share with read-only user
« Reply #1 on: August 18, 2010, 06:01:28 AM »

If this is RAID-1, that's probably not correct.  It sounds like it's independent volumes.  What does the NAS status say about the disk configuration?
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: Connecting to the share with read-only user
« Reply #2 on: August 18, 2010, 06:48:39 AM »

I won't be able to check for the rest of today, but it claims that it is RAID 1.  That's how I set it  up.  I think I ran a check a while back (mdadm, something like that) and it came back as RAID.  I can run some more checks when I get back.

If it's independent volumes, then why are they mirrored?  JBOD wouldn't be mirrored, I don't think.
Logged

gunrunnerjohn

  • Level 11 Member
  • *
  • Posts: 2717
Re: Connecting to the share with read-only user
« Reply #3 on: August 18, 2010, 07:57:47 AM »

Well, if it's showing up as Volume_1 and Volume_2 with the same data, my guess would be that the RAID was broken somehow and you now have two separate volumes.  I'm guessing that if you update something on Volume_1, it won't show up on Volume_2.
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: Connecting to the share with read-only user
« Reply #4 on: August 18, 2010, 11:38:49 AM »

It's showing up as Volume_1 for both: there's just that "-#" after each, i.e. "Volume_1-1" and "Volume_1-2".

When I get home tonight I'll run some basic Linux raid diagnostics, but I'd rather not dig too deep behind the scenes.  I will also check to make sure that the data I copied all day today to the drive is on both.

And as an aside, the quick responses are appreciated!
Logged

gunrunnerjohn

  • Level 11 Member
  • *
  • Posts: 2717
Re: Connecting to the share with read-only user
« Reply #5 on: August 18, 2010, 11:45:22 AM »

That sounds like you're making multiple shares, they show up as unique file names.
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: Connecting to the share with read-only user
« Reply #6 on: August 18, 2010, 07:06:42 PM »

So my info according to the web interface:

Current RAID type: Volume_1 : RAID 1
Auto-Rebuild Enabled
Only one volume shows up on Disk Diagnostics (Volume_1)

Info from Volume Info:
Volume Name:    Volume_1
Volume Type:    RAID 1
Sync Time Remaining:    Completed
Total Hard Drive Capacity:    1474368 MB
Used Space:    454475 MB
Unused Space:    1019892 MB

It looks like the RAID's healthy.  Perhaps it's some way I don't understand of enforcing read-only permissions: all of the files copied to the drive have 777 permissions, so I don't really understand how it's preventing writing by guest login.  Oh well.

Thanks.
Logged

gunrunnerjohn

  • Level 11 Member
  • *
  • Posts: 2717
Re: Connecting to the share with read-only user
« Reply #7 on: August 19, 2010, 05:16:28 AM »

You're only looking at the permissions for root, which probably will be 777 for most files.
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.