1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-03-28 21:16:20 +01:00

share: add page (#15676)

This commit is contained in:
Machiavelli 2025-03-13 19:57:36 +02:00 committed by GitHub
parent 273c654101
commit 8d1d060648
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

24
pages/sunos/share.md Normal file
View file

@ -0,0 +1,24 @@
# share
> Make local resource/filesystem available for mounting by remote systems.
> More information: <https://docs.oracle.com/cd/E36784_01/html/E36825/gntjt.html>.
- List all currently shared file systems:
`share`
- Share a directory with read/write access:
`share -F nfs -o rw {{/path/to/directory}}`
- Share a directory with read-only access:
`share -F nfs -o ro {{/path/to/directory}}`
- Share a directory with specific options (e.g., allow root access from a specific host):
`share -F nfs -o rw,root={{hostname}} {{/path/to/directory}}`
- Make sharing persistent by adding entries to `/etc/dfs/dfstab`:
`echo "share -F nfs -o rw {{/path/to/directory}}" >> /etc/dfs/dfstab`