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
- Manually adding/removing entries to Grub 2 Menu
- How to install Windows 7 from Ubuntu without burnning a disc
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]
while installing the samba server i’m gettin g error..
Reading package lists… Done
Building dependency tree
Reading state information… Done
The following packages were automatically installed and are no longer required:
linux-headers-2.6.28-11 linux-headers-2.6.28-11-generic
Use ‘apt-get autoremove’ to remove them.
The following extra packages will be installed:
samba-common smbclient
Suggested packages:
openbsd-inetd inet-superserver smbldap-tools ldb-tools keyutils
The following NEW packages will be installed:
samba smbfs
The following packages will be upgraded:
samba-common smbclient
2 upgraded, 2 newly installed, 0 to remove and 11 not upgraded.
Need to get 18.2MB of archives.
After this operation, 17.4MB of additional disk space will be used.
Do you want to continue [Y/n]? y
Err http://in.archive.ubuntu.com jaunty-updates/main smbclient 2:3.3.2-1ubuntu3.3
404 Not Found
Err http://in.archive.ubuntu.com jaunty-updates/main samba-common 2:3.3.2-1ubuntu3.3
404 Not Found
Err http://in.archive.ubuntu.com jaunty-updates/main samba 2:3.3.2-1ubuntu3.3
404 Not Found
Err http://in.archive.ubuntu.com jaunty-updates/main smbfs 2:3.3.2-1ubuntu3.3
404 Not Found
Failed to fetch http://in.archive.ubuntu.com/ubuntu/pool/main/s/samba/smbclient_3.3.2-1ubuntu3.3_i386.deb 404 Not Found
Failed to fetch http://in.archive.ubuntu.com/ubuntu/pool/main/s/samba/samba-common_3.3.2-1ubuntu3.3_i386.deb 404 Not Found
Failed to fetch http://in.archive.ubuntu.com/ubuntu/pool/main/s/samba/samba_3.3.2-1ubuntu3.3_i386.deb 404 Not Found
Failed to fetch http://in.archive.ubuntu.com/ubuntu/pool/main/s/samba/smbfs_3.3.2-1ubuntu3.3_i386.deb 404 Not Found
E: Unable to fetch some archives, maybe run apt-get update or try with –fix-missing?
also if i’m having the samba-3.5.2.tar.gz at my home location so how do i install that and work..
[Reply]
i’m getting error as i dnt have authority to download..
so other way round i have the
samba-3.5.2.tar.gz
samba-common_3.3.2-1ubuntu3.4_i386.deb
samba-dbg_3.0.22-1ubuntu3.11_i386.deb
samba_3.3.2.orig.tar.gz
so plz tell how to install using these jars.. or wht else i need..
[Reply]