Find reason that ssh & nfs cannot happen at same time

master
Jason Zhu 2020-07-10 14:46:49 +10:00
parent 99bf7851dc
commit 89745398a7
1 changed files with 10 additions and 0 deletions

View File

@ -13,6 +13,16 @@ Due to issue from idmapping, NFS customization on Synology is given up. I will d
Used one day trying to solve the problem that I cannot write to `/volume1/homes/Jason`, found the problem is from my side. When I created `/mnt/synology_homes_Jason`, I didn't make it `chmod 777`. BAGA!
Anyway, [Applying Default UNIX Permissions](https://www.synology.com/en-us/knowledgebase/DSM/help/FileStation/settings) and [How to manage ACL settings on your Synology NAS](https://www.synology.com/en-global/knowledgebase/DSM/tutorial/File_Sharing/How_to_manage_ACL_settings_on_your_Synology_NAS) are good references
### 2020-07-10
Reason of failure to write to `/homes/Jason`:
* Didn't give NFS R/W access to `/homes/Jason` in Synology WebGUI, it can be easily solved.
* (Just discovered) Permission of `homes/Jason`, as I frequently ssh to my account, my `/homes/Jason` is set at 755 (drwxr-xr-x), which forbidden writing to this directory using non-Jason account. If I gave access for admin to write to my home directory, I cannot ssh in. So ssh and nfs to my homedirectory is not compatible.
Solution: Create a `nfs` shared folder in Synology to be mounted on my ubuntu
## 0. Knowledge Center: How to config NFS server and client
Synology's DSM WebGUI has capability to set NFS configuration to allow Linux to access files on Synology NAS, follow [tutorial: How to access files on Synology NAS within the local network (NFS)](https://www.synology.com/en-us/knowledgebase/DSM/tutorial/File_Sharing/How_to_access_files_on_Synology_NAS_within_the_local_network_NFS)