What is Samba?

“Samba is an Open Source/Free Software suite that provides seamless file and print services to SMB/CIFS clients.” Samba is freely available, unlike other SMB/CIFS implementations, and allows for interoperability between Linux/Unix servers and Windows-based clients

Or for the less geekish – Samba simply allows you, from your Linux box, to access folders, files and printers on a Windoze box on your network.

Please note that this is a basic setup of samba and doesn’t take many security issues into consideration. Once you have it up and running you can then tighten up the security.

1. Create /etc/samba/smb.conf File

vi /etc/samba/smb.conf

# /etc/samba/smb.conf

[global] workgroup = PDC #Enter your Windows workgroup/domain here
encrypt passwords = yes
wins support = yes
local master = yes

[homes] #Make your /home directories accessible to the users who own them
browsable = no
read only = no
map archive = no

[data] path = /export/data #Enter any other Linux directories you want to share here
read only = no
map archive = no

# end

2. Setup Samba to Run at Startup

chmod 755 /etc/rc.d/rc.samba

[Either reboot or
run killall -TERM smbd
/etc/rc.d/rc.samba start

to start and stop the server.]

3. Setup a Samba User

smbpasswd -a username

4. Login to Samba

smbclient //localhost/data

If you are able to login, you now should be able to see the ‘data’ directory from Windows, assuming you are setup your workgroup properly and are logging into your Windows system with the same username and password you log into Linux with.

Facebook Comments

More Stuff

Emblematic Group and Mozilla Team Up to Showcase Next Generation o... Everything you share on the internet is a story. You read blog posts and watch videos that make you feel connected to people across the world. Virtual...
Latest Firefox Release is Faster than Ever With the introduction of the new Firefox Quantum browser in 2017 we changed the look, feel, and performance of our core product. Since then we have la...
Competing without a Marketing Budget: When All You Have is a Produ... This is a story about the power of a good landing page, PR efforts, and marketing strategy. The refreshing twist here is that instead of explaining ho...
The Ongoing Fiasco and Mysterious Afterlife of QuadrigaCX I’d say you were a little late to the cryptocurrency party if you haven’t heard about the ongoing catastrophe that’s been QuadrigaCX these past six ...
Spread the love

Posted by

Complete your author profile info to be shown here. Edit your profile →