clients
Install Samba Server
Log in or ubuntu server, thenn Install the samba package in ubuntu server with following commads:
sudo apt-get instal samba smbfs
Now, samba server ready to configure as file server
Configure Samba Server as File Server
To make samba as file server, edit and configure Samba configuration file, it place on directory /etc/samba/smb.conf. Before editing samba configuration, Make a backup of your /etc/samba/smb.conf.
sudo cp /etc/samba/smb.conf /etc/samba/smb.conf.original
Replace/Edit options /etc/samba/smb.conf with following configuration below
[global] workgroup = Ubuntu Precise security = user [homes] comment = Home Directories browseable = yes writable = yes [share] comment = Precise File Server path = /srv/samba/share browsable = yes guest ok = no read only = no create mask = 0755
Create directory for file sharing
sudo mkdir -p /srv/samba/share/ sudo chown nobody.nogroup /srv/samba/share/
create a samba user with following command
sudo adduser precise
Create a samba password for user: precise
sudo smbpasswd -a precise
Tips: if you want convert ubuntu user as samba user, just type the command : sudo smbpasswd a <Ubuntu User> Now, restart samba server with following command
sudo /etc/init.d/smbd restart
How to Connect Samba Server on Ubuntu and Windows XP
To Connect samba server on ubuntu : Open nautilus Menu File Connect to Server
Access [share] directory
Connect to [Homes] Directory To Connect samba server on Windows XP: Start Run or press Windows Button + R . see screen shoot below
Reference:
Samba File Server Samba Server How To