NFS Server Setup
NFS SERVER SETUP
Linux System Administration
Network File Service
NFS Server Setup
Allows to share Directories between UNIX Systems
Daemons: netfs, nfs, nfslock (also uses portmap
and rpc service)
NFS Server Configuration
NFS Server Setup
Exported File System(s) are defined in
Configuration File /etc/exports
/data 172.31.0.0/16 (ro)
/www acb.sidbi.org
NFS Client Configuration
NFS Server Setup
Configuration File : /etc/fstab
server1:/data /users/data nfs defaults 0 0
mount server1:/data /users/data
(Note: The mount point must exist before /etc/fstab is read or the
filesystem is manually mounted)
NFS Troubleshooting
NIS Server Setup
Use exportfs command to find and verify which
areas are exported by the server
Use mount command to find and verify which areas
are mounted by the client
Samba Server Setup
SAMBA SERVER SETUP
Samba Service
Samba Server Setup
File and Printer Sharing from UNIX to Windows
Uses smb Daemon
service smb start/stop/restart
Samba Server Configuration
Samba Server Setup
Use GUI Applications  Server Settings 
Services  SMB
Configuration File: /etc/samba/smb.conf
Configuring File and Directory Sharing
[share_name]
comment = Fred's Home Directory
path = /home/fred
valid users = fred
public = no
writable = yes
printable = no
Samba Server Configuration
Samba Server Setup
Configuring Printer Sharing
[printer_share_name]
comment = Fred's Printer
valid users = fred
path = /var/spool/samba
printer = freds_printer
public = no
writable = no
printable = yes
Authentication Methods
Samba Server Setup
Use local username/password (stored in
/etc/samba/smbpasswd)
To add a local user: smbpasswd –a fred (fred should
be a user in /etc/passwd)
Samba Client Configuration
Samba Server Setup
Share the Samba Directory on Windows
machine
Share the Samba Filesystem on Unix machine
by specifying in /etc/fstab
server1:/smbdata /users/smbdata smbfs defaults 0 0
or use
smbmount //server1/smbdata /users/smbdata –o
username=fred
Thank You
Sreenatha Reddy K R
https://in.linkedin.com/in/sreenathaa
https://twitter.com/SreenathReddyK
https://www.fb.com/sreenathareddy.kr

Linux System Administration - NFS Server

  • 1.
    NFS Server Setup NFSSERVER SETUP Linux System Administration
  • 2.
    Network File Service NFSServer Setup Allows to share Directories between UNIX Systems Daemons: netfs, nfs, nfslock (also uses portmap and rpc service)
  • 3.
    NFS Server Configuration NFSServer Setup Exported File System(s) are defined in Configuration File /etc/exports /data 172.31.0.0/16 (ro) /www acb.sidbi.org
  • 4.
    NFS Client Configuration NFSServer Setup Configuration File : /etc/fstab server1:/data /users/data nfs defaults 0 0 mount server1:/data /users/data (Note: The mount point must exist before /etc/fstab is read or the filesystem is manually mounted)
  • 5.
    NFS Troubleshooting NIS ServerSetup Use exportfs command to find and verify which areas are exported by the server Use mount command to find and verify which areas are mounted by the client
  • 6.
  • 7.
    Samba Service Samba ServerSetup File and Printer Sharing from UNIX to Windows Uses smb Daemon service smb start/stop/restart
  • 8.
    Samba Server Configuration SambaServer Setup Use GUI Applications  Server Settings  Services  SMB Configuration File: /etc/samba/smb.conf Configuring File and Directory Sharing [share_name] comment = Fred's Home Directory path = /home/fred valid users = fred public = no writable = yes printable = no
  • 9.
    Samba Server Configuration SambaServer Setup Configuring Printer Sharing [printer_share_name] comment = Fred's Printer valid users = fred path = /var/spool/samba printer = freds_printer public = no writable = no printable = yes
  • 10.
    Authentication Methods Samba ServerSetup Use local username/password (stored in /etc/samba/smbpasswd) To add a local user: smbpasswd –a fred (fred should be a user in /etc/passwd)
  • 11.
    Samba Client Configuration SambaServer Setup Share the Samba Directory on Windows machine Share the Samba Filesystem on Unix machine by specifying in /etc/fstab server1:/smbdata /users/smbdata smbfs defaults 0 0 or use smbmount //server1/smbdata /users/smbdata –o username=fred
  • 12.
    Thank You Sreenatha ReddyK R https://in.linkedin.com/in/sreenathaa https://twitter.com/SreenathReddyK https://www.fb.com/sreenathareddy.kr