≡ Menu

samba server

Samba: Linux Iptables Firewall Configuration

How do I configure iptables firewall under CentOS / Fedora / RHEL / Redhat Linux to allow access to the Samba server? How do I open TCP ports # 137, 138, 139 and 445 under Linux so that all Microsoft Windows machine can access files and printer on a Linux host?
[click to continue…]

Samba Restrict File Sharing To Particular Users or Network Addresses

All my local Linux user accounts will be able to log in to my Samba server and access share. How do I restrict access to particular users or network subnet such as
[click to continue…]

UNIX Samba: Make A Share Writable

How do I make a Samba share writable under UNIX / Linux operating systems, especially all home directories for respective users?
[click to continue…]

How to use Linux as file server

Q. How do I use Linux as file server? I have 50 Windows XP workstations and 30 Linux/UNIX workstations? I am using Fedora Core Linux 6.

A. For Windows XP workstations use samba server and for Linux/UNIX workstation use NFS server.

How do I use samba as file server?

Samba is a free software re-implementation of SMB/CIFS networking. Windows XP/2000 use samba as file server. It runs on both Linux and UNIX oses.

First install samba on Linux using yum command:
# yum install samba samba-client samba-common
# chkconfig smb --level 345 on
# chkconfig smb on
# /etc/init.d/smb start

Please refer samba configuration how to collection for configuration options.

How do I use NFS as file server?

Network File System (NFS), a protocol originally developed by Sun Microsystems in 1984. NFS server use to share files and directories from Linux system to rest of UNIX/Linux and Windows (using MS- UNIX services or third party tools) workstation.
First install NFS on Linux using yum command:
# yum install nfslock portmap nfs

NFS configuration steps

1. the server implements NFS daemon processes (running by default as nfsd) in order to make its data generically available to clients
2. the server configuration determines what to make available, exporting the names and parameters of directories (typically using the /etc/exports configuration file and the exportfs command)
3. the server security-administration ensures that it can recognize and approve validated clients
4. the server network configuration ensures that appropriate clients can negotiate with it through any firewall system
. the client machine requests access to exported data, typically by issuing a mount command
6. if all goes well, users on the client machine can then view and interact with mounted filesystems on the server within the parameters permitted

Please refer NFS configuration howto for more information.

What Ports Need To Be Open For Samba To Communicate With Other Windows/Linux Systems?

What ports need to be open for Samba to communicate with other windows/linux systems? I need to configure Linux firewall so I need the exact port TCP and UDP port numbers for SMB/CIFS networking protocol.
[click to continue…]