|
Samba installation and configuration.
Exercise
Clone your kvm1 virtual machine into a new VM, smbhost.
Start smbhost and login to its console:
Remove 127.0.1.1 kvm1 in file /etc/hosts and change
the host name for smbhost in file /etc/hostname.
Install samba packages on smbhost:
Backup the original samba configuration file, smb.conf:
Create a new configuration file, smb.conf, in directory
/etc/samba with the following content:
[global]
# Global settings for all the shares
workgroup = Group16
netbios name = smbhost
server string = SMB
security = user
passdb backend = tdbsam
# Disable printer shares
disable spoolss = yes
[homes]
comment = Home Directories
path = /home/%S
available = yes
valid users = %S
read only = no
browsable = no
writable = yes
|
Run command testparm to verify there is no errors in smb.conf
Restart the samba services:
Note, you need to restart the services any time after file smb.conf
is modified.
Create a new user samba account:
|
|