Tips & Trocks - Share folders

Discussion on setting up QNAP NAS products.

Tips & Trocks - Share folders

Postby ffaria » Sat Aug 18, 2012 7:46 pm

Hello,

Anyone can help me on how to implement this?

One disk, with a share like Disk4. Only Admin have access to it.
Subfolder User1, under Disk4, only User 1 have access to it (also admin will have access to it).
Subfolder User2, under Disk4, only User 2 have access to it (also admin will have access to it).

When User1 access through FTP, User1 will see not see nothing, but will have right to read/write/delete everything that is on subfolder User1 and subfolder under that.
When User2 access through FTP, User2 will see not see nothing, but will have right to read/write/delete everything, that is on subfolder User1 and subfolder under that.

They (user1 and user2) wouldn't see Networker recycle, neither other subfolders names.

Admin, with a share called Disk4 should see all subfolders under Disk4, like User1 or User2 or Networker recycle.
User1shouldn't see nothing (including the subfolder name User1) except the contents of their folder (\Disk1\User1\*.*).

I have try several things, saw the qnap guides...but nothing have help me.

Please, a guide or some images would be appreciated.

Thank you
best regards
fernando
ffaria
Starting out
 
Posts: 14
Joined: Mon Nov 21, 2011 9:54 am
NAS Model: TS-212

Re: Tips & Trocks - Share folders

Postby pwilson » Sun Aug 19, 2012 6:00 am

ffaria wrote:Anyone can help me on how to implement this?

One disk, with a share like Disk4. Only Admin have access to it.
Subfolder User1, under Disk4, only User 1 have access to it (also admin will have access to it).
Subfolder User2, under Disk4, only User 2 have access to it (also admin will have access to it).

When User1 access through FTP, User1 will see not see nothing, but will have right to read/write/delete everything that is on subfolder User1 and subfolder under that.
When User2 access through FTP, User2 will see not see nothing, but will have right to read/write/delete everything, that is on subfolder User1 and subfolder under that.

They (user1 and user2) wouldn't see Networker recycle, neither other subfolders names.

Admin, with a share called Disk4 should see all subfolders under Disk4, like User1 or User2 or Networker recycle.
User1shouldn't see nothing (including the subfolder name User1) except the contents of their folder (\Disk1\User1\*.*).

I have try several things, saw the qnap guides...but nothing have help me.

Please, a guide or some images would be appreciated.

Thank you
best regards
fernando


Too little information provided! Questions:

  1. What version of NAS Firmware is installed?
  2. Drive Configuration? SingleDrives, JBOD, RAID?
  3. Window "Domain" or "Workgroup"?
  4. Are you using v3.7.x "Home Folders"?
  5. Do you have "Windows ACL Support" enabled?
  6. Do you have "Advanced Folder Permissions" enabled?
    Image

Wish I could be more helpful, but I lack information on your setup. Sound's like permission issues and/or FTP not following SymLink issues. Should be relatively easy to fix via an SSH session if it is either of these issues. However, I'd need answers to the above questions before I can assist any further.

Patrick.

Patrick M. Wilson
Victoria, BC Canada
QNAP TS-419P+ w/ 4 * Seagate Barracuda 2TB 5900rpm (RAID5) - FW: QTS 4.0.1 Build0606
Forums: View My Profile - Search My Posts - Send Private Message - View My Photo - Top Community Forum Posters
QNAP: Turbo NAS User Manual - QNAP Wiki - QNAP Tutorials - QNAP FAQs - HowTos - QNAP Video Library
User avatar
pwilson
Moderator
 
Posts: 4307
Joined: Fri Mar 06, 2009 11:20 am
Location: Victoria, BC, Canada
NAS Model: TS-419P+

Re: Tips & Trocks - Share folders

Postby ffaria » Sun Aug 19, 2012 11:21 am

Hello Patrick,

Thank you for your answer.

And here are the answer to your questions, at this time:
What version of NAS Firmware is installed? - Current firmware version: 3.7.3 Build 20120801
Drive Configuration? SingleDrives, JBOD, RAID? - Four SingleDrives
Window "Domain" or "Workgroup"? - Workgroup
Are you using v3.7.x "Home Folders"? Yes
Do you have "Windows ACL Support" enabled? No
Do you have "Advanced Folder Permissions" enabled? Yes

With your questions and comments, I have changed some configurations, and now, the result are better.
User1 or User2 don't see nothing and I have copy a file using Windows to both folders (Disco4/Homes/User1 and Disco4/Homes/User2). All this when I use a ftp client.
Also, when I try do upload a file through FTP client, I receive the following error -
Comando: STOR desktop.ini
Resposta: 550 desktop.ini: Forbidden filename

Please...any ideia what I'm doing wrong.

Thank you
Fernando
ffaria
Starting out
 
Posts: 14
Joined: Mon Nov 21, 2011 9:54 am
NAS Model: TS-212

Re: Tips & Trocks - Share folders

Postby pwilson » Sun Aug 19, 2012 12:56 pm

ffaria wrote:Hello Patrick,

Thank you for your answer.

And here are the answer to your questions, at this time:
What version of NAS Firmware is installed? - Current firmware version: 3.7.3 Build 20120801
Drive Configuration? SingleDrives, JBOD, RAID? - Four SingleDrives
Window "Domain" or "Workgroup"? - Workgroup
Are you using v3.7.x "Home Folders"? Yes
Do you have "Windows ACL Support" enabled? No
Do you have "Advanced Folder Permissions" enabled? Yes

With your questions and comments, I have changed some configurations, and now, the result are better.
User1 or User2 don't see nothing and I have copy a file using Windows to both folders (Disco4/Homes/User1 and Disco4/Homes/User2). All this when I use a ftp client.
Also, when I try do upload a file through FTP client, I receive the following error -
Comando: STOR desktop.ini
Resposta: 550 desktop.ini: Forbidden filename

Please...any ideia what I'm doing wrong.

Thank you
Fernando


Use the "getfacl" and "setfacl" shell commands to ensure "User1" and "User2" have appropriate access to their Folders.

Patrick M. Wilson
Victoria, BC Canada
QNAP TS-419P+ w/ 4 * Seagate Barracuda 2TB 5900rpm (RAID5) - FW: QTS 4.0.1 Build0606
Forums: View My Profile - Search My Posts - Send Private Message - View My Photo - Top Community Forum Posters
QNAP: Turbo NAS User Manual - QNAP Wiki - QNAP Tutorials - QNAP FAQs - HowTos - QNAP Video Library
User avatar
pwilson
Moderator
 
Posts: 4307
Joined: Fri Mar 06, 2009 11:20 am
Location: Victoria, BC, Canada
NAS Model: TS-419P+

Re: Tips & Trocks - Share folders

Postby ffaria » Sun Aug 19, 2012 6:58 pm

Hello,

After the command - getfacl NAmaro (NAmaro=User1) I obtain the following

[/share/HDD_DATA/homes] # getfacl NAmaro
# file: NAmaro
# owner: NAmaro
# group: everyone
user::rwx
user:admin:rwx
user:guest:---
group::rwx
mask::rwx
other::--x
default:user::rwx
default:user:admin:rwx
default:user:guest:---
default:group::rwx
default:mask::rwx
default:other::rwx
ffaria
Starting out
 
Posts: 14
Joined: Mon Nov 21, 2011 9:54 am
NAS Model: TS-212

Re: Tips & Trocks - Share folders

Postby pwilson » Sun Aug 19, 2012 10:13 pm

ffaria wrote:Hello,

After the command - getfacl NAmaro (NAmaro=User1) I obtain the following

[/share/HDD_DATA/homes] # getfacl NAmaro
# file: NAmaro
# owner: NAmaro
# group: everyone
user::rwx
user:admin:rwx
user:guest:---
group::rwx
mask::rwx
other::--x
default:user::rwx
default:user:admin:rwx
default:user:guest:---
default:group::rwx
default:mask::rwx
default:other::rwx


Those permissions look fine.

You also need to look at the permissions of:

/share
/share/HDD_DATA
/share/HDD_DATA/homes

"NAmaro" needs access to each of these too. When I experienced similar issues here, I found that my permissions on the "homes" directory were screwed up. I fixed those, and all was good thereafter.

I fought with this, while attempting to setup "scan to FTP" on my Lexmark X422 Printer. (My Printer now "scans" documents, and FTP's the resulting PDF/JPG files to "NAS:/share/MD0_DATA/homes/pwilson/Scans"). When I "mount" my NAS "home" directory onto my PC, I have immediate access to my "Scans" directory.



Patrick.

Patrick M. Wilson
Victoria, BC Canada
QNAP TS-419P+ w/ 4 * Seagate Barracuda 2TB 5900rpm (RAID5) - FW: QTS 4.0.1 Build0606
Forums: View My Profile - Search My Posts - Send Private Message - View My Photo - Top Community Forum Posters
QNAP: Turbo NAS User Manual - QNAP Wiki - QNAP Tutorials - QNAP FAQs - HowTos - QNAP Video Library
User avatar
pwilson
Moderator
 
Posts: 4307
Joined: Fri Mar 06, 2009 11:20 am
Location: Victoria, BC, Canada
NAS Model: TS-419P+

Re: Tips & Trocks - Share folders

Postby ffaria » Sun Aug 19, 2012 10:27 pm

Hello,

Ok, for the rest od the folders, here are the permissions:


[/] # getfacl share
# file: share
# owner: admin
# group: administrators
user::rwx
group::rwx
other::r-x

[/share] # getfacl HDD_DATA/
# file: HDD_DATA/
# owner: admin
# group: administrators
user::rwx
user:admin:rwx
user:guest:---
group::rwx
mask::rwx
other::rwx
default:user::rwx
default:user:admin:rwx
default:user:guest:---
default:group::rwx
default:mask::rwx
default:other::rwx

[/share/HDD_DATA] # getfacl homes
# file: homes
# owner: admin
# group: administrators
user::rwx
user:admin:rwx
user:guest:---
group::rwx
group:administrators:r-x
group:everyone:r-x
mask::rwx
other::rwx
default:user::rwx
default:user:admin:rwx
default:user:guest:---
default:group::rwx
default:mask::rwx
default:other::rwx

sorry...but I need realy your help...I don't know how th use and analise Linix commands.

thank you
fernando
ffaria
Starting out
 
Posts: 14
Joined: Mon Nov 21, 2011 9:54 am
NAS Model: TS-212

Re: Tips & Trocks - Share folders

Postby ffaria » Sun Aug 26, 2012 7:42 am

Going once, going twice.. Anyone?

how can I hide the folders and subfolders that the user don't have access, when using ftp???

please...
ffaria
Starting out
 
Posts: 14
Joined: Mon Nov 21, 2011 9:54 am
NAS Model: TS-212


Return to Turbo Station Installation & Setup

Who is online

Users browsing this forum: rsblind and 3 guests