07.06.2014 Views

2 - Raspberry PI Community Projects

2 - Raspberry PI Community Projects

2 - Raspberry PI Community Projects

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

option, which disables this behavior, is risky and should only be used in controlled environments.<br />

The anonuid=uid and anongid=gid options allow specifying another fake user to be<br />

used instead of anonymous.<br />

Other options are available; they are documented in the exports(5) manual page.<br />

CAUTION<br />

First installation<br />

The /etc/init.d/nfs-kernel-server boot script only starts the server if the<br />

/etc/exports lists one or more valid NFS shares. On initial configuration,<br />

once this file has been edited to contain valid entries, the NFS server must<br />

therefore be started with the following command:<br />

# /etc/init.d/nfs-kernel-server start<br />

11.4.3. NFS Client<br />

As with other filesystems, integrating an NFS share into the system hierarchy requires mounting.<br />

Since this filesystem has its peculiarities, a few adjustments were required in the syntaxes<br />

of the mount command and the /etc/fstab file.<br />

# mount -t nfs -o rw,nosuid arrakis.interne.falcot.com:/srv/shared /shared<br />

Example 11.26<br />

Manually mounting with the mount command<br />

arrakis.interne.falcot.com:/srv/shared /shared nfs rw,nosuid 0 0<br />

Example 11.27<br />

NFS entry in the /etc/fstab file<br />

The entry described above mounts, at system startup, the /srv/shared/ NFS directory from<br />

the arrakis server into the local /shared/ directory. Read-write access is requested (hence the<br />

rw parameter). The nosuid option is a protection measure that wipes any setuid or setgit bit<br />

from programs stored on the share. If the NFS share is only meant to store documents, another<br />

recommended option is noexec, which prevents executing programs stored on the share.<br />

The nfs(5) manual page describes all the options in some detail.<br />

11.5. Seing Up Windows Shares with Samba<br />

Samba is a suite of tools handling the SMB protocol (now called “CIFS”) on Linux. This protocol<br />

is used by Windows for network shares and shared printers.<br />

Samba can also act as an NT domain controller. This is an outstanding tool for ensuring seamless<br />

integration of Linux servers and the office desktop machines still running Windows.<br />

Chapter 11 — Network Services: Postfix, Apache, NFS, Samba, Squid, LDAP<br />

279

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!