Re: Samba help

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



> -----Original Message-----
> From: CentOS [mailto:centos-bounces@xxxxxxxxxx] On Behalf Of david
> Sent: Tuesday, November 14, 2017 9:11 PM
> To: CentOS mailing list <centos@xxxxxxxxxx>
> Subject:  Samba help
> 
> Folks
> 
> I have a Centos7 system (SOFA) and want to install a Samba share
> named "STUFF" for the machines inside my home.  All users in my home
> have read access to the share, but only one user "me" has write
> permission.  The configuration below worked just fine when the Samba
> system was on Centos 6, but did not work under Centos 7.  The client
> machine is Windows 10.  I have changed all "private" information for
> this message.
> 
> The Centos 7 machine is running with SELINUX disabled, and
> effectively without firewall.
> 
> Windows network browsing finds the computer, but not the share.  (it
> used to find the share with Centos 6).
> 
> The server name is SOFA
> The share name is STUFF
> the Workgroup name is MYGROUP
> 
> The Linux account is "melinux"
> The logon name from windows is "me"
> 
> I have issued the command
>    smbpass -a me
>      <password-for-me>
>      <password-for-me>
> 
> smb.conf contains:
> ---------------------------------------------
> 
> # Samba Configuration
> 
> [global]
>   dns proxy                  = no
>   hosts allow                = 192.168. 127. 10. localhost
>   hosts deny                 = ALL
>   log file                   = /var/log/samba/%m.log
>   max log size               = 50
>   netbios name               = SOFA
>   printcap name              = /dev/null
>   printing                   = bsd
>   security                   = user
>   server string              = Samba %v on sofa
>   socket options             = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
>   username map               = /etc/samba/smbusers
>   winbind use default domain = no
>   workgroup                  = MYGROUP
> [STUFF]
>   browsable      = yes
>   case sensitive = no
>   comment        = STUFF on sofa
>   create mask    = 0755
>   directory mask = 0755
>   force user     = melinux
>   guest ok       = yes
>   path           = /home/samba-share
>   write list     = melinux
> 
> ----------------------------------------------
> 
> smbusers contains:
> ----------------------------------------------
> 
> melinux = me
> 
> ----------------------------------------------
> 
> Where have I gone wrong?  What changed from C6 to C7.  Any advice
> would be appreciated.
> 
> David

See if adding these under [global] helps in smb.conf:

server max protocol = SMB3
client signing = required
max protocol = SMB2
server signing = auto
client use spnego = no
client ntlmv2 auth = no
client ipc max protocol = NT1
client ipc signing = auto
idmap config * : backend = tdb

These are what I added when upgrading from C5's Samba 3 to C7's Samba 4.

Also, one of the recent Windows updates may have disabled SMBv1, here that caused the inability to 'browse' the server shares
(yet mapping a share still worked).

On Windows 7 to enable SMBv1 on the SMB client (workstations), run the following commands:

sc.exe config lanmanworkstation depend= bowser/mrxsmb10/mrxsmb20/nsi
sc.exe config mrxsmb10 start= auto

I don't know if they will work on Windows 10 or not.

Al
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
https://lists.centos.org/mailman/listinfo/centos



[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]


  Powered by Linux