Monday, October 22, 2007

Ubuntu - Setup Samba

If you want to share files between your Ubuntu and Windows computers, your best option is to use Samba file sharing. The following steps describe howto setup Samba:
1. Install Samba
If Samba is not installed in your system, you must first install it. You can use the Synaptic Package Manager or the following command:
sudo apt-get install samba
2. Configure smb
We've got samba installed, but now we'll need to configure it to make it accessible. Run following command to open the configuration file, substituting your editor of choice:
sudo vim /etc/samba/smb.conf
Uncomment some lines to make the following valid:
[homes]
security = user
comment = Home Directories
browseable = no
valid users = %S
writable = yes
create mask = 0600
directory mask = 0700
3. Create a Samba User
sudo smbpasswd -a [username]
4. Restart Samba
sudo /etc/init.d/samba restart
Now your home directory is shared, I tried this in the Ubuntu 7.04 & 7.10.

Labels:

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home