SAMBA SERVER 2.0 #server
To share a folder on a LAN using Samba on a Linux system, follow these steps: 1. **Install Samba**: If it's not already installed, you need to install Samba. Open a terminal and run: ```bash sudo apt update sudo apt install samba ``` 2. **Create a Directory to Share**: Create the directory you want to share, if it doesn't exist. For example: ```bash sudo mkdir -p /srv/samba/share sudo chmod 2775 /srv/samba/share sudo chown nobody:nogroup /srv/samba/share ``` 3. **Configure Samba**: Edit the Samba configuration file to add your share. Open the Samba configuration file in a text editor: ```bash sudo nano /etc/samba/smb.conf ``` Add the following configuration at the end of the file: ```ini [share] path = /srv/samba/share browseable = yes read only = no guest ok = yes create mask = 0660 directory mask = 2770 force user = nobody force group = nogroup ``` This configuration sets up a share called "sh
Comments
Post a Comment