Samba
Description
This page will show you how to create Windows shares on a Linux box. This will allow Windows computers to access files on Linux.
Installation
Firstly install the samba server
Installation of Applications
yum install samba
Configuration of Applications
Once the required applicatons are installed we can add the computer to the domain by running authconfig.
authconfig-tui
Under the User infromation select Use Winbind
Under Authentication select Use Winbind Authentication
Under the Authentication column the "Use MD5 Password" and "Use Shadow Passwords" should be automatically select. Leave them selected.
Security Model is ads
Domain is NETBIOS domain name
Domain Controllers is the name of a Domain Controller
ADS Realm is DNS (FQDN) domain name
by default the /bin/false is selected.
Select Join Domain.
Select Ok.
Now edit the file /etc/samba/smb.conf file.
Create the required shares.
[meetme] comment = comment here path = /var/spool/asterisk/meetme guest ok = no browseable = yes writable = yes valid users = @"DOMAIN\Group Name" valid users = DOMAIN\username
Once the file has been saved restart the service.
service smb restart
Auto start Service
Set the servcie to auto start by issuing the following command.
chkconfig smb on
Connecting to Windows UNC
If you require to mount to a UNC then you will also need to install the samba-client.
yum -y install samba-client cifs-utils
If you do not have the samba client installed you will get errors like:
CIFS VFS: cifs_mount failed w/return code = -22