How To Set Up Samba in Ubuntu - Linux, and Access It in Mac OS and Windows - Adrian Mejia Blog
How To Set Up Samba in Ubuntu - Linux, and Access It in Mac OS and Windows - Adrian Mejia Blog
Coding
Samba allows to share files and printers with other computers remotely, regardless
their operating system (linux, windows, Mac, ...). This guide show how to intall and
configure the Samba service in a Ubuntu machine and access it through windows
and mac.
2. Install samba with the following command: sudo apt-get install samba
smbfs
3. Configure samba typing: vi /etc/samba/smb.conf
4. Set your workgroup (if necesary). Go down in the file, until you see :
5. Set your share folders. Do something like this (change your path and comments)
# Adrian's share
[MyShare]
comment = YOUR COMMENTS
path = /your-share-folder
read only = no
guest ok = yes
1. Open finder
2. Menu Go -> Connect to server (command-k)
3. In the "Server Address" textbox, type: smb://<your-ip-address-to-ubuntu>
4. Connect
5. Select guest and OK
6. Your all set, you'll be able to see /<your-share-folder> from here.
Windows
If you need to enable the samba ports in your firewall these are the ports:
https://adrianmejia.com/how-to-set-up-samba-in-ubuntu-linux-and-access-it-in-mac-os-and-windows/ 2/7
1/10/25, 9:50 AM How to set up Samba in Ubuntu/Linux, and access it in Mac OS and Windows | Adrian Mejia Blog
NEWER OLDER
Faster Windows XP removing What technologies are using the most
Msmpeng.Exe and other programs influential Internet companies?
email address
Subscribe
https://adrianmejia.com/how-to-set-up-samba-in-ubuntu-linux-and-access-it-in-mac-os-and-windows/ 3/7
1/10/25, 9:50 AM How to set up Samba in Ubuntu/Linux, and access it in Mac OS and Windows | Adrian Mejia Blog
Follow @iAmAdrianMejia
Contents
https://adrianmejia.com/how-to-set-up-samba-in-ubuntu-linux-and-access-it-in-mac-os-and-windows/ 4/7
1/10/25, 9:50 AM How to set up Samba in Ubuntu/Linux, and access it in Mac OS and Windows | Adrian Mejia Blog
12 Comments
1 Login
Name
John Adams − ⚑
4 years ago
This has to be the worst tutorial EVER!! Seriously! There's like 100+ settings in Samba and if one is
wrong then nothing works. This dopey idiot should be fired!!
5 2 Reply ⥅
Clay Richard − ⚑
C 4 years ago
This tutorial makes invalid assumptions on the knowledge of the reader. It is by no means a guide
for newbies.
2 1 Reply ⥅
Ashok Kumar − ⚑
AK 3 years ago
We are accessing Linux samba server shared folder from windows system. When we are listing a
files names through dir command it came in random order. Is there any setting in samba server to
get this in proper sequence? please hel
1 0 Reply ⥅
Halima Fadde − ⚑
HF 5 years ago
i get an error message when i want access Samba Server Files from windows
1 0 Reply ⥅
Rene − ⚑
R 4 years ago
Good Tutorial, one of the simplest tutorials to setup samba on Linux out there, it gets you 95%
there. The only clarification I would make is this :
0 0 Reply ⥅
0 0 Reply ⥅
0 0 Reply ⥅
Tinesh − ⚑
T 5 years ago
Hi by doing this will I get to see the name of the pc that gives print job on the printjob monitor list ?
0 0 Reply ⥅
Fred Frigo − ⚑
6 years ago
Excellent, clear, helpful - had no problem setting up Ubuntu 18.04 with Windows 10.
0 0 Reply ⥅
Dart Gar − ⚑
D 6 years ago
I am trying to access a drive installed on Router. How can I use Samba to do so please help and
thank you so much?
0 0 Reply ⥅
Henry − ⚑
H 10 years ago
Hi, I found solution, just create samba user. See the following link
http://www.andyibanez.com/m...
0 0 Reply ⥅
https://adrianmejia.com/how-to-set-up-samba-in-ubuntu-linux-and-access-it-in-mac-os-and-windows/ 6/7
1/10/25, 9:50 AM How to set up Samba in Ubuntu/Linux, and access it in Mac OS and Windows | Adrian Mejia Blog
https://adrianmejia.com/how-to-set-up-samba-in-ubuntu-linux-and-access-it-in-mac-os-and-windows/ 7/7