Symlink doesn't work with user
#NAS_Sep_2019
All Replies
-
Can you share details steps and screenshots? I would like to check it on my NAS.
Which ZYXEL NAS device you have? What is its firmware version?0 -
NAS: 326
Firmware: V5.21(AAZF.3)I think I realized why the user has no access, but the problem not solved yet.
The beginning:
STEP 1. Created a „MAIN” folder /GUI interface/
STEP 2. Created two folders SHARED_1 and SHARED_2 /GUI interface/
STEP 3. created symlink to MAIN from SHARED_1 and SHARED_2 with ln -s command /PuTTY/
STEP 4. Created two users USER_1 and USER_2 /GUI/
STEP 5. Created „FULL” group and put USER_1 into the group with write access /GUI/
STEP 6. Changed the SHARED_1 folder owner group to the „FULL” group with chgrp command /PuTTY/
STEP 7. Changed the SHARED_1 folder rights to 770 with chmod command /PuTTY/
This is the starting method which is working fine, I tried it. USER_1 has access all the 3 folders, but USER_2 has access only the MAIN and SHARED_2 folders.
But I need a little bit different.
I would like if the USER_1 has access to the SHARED_1 folder ONLY, and USER_2 has access to the SHARED_2 folder ONLY. Naturally they can have access to the MAIN folder.My idea: put both of the users into the FULL group and I set USER_1 for SHARED_2 folder to no access and USER_2 for SHARED_1 folder to no access it will working, but not working for me. They have full access to all folders. How can I solve it?
0 -
In samba you'll have to explicitly enable the possibility to follow symlinks. Which is not trivial, as the smb.conf is generated dynamically by the firmware.How about a bindmount?0
-
Ok, it's solved. I got the solution and it is very simple and easy.The symlink part need for it.Than I created GROUP_1 and I put in USER_1 and admin, than created GROUP_2, put in USER_2 and admin.Changed the SHARED_1 folder owner group to GROUP_1, the same with SHARED_2Changed the folders rights to 770.And voila, admin has full access for MAIN, SHARED_1 and SHARED_2, USER_1 has full acces for SHARED_1 but no access SHARED_2 and the same with USER_2Anyway, thanks guys for your help!
1
Categories
- All Categories
- 398 Beta Program
- 2.1K Nebula
- 117 Nebula Ideas
- 83 Nebula Status and Incidents
- 5.2K Security
- 99 USG FLEX H Series
- 247 Security Ideas
- 1.3K Switch
- 69 Switch Ideas
- 923 WirelessLAN
- 35 WLAN Ideas
- 5.9K Consumer Product
- 212 Service & License
- 337 News and Release
- 71 Security Advisories
- 21 Education Center
- 5 [Campaign] Zyxel Network Detective
- 2.1K FAQ
- 1K Nebula FAQ
- 445 Security FAQ
- 238 Switch FAQ
- 213 WirelessLAN FAQ
- 47 Consumer Product FAQ
- 142 Service & License FAQ
- 34 Documents
- 34 Nebula Monthly Express
- 72 About Community
- 62 Security Highlight