wait for it
使用hanewin nfs server时,如果不加参数
会导致ubuntu mount以后所有目录权限变为root:root
在dsm下无问题,在ubuntu下会使apache2的www-data用户无法写入
The exports file uses the same format as on Unix. Directories must follow the Windows notation starting with a drive specification, e.g. C:\unix
The following options are supported:
-name:<sharename> assigns a name to the exported path as an alternate name for mounting. -alldirs allows the host(s) to mount at any point within the filesystem. -umask:<mask> set the umask for group and world permissions on the filesystem, default 022 -readonly limits access to reading -public Enables WebNFS access. -lowercase maps all file names to lowercase, otherwise case is preserved. -exec forces in access rights the x bit for all files. -mapall:<uid>[:<gid>] all Unix user-ids and group-ids are mapped to the specified user-id and group-id. -maproot:<uid>[:<gid>] the Unix super user root is mapped to the specified user-id, group-id. Without a mapping entry root will be mapped to user and group nobody. -range IP adresses are interpreted in pairs as from-to ranges enabling client access from all addresses in a range (more flexible than the unix -net -mask options).
估计要指定uid:gid