LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

exports

NFS shared directory configuration and management

TLDR

View current exports
$ exportfs -v
copy
Reload exports configuration
$ sudo exportfs -ra
copy
Export directory temporarily
$ sudo exportfs -o [rw,sync] [client:/path]
copy
Unexport directory
$ sudo exportfs -u [client:/path]
copy

SYNOPSIS

/etc/exports - NFS exports configurationexportfs [options] [client:/path]

DESCRIPTION

/etc/exports defines which directories are shared via NFS (Network File System). Each line specifies a path and which clients can access it with what options.The exportfs command manages the export table at runtime, reading from /etc/exports and updating the kernel's export table without restarting NFS services.

PARAMETERS

exportfs -r

Re-export all directories.
exportfs -a
Export all entries in /etc/exports.
exportfs -u client:/path
Unexport directory.
exportfs -v
Verbose; show current exports.

OPTIONS

rw / ro

Read-write or read-only access.
sync / async
Synchronous or asynchronous writes.
no_root_squash
Don't map root to anonymous user.
root_squash
Map root to anonymous user (default).
all_squash
Map all users to anonymous.
subtree_check / no_subtree_check
Subtree checking.
secure / insecure
Require ports < 1024.

EXPORTS FILE FORMAT

$ /path      client(options)
/home      192.168.1.0/24(rw,sync)
/data      *(ro,async)
/shared    @group(rw,no_root_squash)
copy

CAVEATS

Changes to /etc/exports require `exportfs -ra` to take effect. Security relies on IP-based access control by default. Consider Kerberos for authenticated NFS. Permission mapping between client and server must be considered.

SEE ALSO

nfsd(8)

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid