youtube-video

Samba Share for Beginners – Video

I noticed I have never posted a video in my blog. So, here is one that may help you setup Samba if you’re new to Samba Shares.

How to create Samba (Windows) shares in Linux. Step by step examples to create shares with and without authentication, as well as a network share RecycleBin.

Did you find this video useful?

Buy Ralpy a coffee :)

video related info

Set SMB user password:

~$ sudo smbpasswd -a user1

Map local accounts to smbusers:

~$ sudo nano /etc/samba/smbusers

Samba documentation:
https://www.samba.org/samba/docs/man/manpages-3/smb.conf.5.html

/etc/samba/smb.conf sample configuration:

#============== Global Settings ====================
[global]
workgroup = WORKGROUP
log file = /var/log/samba/log.%m
panic action = /usr/share/samba/panic-action %d
server string = File Server
netbios name = COMPUTER_NAME
security = user
encrypt passwords = true
username map = /etc/samba/smbusers
map to guest = bad user
guest account = nobody
dns proxy = no
force user = user1
force group = sambashare
# ============= Enable the recycle bin ==============
vfs object = recycle
recycle:repository = /home/user1/Shares/recyclebin/%U
recycle:touch = Yes
recycle:keeptree = Yes
recycle:versions = Yes
recycle:noversions = *.tmp,*.temp,*.o,*.obj,*.TMP,*.TEMP
recycle:exclude = *.tmp,*.temp,*.o,*.obj,~$*,*.~??,~*.*,*.TMP,*.TEMP,lock.*,.~lock.*,LOCK.*,*.lock,*.~lock,*.LNK,*.lnk,*.ldb
recycle:excludedir = /recyclebin,/tmp,/temp,/TMP,/TEMP
[RecycleBin]
path = /home/user1/Shares/recyclebin
browsable = no
public = no
writable = yes
#============== Share Definitions ===================
[Guests]
comment = Guest Network Share
path = /home/user1/Shares/guests
browsable = yes
guest ok = yes
writeable = yes
[homes]
comment = Home Directories
path = /home/%S
browseable = yes
valid users = %U
writable = yes
force user = %U
force group = %U
[Public]
comment = Public Users Share
path = /home/user1/Shares/public
valid users = %U
write list = %U
browsable = yes
guest ok = no
writable = yes
[Private]
comment = Private Share
path = /home/user1/Shares/private-share/
browsable = yes
guest ok = no
read list = @sambashare
write list = user1

[wp_ad_camp_5]

Related Post

Make DuckDuckGo Chrome’s default search engi... So, you want to deploy the search engine that doesn't track you as the default search engine for your users. Here is a quick How-To make DuckDuckGo Ch...
Fixing Subsonic intermittent playing after 5.2.1 r... I've been a Subsonic Media Streamer Premium user for years. Since Subsonic just works I've been lazy enough not to keep up with updates until recently...
Thunar Split View for Linux Lite and others Thunar, the default Xfce file manager, doesn't support split view. But thanks to Xfce user Román who decided to take this issue into his own hands, an...

Leave a Reply