Setup Samba Server on Ubuntu (Feisty Fawn)

1.install samba
sudo apt-get install samba

2.stop samba service, so that we can do configuration
sudo /etc/init.d/samba stop

3.configure samba
sudo gedit /etc/samba/smb.conf

4.setup share folder in smb.conf
add this at the end of smsb.conf
[SHARE]
path = /var/lib/share ;share directory
browseable = yes ;browseable
read only = no ;readonly
create mask = 0644 ;file creation mask
directory mask = 0755 ;directory creation mask

5. login setting
Default setting use linux user account to login, root is forbidden
in smb.conf
security = user
invalid users = root
you can share without login by setting
sercurity = share

6.start samba service
sudo /etc/init.d/samba start

6.create samba account
sudo smbpasswd -a [linuxUsername]

If you just want to share file between your linux and windows machine in your home like me.

Here is my handy setting :
security = share

[share]
path = [share folder path]
read only = no
writable = yes
browseable = yes
guest ok = yes

and then change that folder setting :
owner = nobody
folder = create and delete
file = read and write
group = nogroup
folder = create and delete
file = read and write

Advertisements

One thought on “Setup Samba Server on Ubuntu (Feisty Fawn)

  1. Pingback: Setup Samba on Ubuntu « Android experiences

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s