Original article link: Click to open the link
I recently re-installed the Samba server on Ubuntu and recorded it to avoid forgetting how to install it later.
1. Install the samba Software Package
Sudo apt-Get install samba
Sudo apt-Get install smbfs
2. Add users to Samba
Sudo smbpasswd-a username (username must already exist)
3. Modify/etc/samba/smb. conf
Change SECURITY = user to Security = Share
Add at the end of the document
[Share]
Path = path to be shared (it is best to use chmod to modify sudo chmod-r 777 folder name to share folder permissions)
Available = Yes
Browseable = Yes
Public = Yes
Writable = Yes
4. Restart samba
Sudo/etc/init. d/smbd restart
Original article link: Click to open the link
I recently re-installed the Samba server on Ubuntu and recorded it to avoid forgetting how to install it later.
1. Install the samba Software Package
Sudo apt-Get install samba
Sudo apt-Get install smbfs
2. Add users to Samba
Sudo smbpasswd-a username (username must already exist)
3. Modify/etc/samba/smb. conf
Change SECURITY = user to Security = Share
Add at the end of the document
[Share]
Path = path to be shared (it is best to use chmod to modify sudo chmod-r 777 folder name to share folder permissions)
Available = Yes
Browseable = Yes
Public = Yes
Writable = Yes
4. Restart samba
Sudo/etc/init. d/smbd restart