Tuesday, May 26, 2009

NFS Samba Sharing

NFS is the default networking protocol for network file sharing in *nix systems (including Ubuntu Linux).
Samba File Sharing
Samba is a networking protocol that allows compatibility with Windows-based networks.
· Install Samba:
sudo apt-get install samba samba-tools system-config-samba
Note: samba-tools and system-config-samba are optional.
· Modify Samba settings.
· Method 1:
System -> Administration -> Advanced -> Samba
(Note: this is available only if you installed system-config-samba.)
It is recommended that your user be a member of the sambashare group, as well.
· Method 2:
Enable File Sharing Server With User Login (Very Reliable Method)
Do the following on the machine that has the files to be shared:
· Add current user to Samba:
sudo smbpasswd -a username
(replacing username with your login username)
· Open the samba config file:
sudo nano /etc/samba/smb.conf
· Add the directories to be added (right at the end) in the following format:
[Pictures]
path = /home/username/
(Replace username with your username and with the folder you want to share)
Press CTRL+X and then Y to save.
· Restart Samba
sudo /etc/init.d/samba restart
· On Windows access the folder in the following format in Windows Explorer:
\\192.168.x.x
(replace 192.168.x.x with the actual IP address of your server which is serving the folder)
· On Linux type the following in Konqueror or Nautilus:
smb://192.168.x.x
(replace 192.168.x.x with the actual IP address of your server serving the folder)
Note: If you use Sharing in KDE's System Settings panel, be aware that there is a small bug, reported here. In brief, you need to comment out/delete any instances of these two lines in /etc/smb.conf :
case sensitive
msdfs proxy
Recognizing Win98 machines
Microsoft networking is extremely quirky. To enable recognition of PCs with Windows 98, edit your Samba configuration file:
sudo nano /etc/samba/smb.conf
Then add the following lines to the file:
[global]
# THE LANMAN FIX
client lanman auth = yes
client ntlmv2 auth = no

Integrating into Mac OS X Network

See this guide for information on integrating Ubuntu into an existing Mac OS X Appletalk network.

No comments:

Post a Comment