• February 23, 2025, 09:10:36 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 question  (Read 7195 times)

jamieburchell

  • Level 6 Member
  • *
  • Posts: 947
Permissions question
« on: January 14, 2010, 01:54:27 AM »

If, for example files on the hard drives of the nas have "Jamie:Users" as the user/group and the NAS is reset and the users and groups re-created... will the file permissions be orphaned because the userid and groupid might not be the same? How does the NAS handle this?
Logged
If your little 323 is not working right,
You've racked your brains and been up all night
Take a deep breath and wipe away the sweat,
Login as web admin and try a factory reset!

gunrunnerjohn

  • Level 11 Member
  • *
  • Posts: 2717
Re: Permissions question
« Reply #1 on: January 14, 2010, 05:11:23 AM »

Good question, I'll be interested to see the response to this. :)
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.

jamieburchell

  • Level 6 Member
  • *
  • Posts: 947
Re: Permissions question
« Reply #2 on: January 14, 2010, 05:33:48 AM »

At the risk of answering my own question I suspect even if the user and group details are orphaned it doesn't actually matter. The NAS gives 777 permissions to all files created so they will still be accessible anyway right?
Logged
If your little 323 is not working right,
You've racked your brains and been up all night
Take a deep breath and wipe away the sweat,
Login as web admin and try a factory reset!

gunrunnerjohn

  • Level 11 Member
  • *
  • Posts: 2717
Re: Permissions question
« Reply #3 on: January 14, 2010, 05:55:59 AM »

Hmm... are you sure?  What about the folks here that have been complaining about having access issues for files after changes?  I'm sure I've seen folks complaining about permissions not set correctly.
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.

jamieburchell

  • Level 6 Member
  • *
  • Posts: 947
Re: Permissions question
« Reply #4 on: January 14, 2010, 06:14:29 AM »

I'm possitive that if I create a file on my NAS in Windows, it has 777 permissions. At least with this new firmware anyway. I put a file on my NAS, wrote a quick fun_plug to "ls -l" on the directory, it had 777 permissions.
« Last Edit: January 14, 2010, 06:17:47 AM by jamieburchell »
Logged
If your little 323 is not working right,
You've racked your brains and been up all night
Take a deep breath and wipe away the sweat,
Login as web admin and try a factory reset!

jamieburchell

  • Level 6 Member
  • *
  • Posts: 947
Re: Permissions question
« Reply #5 on: January 14, 2010, 06:22:16 AM »

Here's what the ls -l showed on my drive:

Code: [Select]
drwxrwxrwx   84 Jamie    Users        4096 Jan  7 15:51 Applications
drwxrwxrwx    8 Jamie    Users        4096 Jan  7 23:41 Backups
drwxrwxrwx   10 Jamie    Users        4096 Jan  5 18:02 Devices
drwxrwxrwx   10 Jamie    Users        4096 Jan  5 18:04 Documents
drwxrwxrwx    6 Jamie    Users        4096 Jan  5 18:05 Games
drwxrwxrwx    6 Jamie    Users        4096 Jan 10 13:05 Media
-rw-r--r--    1 root     root        35529 Jan 14 01:14 backup.log
-rw-r--r--    1 root     root         7692 Jan 14 01:14 dmesg.log
-rwxrwxrwx    1 Jamie    Users          53 Jan 14 14:16 fun_plug
-rwxrwxrwx    1 Jamie    Users        2024 Jan 14 09:56 fun_plug - Copy
-rw-r--r--    1 root     root            0 Jan 14 14:18 result.txt
-rwxrwxrwx    1 Jamie    Users           0 Jan 14 14:15 this is a test.txt

Notice the 777 permissions. Those files owned by root:root were created through fun_plug. Strangely though I can delete them in Windows logged on as "Jamie:Users" even though they only have owner read/write.
« Last Edit: January 14, 2010, 06:26:00 AM by jamieburchell »
Logged
If your little 323 is not working right,
You've racked your brains and been up all night
Take a deep breath and wipe away the sweat,
Login as web admin and try a factory reset!

Rodney Chops

  • Level 1 Member
  • *
  • Posts: 5
Re: Permissions question
« Reply #6 on: January 29, 2010, 10:05:14 AM »

Not to be a thread hi-jacker. But I have a question along these lines, and you guys sound like you know what your talking about.

I setup my DNS-323 as a FTP server and forwarded the ports so that my buddy could download our school assignment at his house.  He is using Filezilla.  He can log in fine with his user name and password, but he can't download any of the files we need. (Ms-Word) files. But he can download some PDF's no problem. In filezilla when he clicks on permissions, it has the multiple 777's and certain check boxes. But they obviously are not right because he can't download them.  I gave him full r/w access in the FTP menu. How do I change those permissions on those specific files?

Thanks
Logged

jamieburchell

  • Level 6 Member
  • *
  • Posts: 947
Re: Permissions question
« Reply #7 on: January 29, 2010, 01:26:14 PM »

Hi

Can't think of a reason why your buddy would only be able to download select files. If you say the files have "777" permissions, then they should be accessible to every user.
Logged
If your little 323 is not working right,
You've racked your brains and been up all night
Take a deep breath and wipe away the sweat,
Login as web admin and try a factory reset!