New smbshare

You want to create a new SMB share!

To create a new SMB share, you'll need to follow these steps:

Windows:

  1. Open the File Explorer and navigate to the folder you want to share.
  2. Right-click on the folder and select "Properties".
  3. In the Properties window, click on the "Sharing" tab.
  4. Click on the "Share" button.
  5. In the "File Sharing" window, select the users or groups you want to grant access to.
  6. Choose the permission level (e.g., "Read/Write" or "Read Only").
  7. Click "Share" to create the share.

Linux (using Samba):

  1. Install Samba if it's not already installed: sudo apt-get install samba (on Ubuntu-based systems) or sudo yum install samba (on RHEL-based systems).

  2. Create a new directory for the share: sudo mkdir /path/to/share.

  3. Edit the Samba configuration file: sudo nano /etc/samba/smb.conf.

  4. 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, and your_username with your actual username.

  5. Save and close the file.

  6. Restart the Samba service: sudo service samba restart (on Ubuntu-based systems) or sudo systemctl restart samba (on RHEL-based systems).

  7. 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.