Like the title. How do we create a shared folder in the terminal. Preferable a samba share for Windows. Right now I’m using thunar-shares-plugin but I would like to know a terminal alternative.
I would say, this way it should work for only your user account:
- copy the smb.conf to your home folder:
cp /etc/samba/smb.conf $HOME/smb.conf
- edit the file. Here is a example template for a share:
[<folder_name>] path = /home/<user_name>/<folder_name> available = yes valid users = <user_name> read only = no browsable = yes public = yes writable = yes
- Set a password for your user:
sudo smbpasswd -a <user_name>
- restart the samba service after editing the
sudo systemctl restart smb.service
Thank you. I will give that a test run when I can and let you know the result. So it looks like to create a share folder it needs to be made in the conf file.