Create a Shared Network Folder on Mac and mount it on Kali Linux

Subba Lakshmi
3 min readJul 13, 2020


Start by creating a “sharing only” user account on the Mac OS. This allows for a secure way to share files over the network by allowing access to certain folders of your choice without having to share your admin credentials.

Create a sharing-only user account on Mac

  1. Go to System Preferences, then click Users & Groups.

2. Click the lock icon at the bottom of the pane, enter an administrator name and password, then click Unlock.

3. Click the Add button at the bottom of the list on the left.

4. Click the New Account pop-up menu, then choose Sharing Only.

5. Enter a name and password for the user.

6. Click Create User

Enable file sharing on Mac

  1. Go to System Preferences, then click Sharing. Click on the plus icon under Shared Folders to add a new shared folder or select a folder you would like to share.

2. Add the account we just created to the Users section and change the permission to Read & Write.

3. Choose Options, then make sure the Share files and folders using SMB option is checked. Under Windows File Sharing, the account we just created should be selected to access the folder.

Get Mac’s IP Address by:
1. Go to System Preferences and select Network. Select your current connected network then you can find the IP address of your computer.
2. Type the following in the terminal.

ifconfig | grep "inet " | grep -v | cut -d\  -f2

Mount the drive in Kali Linux

Enter the SMB path in the File Manager’s folder path. For the folder we just created, that would be smb://username/Shared Folder where username is the hostname or the IP address of Mac from the last step and Shared Folder is the drive or folder name that has to be accessed (smb is a program of samba distribution that allows interoperability between Linux/UNIX server and windows client)

Click on Registered User and enter the credentials of the sharing only MAC user account we created in step 1 and connect.

Now Kali Linux has been set up for use with the network shared folder created on the Mac.
You can also check using the findsmb command, it is a perl script that lists info about machines that respond to SMB name queries on the same subnet.



Subba Lakshmi

Full Stack Web Developer | Graduate student of MS in Computer Science at The University of Texas at Rio Grande Valley