This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | Next revisionBoth sides next revision | ||
linux:samba [2022/05/19 11:06] – [Mount SAMBA device] Jan Forman | linux:samba [2023/06/10 23:18] – Jan Forman | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Active Directory Mode ====== | ||
+ | Insert AD name | ||
+ | < | ||
+ | sudo vi / | ||
+ | sudo vi /etc/hosts | ||
+ | </ | ||
+ | |||
+ | |||
+ | ====== Redhat Install ====== | ||
+ | < | ||
+ | |||
+ | ====== Enable startup ====== | ||
+ | < | ||
+ | systemctl enable nmb.service | ||
+ | systemctl restart smb.service | ||
+ | systemctl restart nmb.service | ||
+ | </ | ||
+ | |||
+ | ====== smb.conf ====== | ||
+ | < | ||
+ | [global] | ||
+ | workgroup = WINDOWS | ||
+ | server string = Samba Server Version %v | ||
+ | netbios name = SAMBA | ||
+ | log level = 1 | ||
+ | log file = / | ||
+ | max log size = 50 | ||
+ | security = user | ||
+ | local master = no | ||
+ | os level = 33 | ||
+ | preferred master = no | ||
+ | wins support = no | ||
+ | #====== connect to existing wins or enable wins support | ||
+ | wins server = 172.24.16.254 | ||
+ | wins proxy = yes | ||
+ | #====== | ||
+ | dns proxy = yes | ||
+ | map to guest = bad user | ||
+ | |||
+ | username map = / | ||
+ | |||
+ | use sendfile = 1 | ||
+ | deadtime = 10 | ||
+ | allocation roundup size = 10485760 | ||
+ | |||
+ | load printers = no | ||
+ | printing = bsd | ||
+ | printcap name = /dev/null | ||
+ | disable spoolss = yes | ||
+ | |||
+ | #====== Share Definitions | ||
+ | [public] | ||
+ | comment = Public | ||
+ | path = / | ||
+ | public = yes | ||
+ | writable = yes | ||
+ | printable = no | ||
+ | guest ok = yes | ||
+ | </ | ||
+ | |||
+ | ====== Add users ====== | ||
+ | smbpasswd -a < | ||
+ | |||
+ | ====== Samba users mapping to Linux ====== | ||
+ | / | ||
+ | < | ||
+ | linuxuser = sambaname | ||
+ | </ | ||
+ | |||
+ | ====== Mount SAMBA device ====== | ||
+ | /etc/fstab | ||
+ | < | ||
+ | |||
+ | ====== Mount SAMBA with older protocol ====== | ||
+ | < | ||
+ | mount -o vers=1.0 // | ||
+ | </ | ||
+ | |||