💾 Archived View for darknesscode.xyz › linux › setup-samba.gmi captured on 2023-07-22 at 16:19:56. Gemini links have been rewritten to link to archived content

View Raw

More Information

⬅️ Previous capture (2021-12-05)

-=-=-=-=-=-=-

Install and setup Samba in Debian/Ubuntu

Make sure you system is update

sudo apt update && sudo apt dist-upgrade

Now install samba:

sudo apt-get install samba samba-common-bin

Set a password for your user in Samba:

sudo smbpasswd -a user_name

When is done, open smb.conf:

sudo nano /etc/samba/smb.conf

At the end of the file add this configuration with path of your folder:

[share] (Name to show in your network)
Comment = Shared folder (Short description of your folder)
Path = /share (Path of your folder /XXX/XXX/XXX)
Browseable = yes
Writeable = Yes
Only guest = no
Create mask = 0777
Directory mask = 0777
Public = yes
Guest ok = yes
Valid users = user_name
Read only = no

Save all you changes and restart samba:

sudo service smbd restart

----------

Home

Linux

Notes

MicroLog

----------

© DarknessCode