Linux setup shared directory

https://‮tual.www‬turi.com
Linux setup shared directory

To set up a shared directory on a Linux machine, you will need to perform the following steps:

  1. Create a directory that you want to share. This can be done using the mkdir command. For example:
mkdir /path/to/shared/directory
  1. Set the appropriate permissions on the directory. You will need to give read and execute permissions to the group and others to allow them to access the directory. You can do this using the chmod command. For example:
chmod 755 /path/to/shared/directory
  1. Add the directory to the list of shared directories in the 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
  1. Restart the samba service to apply the changes. You can do this using the systemctl command. For example:
systemctl restart smbd
  1. You should now be able to access the shared directory from other machines on the same network. On Windows, you can access it by entering the following address in the File Explorer: \\<IP address of Linux machine>\shared
Created Time:2017-10-30 10:17:42  Author:lautturi