User Tools

Site Tools


linux:samba

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

linux:samba [2019/09/13 10:57]
127.0.0.1 external edit
linux:samba [2022/05/19 11:06] (current)
Jan Forman [Mount SAMBA device]
Line 1: Line 1:
 +====== Redhat Install ======
 +<code>yum install samba samba-client samba-common</code>
 +
 +====== Enable startup ======
 +<code>systemctl enable smb.service
 +systemctl enable nmb.service
 +systemctl restart smb.service
 +systemctl restart nmb.service
 +</code>
 +
 +====== smb.conf ======
 +<code>
 +[global]
 +workgroup = WINDOWS
 +server string = Samba Server Version %v
 +netbios name = SAMBA
 +log level = 1
 +log file = /var/log/samba/log.%m
 +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 = /etc/samba/smbusers
 +
 +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 = /storage/public
 +public = yes
 +writable = yes
 +printable = no
 +guest ok = yes
 +</code>
 +
 +====== Add users ======
 +smbpasswd -a <linuxuser>
 +
 +====== Samba users mapping to Linux ======
 +/etc/samba/smbusers
 +<code>
 +linuxuser = sambaname
 +</code>
 +
 +====== Mount SAMBA device ======
 +/etc/fstab
 +<code>//172.24.16.20/backup_oracle /backup_oracle cifs _netdev,rw,username=USER,password=PASSWORD,file_mode=0640,dir_mode=0750,uid=oracle,gid=oinstall 0 0</code>
 +
 +====== Mount SAMBA with older protocol ======
 +<code>
 +mount -o vers=1.0 //x.x.x.x/share /mnt/samba
 +</code>
 +
  
linux/samba.txt · Last modified: 2022/05/19 11:06 by Jan Forman