Linux: How to create samba shares for Windows

Install Samba:
yum install samba
 setsebool -P samba_enable_home_dirs 1
Run the utility for GUI:
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
workgroup = workgroup
netbios name = smbserver
security = SHARE
load printers = No
default service = global
path = /home
available = No
encrypt passwords = yes
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
Posted on Categories Linux

Leave a Reply

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