How to install Samba Server on ubuntu
Samba is a good choice for sharing files between Ubuntu and Windows computers.
To install samba server,you can just run following command in terminal:
sudo apt-get install samba smbfs
After installed samba,we need to configure it to make it accessible by following command
sudo gedit /etc/samba/smb.conf
At following screen,change and make it look like the marked section

Now create a samba user by following command
sudo smbpasswd -a username
And add that username to the smbusers file.
sudo gedit /etc/samba/smbusers
Add in the following line, substituting the username with the one you want to give access to
ubuntuusername = “samba username”
Use the name you created in “sudo smbpasswd -a username” instead samba username.
Related posts:
- Create,Modify,Delete samba shares with system-config-samba(GUI) in Ubuntu Linux
- How to Share Ubuntu Home Directory with Windows
- Install and Enable Telnet server in Ubuntu Linux
- How to install LAMP server in Ubuntu 9.04
- The easiest way Installing Lamp server in Ubuntu
Tags: network

Reader Comments
Nice and clear. The last line confuses me, though. My username is ray. What should I type?
ray = “samba username”
ubuntuusername = “samba ray”
ray = “ray”
Thanks!
[Reply]
admin Reply:
August 13th, 2009 at 3:03 am
ray=”ray”
[Reply]
Hi sir,
i m trying to configure samba. smb.conf i changes as follows
[global]
workgroup = R&D
wins support = yes
security = user
username map = /etc/samba/smbuser
/after that i create one directory as test
/[test]
path = /share/test
available = yes
browseable = yes
public = yes
writable = yes
guest ok = no
after that much configuration i restart the samba.
but it will give me error as
\\linuxserver-ip\test is not accessible. You might not have permissions to use this network resources.Contact the administrator of this server to find out if you have access permission.
i change the permission of test directory as 774.
Thanks in advance.
[Reply]