Samba server
Samba provides file/print services for the SMB/CIFS protocol used in Windows-based networks. See the
official Ubuntu documentation
for more information about providing services in a Windows network. A
Samba server can be installed using the tasksel option during
installation of the Ubuntu
server from the LiveCD, or at any time using:
sudo tasksel install samba-server
- An alternative method of installation is:
sudo apt-get install samba samba-tools system-config-samba smbfs
- Note: samba-tools, system-config-samba, and smbfs are optional.
-
- Menu -> System -> Administration -> 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.
-
- 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/<folder_to_be_shared>
-
- (Replace username with your username and <folder_to_be_shared> with the folder you want to share)
-
- Press CTRL+X and then Y to save.
-
-
sudo service smbd restart
sudo service nmbd restart
-
-
- Note: Prior versions used:
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
Change your Workgroup
To change your Samba (Windows network) workgroup:
sudo nano /etc/samba/smb.conf
Look for the line:
workgroup = WORKGROUUP
and change the setting to whatever your LAN workgroup is.
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.
FTP Server
An FTP server allows the easy transfer of files between systems over the network. Clients such as
Filezilla can be used to interact with an FTP server. Also see these
FTP tips.
vsftpd
vsftpd is an FTP server available in (K)Ubuntu. For configuration information, see the
official Ubuntu documentation. Install:
sudo apt-get install vsftpd
proftpd
Proftpd is an FTP server available in (K)Ubuntu that can be used with either the MySQL or PostgreSQL database. Also see the
Ubuntu Community documentation. Install:
sudo apt-get install proftpd-basic
---------------------------------------
MAC Samba info
Tips
- When entering a URL, the name of the shared disk, volume, or
directory you are attempting to connect to (share name) must be
specified. You are not prompted for it.
- You cannot type spaces as part of a share name when connecting. In place of any space in the share name, use %20 .
- When troubleshooting a connection issue, you can ping the IP address of the other computer using Network Utility.
A successful ping verifies a TCP/IP connection between the two
computers. This is an important first troubleshooting step when there's
no response or a timeout for a connection attempt, since SMB connections
involving a Mac require TCP/IP. However, a successful ping does not
mean the SMB service is also available or working from the other
computer.
- Check Microsoft support resources for information about setting up
file sharing on your Microsoft Windows-based computer. These may include
Help files installed on your PC, or the Microsoft online Knowledge Base. For example, see this article for Windows 8 information: "Turn sharing on and off" in Windows 8 or Windows RT.
- When troubleshooting an SMB connection issue, use Console in the
Utilities folder. Console logs can help advanced users identify an
issue. Note that some log files may only appear when logged in as an
administrator.
- If you are connecting to a Windows SMB resource, check to see if
your firewall is blocking TCP ports 137, 138, 139 and 445. After trying
the above steps, you may perform advanced troubleshooting by inspecting
log entries in the Event Log of the Windows SMB resource (if you have
access to it), or the relevant logs in Console on your Mac.
- If you are connecting to Windows XP, make sure that the Internet
Connection Firewall settings on your Windows computer are not preventing
your connection. SMB uses ports 137, 138, 139, and 445. These ports
should be open on the Windows XP computer. This may require "Advanced"
configuration of the XP firewall.
- Mac OS X uses SMB only over the TCP/IP protocol, not the NetBEUI protocol.
- It may be necessary to contact your network administrator in some
situations in order to grant access to your Mac from the SMB resource,
or its host network configuration.
No comments:
Post a Comment