New smbshare
You want to create a new SMB share!
To create a new SMB share, you'll need to follow these steps:
Windows:
- Open the File Explorer and navigate to the folder you want to share.
- Right-click on the folder and select "Properties".
- In the Properties window, click on the "Sharing" tab.
- Click on the "Share" button.
- In the "File Sharing" window, select the users or groups you want to grant access to.
- Choose the permission level (e.g., "Read/Write" or "Read Only").
- Click "Share" to create the share.
Linux (using Samba):
-
Install Samba if it's not already installed:
sudo apt-get install samba
(on Ubuntu-based systems) orsudo yum install samba
(on RHEL-based systems). -
Create a new directory for the share:
sudo mkdir /path/to/share
. -
Edit the Samba configuration file:
sudo nano /etc/samba/smb.conf
. -
Add the following lines to the end of the file:
[share_name] comment = My new share path = /path/to/share browseable = yes writable = yes force user = your_username
Replace
share_name
with the name you want to give your share,/path/to/share
with the actual path to the directory, andyour_username
with your actual username. -
Save and close the file.
-
Restart the Samba service:
sudo service samba restart
(on Ubuntu-based systems) orsudo systemctl restart samba
(on RHEL-based systems). -
You can now access the share by typing
smb://your_computer_name/share_name
in a file explorer or terminal.
Remember to replace your_computer_name
with the actual name of your computer and share_name
with the name you chose for your share.