Changes

Jump to: navigation, search

NAD710 Lab 6

98 bytes removed, 09:53, 18 March 2009
Questions
* Create a directory called "/nfs-pub" and set the read/write/list premission for all (chmod 777).
* Set the sticky bit on the directory "/nfs-pub" (chmod +t /nfs-pub).
* Modify the /etc/exports file and add the following line: but replace the place holder "ip-of-host" with your HOST's actual IP address.(IP of the Host Computer to which you want to allow access your directory .i.e NFS share directory).
/nfs-pub ip-of-host(rw,root_squash)
 
** /nfs-pub: directory on the NFS server to be shared
** ip-of-host: IP address or host name of the machine which is allowed to mount the share dierctory
* Boot up another Linux machine. If you are doing this lab in T2107, please boot to Fedora Core 8.
* Login to the HOST as a regular user (joker if you are working in lab T2107).
* Open a terminal window and swith switch to super user with the command "su -"
* Enter the command <pre>rpcinfo -p</pre>
* If the portmapper is running, you can turn it off with the command "service portmap stop".(You do not need portmapper running on the NFS client machine.)* On the NFS client machine, you need the NFS virtual file system driver in order to be able to access the exported directory on the NFS server. Most Linux system compiled the NFS file system driver as a Loadable Kernel module. Try the following command to check whether the NFS file system module has been installed:
[root@localhost root]# cat /proc/filesystems | grep nfs
* If the command produces no output, use the following command to load the nfs module:
# What information is provided by the "showmount -e" command?
# What is the location (path name) of the Loadable Kernel Module of the NFS file system driver?
# Who is the owner of the files /nfs-mnt/passwd.c-root and /nfs-pub/passwd.c-root? Are Do thet have the same owner? If not, why not?
# Who is the owner of the files /nfs-mnt/passwd.joker-s and /nfs-pub/passwd.joker-s?
# Who is the owner of the files /nfs-mnt/passwd.joker-c and /nfs-pub/passwd.joker-c?
1
edit

Navigation menu