To set up a shared directory on a Linux machine, you will need to perform the following steps:
mkdir
command. For example:mkdir /path/to/shared/directory
chmod
command. For example:chmod 755 /path/to/shared/directory
samba
configuration file. The file is usually located at /etc/samba/smb.conf
. Add the following lines to the file, replacing /path/to/shared/directory
with the actual path of the directory you want to share:[shared] path = /path/to/shared/directory browseable = yes writable = yes guest ok = yes
samba
service to apply the changes. You can do this using the systemctl
command. For example:systemctl restart smbd
\\<IP address of Linux machine>\shared