LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Samba shares suddenly requiring password? (https://www.linuxquestions.org/questions/linux-software-2/samba-shares-suddenly-requiring-password-886899/)

uhcafigdc 06-17-2011 10:08 AM

Samba shares suddenly requiring password?
 
The setup is that users can access the samba shares and read/write without entering a username/password.

Windows XP users today are suddenly prompted for username/password, and can't connect. No combination of user/pass seems to work.

Nothing in the smb.conf has changed recently. The shared folder still exists on the server and has the same permissions as before.

Here is the smb.conf:
Code:

[global]

        workgroup = workgroup
        netbios name = F1
        server string = J

        level2 oplocks = no
        oplocks = no

        hosts allow = 192.168.1. 127.
        load printers = no
        guest account = nobody
        log file = /var/log/samba/%m.log
        max log size = 50
       
        security = share
        encrypt passwords = false

        socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
       
       
[j]
        path = /home/j
        browseable = yes
        writeable = yes
        guest ok = yes
        public = yes

Here are some recent entries in /var/log/smbd.log:
Code:

[2011/06/17 06:40:34,  1] smbd/server.c:open_sockets_smbd(645)
  Reloading services after SIGHUP
[2011/06/17 07:59:58,  0] lib/util_sock.c:get_peer_addr_internal(1676)
  getpeername failed. Error was Transport endpoint is not connected
[2011/06/17 08:31:59,  0] lib/util_sock.c:get_peer_addr_internal(1676)
  getpeername failed. Error was Transport endpoint is not connected
[2011/06/17 10:39:57,  0] lib/util_sock.c:get_peer_addr_internal(1676)
  getpeername failed. Error was Transport endpoint is not connected

Here are some recent entries to __ffff_192.168.1.229.log:
Code:

[2011/06/16 16:58:38,  1] smbd/service.c:close_cnum(1409)
  __ffff_192.168.1.229 (::ffff:192.168.1.229) closed connection to service stations
[2011/06/17 09:22:34,  0] smbd/service.c:make_connection_snum(1160)
  '/home/j' does not exist or permission denied when connecting to [jobs] Error was Permission denied
[2011/06/17 09:23:05,  0] smbd/service.c:make_connection_snum(1160)
  '/home/j' does not exist or permission denied when connecting to [jobs] Error was Permission denied

Here are some recent entries to computer-29.log:
Code:

[2011/06/16 10:02:21,  0] smbd/nttrans.c:call_nt_transact_ioctl(2019)
  call_nt_transact_ioctl(0x900eb): Currently not implemented.
[2011/06/16 16:08:54,  1] smbd/service.c:close_cnum(1409)
  computer-29 (::ffff:192.168.1.229) closed connection to service stations
[2011/06/17 09:22:34,  1] smbd/service.c:make_connection_snum(1198)
  computer-29 (::ffff:192.168.1.229) connect to service stations initially as user nobody (uid=65534, gid=65534) (pid 25836)
[2011/06/17 09:24:32,  0] smbd/nttrans.c:call_nt_transact_ioctl(2019)
  call_nt_transact_ioctl(0x900eb): Currently not implemented.
[2011/06/17 09:45:16,  1] smbd/service.c:close_cnum(1409)
  computer-29 (::ffff:192.168.1.229) closed connection to service stations

Any ideas?

uhcafigdc 06-17-2011 10:15 AM

Fixed! A recent windows update kb2536276 breaks samba when "encrypt passwords = no" is set.

Solution is to set "encrypt passwords = yes"


All times are GMT -5. The time now is 12:13 PM.