Skip to content

Commit 2b9436a

Browse files
committed
fix(nfs): fix handling allow_nonroot
https://ixsystems.atlassian.net/browse/NAS-129243
1 parent b39e4b0 commit 2b9436a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/middlewared/middlewared/etc_files/rc.conf.py

+1
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,7 @@ def nfs_config(middleware, context):
201201
yield f'rpcbind_flags="{" ".join(ips)}"'
202202

203203
yield f'nfs_server_flags="{" ".join(nfs_server_flags)}"'
204+
yield 'nfs_reserved_port_only="{}"'.format('NO' if nfs['allow_nonroot'] else 'YES')
204205
yield f'rpc_statd_flags="{" ".join(statd_flags)}"'
205206
yield f'rpc_lockd_flags="{" ".join(lockd_flags)}"'
206207
yield f'mountd_flags="{" ".join(mountd_flags)}"'

0 commit comments

Comments
 (0)