Prev | Current Page 1297 | Next

Christopher Negus

"Linux Bible, 2008 Edition: Boot up to Ubuntu, Fedora, KNOPPIX, Debian, openSUSE, and 11 Other Distributions"

Options can include a variety
of options to define the security measures attached to the shared directory for the host. (You can
repeat Host/Option pairs.) Comments are any optional comments you want to add (following
the # sign).
As root user, you can use any text editor to configure /etc/exports to modify shared directory
entries or add new ones. Here??™s an example of an /etc/exports file:
/cal *.linuxtoys.net(rw) # Company events
/pub (ro,insecure,all_squash) # Public dir
/home maple(rw,squash uids=0-99) spruce(rw,squash uids=0-99)
The /cal entry represents a directory that contains information about events related to the company.
It is made accessible to everyone with accounts to any computers in the company??™s domain
(*.linuxtoys.net). Users can write files to the directory as well as read them (indicated by the
rw option). The comment (# Company events) simply serves to remind you of what the directory
contains.
The /pub entry represents a public directory. It allows any computer and user to read files from
the directory (indicated by the ro option) but not to write files. The insecure option enables any
computer, even one that doesn??™t use a secure NFS port, to access the directory. The all_squash
option causes all users (UIDs) and groups (GIDs) to be mapped to the nfsnobody user, giving
them minimal permission to files and directories.


Pages:
1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309