|
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
- <pre><code>//my-nas/share /mnt/nas nfs rw,hard,intr 0 0
- </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".)
|
|