![]() To export our directories to a local network 192.168.1.0/24 we add the following two lines to /etc/exports /export 192.168.1.0/24(rw,fsid=0,insecure,no_subtree_check,async) This will cause idmapd to know to look at nf to determine where it should look for credential information (and if you have LDAP authentication already working, nsswitch shouldn't require further explanation). This way, server and client do not need the users to share same UID/GUID.įor those who use LDAP-based authentication, add the following lines to your client's nf: cat /etc/passwd and cat /etc/group should show the "nobody" accounts. For example on RedHat variants, it's nfsnobody for both. However, the client may have different requirements for the Nobody-User and Nobody-Group. Furthermore, this file should have the following lines in the Mapping section: In order for the ID names to be automatically mapped, both the client and server require the /etc/nf file to have the same contents with the correct domain names. It is set to "no" by default, which is fine, because we are not activating NFSv4 security this time. The only important option in /etc/default/nfs-kernel-server for now is NEED_SVCGSSD. There are three configuration files that relate to an NFS server: /etc/default/nfs-kernel-server, /etc/default/nfs-common and /etc/exports. ![]() Line to /etc/fstab /home/users /export/users none bind 0 0 Now mount the real users directory with: # mount -bind /home/users /export/users To save us from retyping this after every reboot we add the following This will not apply if using authentication (see below). First we create the export filesystem: # mkdir -p /export/users It's important that /export and /export/users have 777 permissions as we will be accessing the NFS share from the client without LDAP/NIS authentication. Let's say we want to export our users' home directories in /home/users. To check the NFS server is not installed, you can do.įor easier maintenance we will isolate all NFS exports in single directory, where the real directories will be mounted with the -bind option. Then mount the share on an Ubuntu client. Providing you understand what you are doing, use this brief walk-through to set up an NFSv4 server on Ubuntu (with no authentication security). ![]() This HowTo makes Ubuntu server NFSv4 ready.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |