Ubuntu File Server
This article is part of a series on setting up an Ubuntu Network Server. Below are the other sections of the article.
- Ubuntu Network Server
- Ubuntu DNS Server
- Ubuntu DHCP Server
- Ubuntu Firewall and Router
- Ubuntu File Server
I use Samba to access my home directory from the network. Below is a quick setup to make this work. This also turns your server into a WINS server, so Windows machines will have a little bit better browsing experience.
sudo apt-get install samba
Back up /etc/smb/samba.conf and start with a fresh file.
[global]
netbios name = KIEV
workgroup = SHORTROUND
server string = Ubuntu Firewall
security = user
encrypt passwords = true
wins support = yes
local master = yes
preferred master = yes
os level = 99
domain master = yes
interfaces = eth1 lo
bind interfaces only = yes
[homes]
comment = Home Directories
browseable = yes
valid users = %S
writable = yes
Make sure you modify the file to fit your needs. It all should be self-explanitory. The one to note is the interfaces line. Ensure you have your internal interface as well as your loopback device in the list.
For every user that needs to access the directory, run the following:
sudo smbpasswd -a username
Restart Samba for everything to take effect.
sudo invoke-rc.d samba reload
This was posted on Wednesday, August 27, 2008 at 10:54.
It is filed under
Ubuntu.
It is licensed under the Creative Commons Attribution 3.0 Unported License.
View the markdown for this article.