Perform the following: cd /cooltransfer/userĬONGRATS! All should be working! :-) Unless.you've effed up. You can even change the ownership to the (other) local user on the directory that contains the NFS. # should output whatever is defined in the mapped NFS directory (here: /usr/cool/users) Issue the following commands: sudo service autofs stopĮxecute the following commands to verify that the mountpoint is properly defined: ls -la /cooltransfer ![]() Now restart automount/autofs to reflect the mounting configuration. Now, copy the existing file "auto.misc"-file (you're just as lazy as me, so just do it :-)) and modify the contents to conform with the remote server / fileshare sudo cp /etc/auto.misc /etc/auto.fs-cool Perform the following: sudo vi /etc/auto.master This is quite simple and includes changing the file called auto.master. Run the following command in order to verify that some mounts is exposed/exported (through the use of e.g NFS): sudo showmount -e 10.10.10.26Ĭonfigure shared file share in auto.master If you do not have autofs installed, run the following stuff below: sudo yum install autofs You are now ready to accept requests from a client - wihu! :-) Installation (client) Installing autofs Note: You can actually also allow the IPs that should be able to connect to the service itself (mountd). ![]() Perform the following: sudo vi /etc/hosts.allow Remove the configuration that is defined in the hosts.allow file for mountd. Remove the configuration that is defined in the ny file for mountd. # see man for export for more features (rw = readwrite, ro = readonly, sync = duh.)Īfter this is done, just restart the NFS server: sudo service nfs restart usr/cool/users *(rw,sync,no_root_squash) Edit the file named /etc/exports and insert something similar to this configuration: sudo vi /etc/exports Next up is to actually configure NFS to share the folder(s) that should be marked for sharing. Now the service related to the NFS stuff should be started and running. yum install nfs-utils nfs-utils-libĪfter this is done, just start the service: sudo service nfs start In order to enable sharing a specific folder, some kind of software must be installed locally on the server, and this is typically some NFS based utilities. When this is done, create the following folder structure as well in order to properly share a folder: sudo mkdir /usr/cool Create the user on the targeted host: sudo useradd -b /export/home -c "Mimics random cool user" -m -U mycooluser This example definition will use a defined user called mycooluser. Pre-requisites Target-server (server hosting the folder to be mounted) Subdirectory trees, dynamically and transparently makes local or Mounts filesystems in response to access operations by user programs.Īn automounter system utility (daemon under Unix), when notified ofįile and directory access attempts under selectively monitored NFS is an open standard defined in Request for Comments (RFC),Īllowing anyone to implement the protocol.Īn automounter is any program or software facility which automatically The Open Network Computing Remote Procedure Call (ONC RPC) system. NFS, like many other protocols, builds on On a client computer to access files over a computer network much like Originally developed by Sun Microsystems in 1984, allowing a user Network File System (NFS) is a distributed file system protocol
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |