Posted On April 1, 2019

Linux: How to create samba shares for Windows

kimconnect 0 comments
blog.KimConnect.com >> Linux >> 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 *

Related Post

Linux: An Experience in Resizing a Root Partition

Scope: These instructions are intended for Linux systems without Logical Volume Manager (LVM). For that…

Linux User and Group General Operations

# Add new useruseradd tomcruise# Create new groupgroupadd webadmins# Add user to groupusermod -a -G…

CentOS 8 SSH Daemon Notes

# How to check sshd logs tail -f -n 50 /var/log/secure|grep sshd # Limit sessions…