Posts

Showing posts from May, 2023

Install samba on FreeBSD(on VMware Workstation) to share files with Window.

1 Search and Install Samba # pkg search samba # pkg install samba413 2 Adding user on FreeBSD # adduser Username: samba1 3 Samba Configuration Creating a directory to  share or note an existing directory that you would like shared. Change "samba1" to your user. # mkdir /smbshare # chown samba1 /smbshare # vim /usr/local/etc/smb4.conf Adding the text to the file smb4.conf (again, change "samba1" to your user). [global] workgroup = WORKGROUP server string = Samba Server Version %v netbios name = ExampleMachine wins support = Yes security = user passdb backend = tdbsam # Example: share /smbshare accessible only to "samba1" user [src] path = /smbshare valid users = samba1 writable = yes browsable = yes read only = no guest ok = no public = no create mask = 0666 directory mask = 0755 4 Add user to samba We need to create a specific samba user. This can be the same user as your system user, but still must be done to allow samba to have its own user. Note th