| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
|
By do0m at 2005-08-04 01:48
|
|
Easy NFS
NFS (Network File System) allows separate machines to mount partitions across the network. That is, it
allows you to mount remote filesystems on local machines like local drives.
This tutorial was tested with Gentoo and FreeBSD and mainly targeted at Linux, but it should work across
all platforms supported by NFS. If you need, refer to your documentation for details on your specific
platform. All the examples here should be modified to fit your network.
Setting up /etc/exports
Have your text editor at hand (I like nano or vim).
Before editing the exports file, you should view the man page (man exports).
The basic syntax of an exports entry looks something like this:
Code:
(directory,machine(s)(options,options))
/files 192.168.0.101(rw,no_root_squash)
There are several options you can provide, depending on how you intend to
share your directory. A complete list of available options are listed in
the exports man page. Here's a brief summary:
rw: read/write
ro: read-only
no_root_squash: allows root access on the server
I find no_root_squash useful for administrative work on my machines, but it
can have some security implications. Be careful with root access, as always.
You can also use wildcard characters in these entries, though it would be
unwise to do so. (Allowing access to EVERYONE is quite dangerous.)
Setting up /etc/hosts.allow
You may already be familiar with hosts.allow.
The basic syntax of a hosts.allow entry is
For example
Code:
portmap: 192.168.0.101
You will need to make the following entries in your hosts.allow file for
NFS:
Code:
portmap: (hosts)
lockd: (hosts)
mountd: (hosts)
rquotad: (hosts)
statd: (hosts)
(hosts) represents client machines. Multiple hosts must be separated by commas.
Setting up /etc/hosts.deny
The following entries are necessary in hosts.deny:
Code:
portmap: ALL
lockd: ALL
mountd: ALL
rquotad: ALL
statd: ALL
"ALL" excludes everyone who's not listed in /etc/hosts.allow.
This file follows the same basic syntax as hosts.allow.
Starting the daemons
These daemons may already be running for whatever reason. Check to see:
Code:
$ ps aux | grep (daemon)
The daemons needed are nfsd, lockd, statd, mountd, and rquotad.
Depending on your distro, these may be named differently.
NFS should be ready to accept connections. :)
Start the portmapper, lockd, and statd services on the client machine, and
begin enjoying your NFS setup.
Code:
$ mount 192.168.0.100:/files /blahasdf/files
$ umount /files
At this point, you should redo all configuration files for your efficiency and security.
|
|
|
|
All times are GMT -5. The time now is 06:58 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|
begin enjoying your NFS setup.
::Edit::
Found this code here
::Edit::
Found this code here
Damn I really like the Slackware community. People help each other. Bits and pieces here and there and bam everything is up and running.
Thanks so much (=