0% found this document useful (0 votes)
69 views7 pages

UNIX Enumeration Tools: (Samba)

Samba allows files and printers to be shared between Linux, Windows, and OS/X machines on a network. It uses the SMB protocol and requires creating Windows-compatible users on the Linux machine for authentication. Configuring Samba on Linux involves installing the software, enabling the SMB service, creating users, configuring shares and permissions, and testing connectivity with Windows machines. Command line tools like smbclient, nblookup, and rpcclient can be used to test connectivity to Samba shares.

Uploaded by

Dinuk Fernando
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
69 views7 pages

UNIX Enumeration Tools: (Samba)

Samba allows files and printers to be shared between Linux, Windows, and OS/X machines on a network. It uses the SMB protocol and requires creating Windows-compatible users on the Linux machine for authentication. Configuring Samba on Linux involves installing the software, enabling the SMB service, creating users, configuring shares and permissions, and testing connectivity with Windows machines. Command line tools like smbclient, nblookup, and rpcclient can be used to test connectivity to Samba shares.

Uploaded by

Dinuk Fernando
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 7

UNIX Enumeration Tools (Samba)

Samba is a tool that uses SMB protocol to share files and printers with Linux, OS/2and
Windows clients within a network. But as in Windows file or printer sharing we cannot
access files or printers directly, where it will authenticate the user. So when configuring
a samba file sharing on a Linux client, a network administrator must make sure to
create windows compatible users in the samba configured Linux client.

Configuring Samba

The easiest way to install a software package in Linux is to install using the third part
repositories. To do it we have to login as the “root”.

Configuring Samba using GUI

1. Assign an IP address to the Samba configured Linux client


2. To accept all the requests from other clients in the network, make the
Ethernet card in the samba server a trusted device by changing the “system-
config-firewall”.

1
3. Enabling the SMB service in the server
By using “system-config-service” we can enable the SMB service within the
Samba server. Or we can use “service smb start”

4. Creating Windows compatible users in the Samba server


To create Windows compatible users first we must create Linux users and
add them.

2
5. Configuring the Samba server setting
Use “system-config-samba” to go to the configuration panel

6. Adding the Samba server to the Windows workgroup : “mygroup”

3
7. Adding the users the will be using the SMB service
The users that were created can be added as the SMB users (user1, user2)

8. Selecting the directories need tho shared using the Samba

4
9. The users that have access to the directories will be added

10.Restart the SMB services using “service smb restart”

5
11.Test the Samba server
Access the samba shared folder within Windows

Using smbclient, nblookup and rpcclient tools


1. smbclient
sambclient utility provides services equal to ftp service to access SMB aor
CIFS resources on servers.

Identifying the services provided by the smbclient “smbclient –L [host-


name]”

6
This command returns a list of printers or directories that can be shared

2. The windows directory can be accessed

Establishing a connection with the shared directory

3. Transferring a file from the shared folder


Here we can access to the shared folder and transfer a file to our home
directory and verify the connectivity

You might also like