This script sets up a default configuration for running an NFS server under
Cygwin. As part of this setup, the script will do the following:
1) Create a user account to run the services under. [OPTIONAL]
2) Install portmap, mountd, and nfsd as Windows services.
3) Create a sample exports file.
4) Create a sample uid/gid mapping file.
After installing, please read the nfs-server README for Cygwin:
/usr/share/doc/Cygwin/nfs-server-2.3-*.README
This document contains notes on installation and documents known problems
and workarounds with the NFS server; ex:
- ISSUE : Recommend using ntsec
- ISSUE : Daemons are single-threaded
- ISSUE : Daemons require 'impersonate logged on user' right.
- ISSUE : Daemons cannot re-export mapped network drives
- ISSUE : Daemons expect 'nobody' or 'Guest' as anonymous user
- ISSUE : Portmap service fails to start
- ISSUE : Cannot export Windows directories not under Cygwin root
- ISSUE : Considerations when mapping UIDs/GIDs
Do you want to continue? (yes/no)
接
下來的畫面是詢問你要不要使用 separate user account 來執行 NFS Server,在 XP 上一定要回答
yes。接下來會問你帳號名稱和密碼。這個帳號是在 XP 上的帳號,用來執行 service 的,帳號密碼都要對才可以
(請仔細輸入帳號,不然有許多設定需要修改,相當麻煩):Checking for other Unix environments on this system ...
Good! There doesn't seem to be any other Unix environments installed.
You can choose to install the services so that they run under the local system
account, or under a separate user account. Which option you should choose
depends on which version of Windows you are running:
Windows 2000 : You may run nfsd under either a local system account or
a separate user account. You _probably_ want to run under
the local system account.
Windows XP : You _must_ run nfsd under a separate user account.
If you choose to run nfsd under a separate user account, you will be prompted
for a user name and password. If the user name you supply does not exist,
it will be created.
Do you want to run nfsd under a separate user account? (yes/no)