设为首页收藏本站

BC Morning Updates

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 389|回复: 0

Share UID and NAS folder between Ubuntu and QNAP server

[复制链接]
发表于 2015-5-27 11:53:28 | 显示全部楼层 |阅读模式
Sharing UIDs
Assuming that the NAS is running a variant of Linux, and you have root access (if not I guess you need to ask QNAP), you have three options:
  • Manually sync /etc/passwd between the two boxes (passwd is the file that contains the username/userid mapping).
  • LDAP
  • NIS
If there are just a few users that don't change very often, the manual sync is probably the simplest. You need to keep the NAS system users the same, just add the relevant client users. Make a copy of the passwd file before changing it, so you can revert if necessary.
See the Ubuntu NFS HowTo, User Permissions.


Mounting
Mounting in fstab is probably the simplest.
Something like
  1. <pre><code>//my-nas/share   /mnt/nas    nfs   rw,hard,intr    0  0
  2. </code></pre>

复制代码

should do the trick. The hard and intr mount options are recommended by the Linux NFS HowTo. They will cause client programs to hang if the NAS is down (hard), but will let you kill them (intr). (The alternative is that file access returns an error, which according to the Linux NFS HowTo most programs cannot handle gracefully, and is "a recipe for corrupted files and lost data".)
   

您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|手机版|BC Morning Website ( Best Deal Inc. 001 )  

GMT-8, 2019-9-18 03:53 , Processed in 0.081796 second(s), 19 queries .

Supported by Bestdeal Online

© 2008-2019 BestDeal Online Inc.

快速回复 返回顶部 返回列表