Linux: How to create samba shares for Windows

Install Samba:
yum install samba
 
SELinux:
 setsebool -P samba_enable_home_dirs 1
 
Run the utility for GUI:
#system-config-samba
set up server setting as “share” if you want universal access without authentication
 
Or go through commands:
#mv /etc/samba/smb.conf /etc/samba/smb.conf.backup
#vi /ect/samba/smb.conf
[global]
workgroup = workgroup
netbios name = smbserver
security = SHARE
load printers = No
default service = global
path = /home
available = No
encrypt passwords = yes
[share]
writeable = yes
admin users = smbuser
path = /home/share
force user = root
valid users = smbuser
public = yes
available = yes
 
save and exit
 
adduser smbuser #add unix account
passwd smbuser #set unix account password
smbpasswd -a smbuser #lets create same user account on samba
<put same password as your unix account password>
/etc/init.d/smb restart

Leave a Reply

Your email address will not be published. Required fields are marked *