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

Adding Repositories in Centos 5.3

yum install yum-priorities vim /etc/yum/pluginconf.d/priorities.conf ---- [main] enabled=1 ----   Install RPMForge: cd /home wget…

How to Install & Configure Pihole on Ubuntu 20.04

1. Installation- Run these commands: # sudo apt-get install gamin -ysudo curl -sSL https://raw.githubusercontent.com/pi-hole/pi-hole/master/automated%20install/basic-install.sh |…

Experimental selinux Settings

enable or disable selinux: vim /etc/sysconfig/selinux   setsebool -P httpd_read_user_content 1   grep nginx /var/log/audit/audit.log |…