Share Linux home directory using samba

Nov 7th, 2013

Let’s say you are logged in on your linux environment as “lalit”

Edit /etc/samba/smb.conf and add the following at the end of the file

comment = Lalit's Linux Box
path = /home/lalit
browseable = yes
guest ok = no
read only = no
create mask = 0755
directory mask = 0755

This will create a share of /home/lalit as “MyHomes”

Next, you need to create a user and assign him a password

smbpasswd -a lalit

Note: the name should match the linux user you are logging in with. In example above, I am logged in to Linux as user “lalit” and I have create a samba user also matching “lalit”

No comments yet.

Time limit is exhausted. Please reload the CAPTCHA.