1 / 12

COP 4343 Unix System Administration

COP 4343 Unix System Administration. Unit 16: file server samba. File server. Remote access to files ftp put/get files from remote hosts nfs tight integration in Unix environment samba share access to/from Windows systems. Common Internet File System. other names

rmontes
Télécharger la présentation

COP 4343 Unix System Administration

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. COP 4343Unix System Administration Unit 16: file server samba

  2. File server • Remote access to files • ftp • put/get files from remote hosts • nfs • tight integration in Unix environment • samba • share access to/from Windows systems

  3. Common Internet File System • other names • Server Message Block (SMB) • Samba • Samba server • Linux system appear in Windows networks as if it were another Windows system • Samba client • Linux can access Windows systems that are configured to share their resources

  4. Common Internet File System • packages to install • samba • samba-common • samba-client • smbfs is part of 2.6 kernel • check for module, or compile in

  5. Samba Client Utilities • smbclient • command-line utility that allows logging into a Windows host, and interacting using a series of commands • standard mount command using a file system type of smbfs • printing to a Windows printer is done using the smbprint command

  6. smbclient • check which shares are available • smbclient –L host • smbclient –L printers1 • ftp-like file access • smbclient //unix/faxes • parameter for user: -U user • anonymous access might be allowed

  7. smbfs • check whether module is available • use regular mount command mount //unix/faxes /mnt

  8. Samba Server • Samba includes 2 server daemons: • nmbd: NetBIOS name service • winbindd: user/password resolver • smbd: SMB protocol server • configuration: /etc/samba

  9. configuration files • smb.conf • defines shares • home directories • printers • others • check with testparm • lmhosts • maps NETBios names to IP numbers • smbpasswd • passwords for local users

  10. Creating Samba Users • samba server requires user authentication • best practice: encrypted passwords • create accounts for all users: cat /etc/passwd | mksmbpasswd.sh > smbpasswd • create passwords for allowed users: smbpasswd user

  11. Using SWAT to Configure SMB • web-based tool • configure smb.conf • start/stop smb service • status information • install via: yum install samba-swat • SWAT runs via xinetd the superserver • /etc/xinetd.d/swat

  12. Using SWAT to Configure SMB

More Related