Configuring Samba: Difference between revisions

From Alteeve Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
Line 25: Line 25:
create a fresh config, as the default configuration is messy and has many unneeded arguments
create a fresh config, as the default configuration is messy and has many unneeded arguments


[global]
[global]
workgroup = WORKGROUP
  workgroup = WORKGROUP
security = user
  security = user
[NameOfShare]
[NameOfShare]
path = /path/to/share
  path = /path/to/share
browsable = yes
  browsable = yes
writable = yes
  writable = yes
guest ok = ?
  guest ok = ?
read only = no
  read only = no


sudo service smb restart && sudo service nmb restart
sudo service smb restart && sudo service nmb restart

Latest revision as of 20:02, 12 August 2015

 AN!Wiki :: How To :: Configuring Samba

This document is under construction. Excuse the mess.

This document was written to assist in enabling a samba server on a Red Hat-based distribution for the purpose of using it as a destination for a BaaS application.

Configuring Samba on Centos 6.6

sudo yum install samba samba-client samba-common

smbd --version to check installed version

sudo chkconfig smb on sudo chkconfig nmb on

IF SELINUX, check the default config file for enforcement change

IF IPTABLES

on the client net config workstation to locate your windows workgroup

create backup user and destination?

BACKUP ORIGINAL SAMBA CONFIG create a fresh config, as the default configuration is messy and has many unneeded arguments

[global]
 workgroup = WORKGROUP
 security = user
[NameOfShare]
 path = /path/to/share
 browsable = yes
 writable = yes
 guest ok = ?
 read only = no

sudo service smb restart && sudo service nmb restart

smbpasswd -a BackupUser

share should be accessible