Can't connect to Samba share after reinstall


Jay Sheridan

I have a home file server on which I recently reinstalled the OS. I replaced the 32bit Ubuntu Server 10.04.2 with 10.04.3 64bit due to hardware upgrade. I've copied the previous Samba configuration, recreated the shared user, and made sure the permissions on the shared directories on the other disks are still intact. I have an XP and a Win7 machine. Both can see the file server, but neither can access the share. If I go to \\Serverthe Windows machine , it prompts for username/password and seems to accept the connection. If I go to \\Server\Sharethe next one it will ask for user/pass again and will not authenticate.

The network settings on the Windows computer have not changed. Is there possibly some other configuration missing from the server? What else could be wrong?

Troubleshooting: I found the logs as suggested. Both smbd and nmbd are running. In the logs of the windows machine there are a lot of lines like this when trying to connect.

[2011/11/07 07:23:53,  1] smbd/service.c:676(make_connection_snum)
  create_connection_server_info failed: NT_STATUS_ACCESS_DENIED

This is obviously the problem, but I don't know why this is happening. The user and pass I'm using are fine and working fine before the upgrade. I did find this in log.winbindd-idmap:

[2011/11/07 07:14:12,  1] winbindd/idmap.c:321(idmap_init_domain)
  idmap initialization returned NT_STATUS_UNSUCCESSFUL
[2011/11/07 07:23:40,  0] winbindd/idmap.c:201(smb_register_idmap_alloc)
  idmap_alloc module tdb already registered!
[2011/11/07 07:23:40,  0] winbindd/idmap.c:149(smb_register_idmap)
  Idmap module passdb already registered!
[2011/11/07 07:23:40,  0] winbindd/idmap.c:149(smb_register_idmap)
  Idmap module nss already registered!
[2011/11/07 07:23:40,  1] winbindd/idmap_tdb.c:214(idmap_tdb_load_ranges)
  idmap uid missing
[2011/11/07 07:23:40,  0] winbindd/idmap_tdb.c:287(idmap_tdb_open_db)
  Upgrade of IDMAP_VERSION from -1 to 2 is not possible with incomplete configur
ation
[2011/11/07 07:23:40,  1] winbindd/idmap.c:321(idmap_init_domain)
  idmap initialization returned NT_STATUS_UNSUCCESSFUL

log.smbd

[2011/11/06 20:01:29,  0] smbd/server.c:1069(main)
  smbd version 3.4.7 started.
  Copyright Andrew Tridgell and the Samba Team 1992-2009
[2011/11/06 20:01:29,  0] printing/print_cups.c:103(cups_connect)
  Unable to connect to CUPS server localhost:631 - Connection refused
[2011/11/06 20:01:29,  0] printing/print_cups.c:103(cups_connect)
  Unable to connect to CUPS server localhost:631 - Connection refused
[2011/11/06 20:01:29,  0] smbd/server.c:1115(main)
  standard input is not a socket, assuming -D option

log.nmbd

[2011/11/06 13:40:55,  0] nmbd/nmbd.c:854(main)
  nmbd version 3.4.7 started.
  Copyright Andrew Tridgell and the Samba Team 1992-2009

smb.conf, most of which is stock

[global]
   workgroup = MyGroup   # edited
   server string = %h server (Samba, Ubuntu)
   dns proxy = no
   use sendfile = yes   # edited
   log file = /var/log/samba/log.%m
   max log size = 1000
   syslog = 0
   panic action = /usr/share/samba/panic-action %d
   security = user   # edited
   encrypt passwords = true
   passdb backend = tdbsam
   obey pam restrictions = yes
   unix password sync = yes
   passwd program = /usr/bin/passwd %u
   passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
   pam password change = yes
   map to guest = bad user
   guest account = myshareuser   # edited
   usershare allow guests = yes

[printers]
   comment = All Printers
   browseable = no
   path = /var/spool/samba
   printable = yes
   guest ok = no
   read only = yes
   create mask = 0700

[print$]
   comment = Printer Drivers
   path = /var/lib/samba/printers
   browseable = yes
   read only = yes
   guest ok = no

# added
[share]
path = /mnt/storage/share
force user = myshareuser
force group = myshareuser
read only = No
create mask = 0777
directory mask = 0777
guest only = No
guest ok = No

[backup]
path = /mnt/storage/backup
force user = myshareuser
force group = myshareuser
read only = No
create mask = 0777
directory mask = 0777
guest only = No
guest ok = No
David

Probably a corrupt passdb.tdb file. Can I add users if I remove it and restart Samba?

Related


Can't connect to Samba share after reinstall

Jay Sheridan I have a home file server on which I recently reinstalled the OS. I replaced the 32bit Ubuntu Server 10.04.2 with 10.04.3 64bit due to hardware upgrade. I've copied the previous Samba configuration, recreated the shared user, and made sure the per

Can't connect to Samba share after reinstall

Jay Sheridan I have a home file server on which I recently reinstalled the OS. I replaced the 32bit Ubuntu Server 10.04.2 with 10.04.3 64bit due to hardware upgrade. I've copied the previous Samba configuration, recreated the shared user, and made sure the per

Can't connect to Samba share via OpenVPN on public network

Ryan I have a Windows 10 laptop I take with me and sometimes I need to access files at home. For this, I set up an OpenVPN server through which I usually access my shares. I'm using the built in "map network drive" feature to try to access servers located at 1

Can't connect to Samba share running in Linux server from MacOS

Rakesh Champapa ladies and gentlemen, I hope someone here can point me in the right direction for the problem I'm facing. I did try all possible options on internet forums with no luck. I am trying to connect to a samba share running on a headless server runni

Can't access Samba share

gimmick I have three shared folders in my local home directory, that is, on /home/me/ on my Ubuntu desktop. All of these are set using "Share Options" in Nautilus' right-click menu. The standard Music and Videos folders are configured the same: the "Guest Acce

Can't log in to samba share

Eddie I recently reinstalled ubuntu on my laptop and can no longer log into the samba share on the server. It works on a Windows machine and it works fine on a laptop, then reinstall the OS. I set it to guest access and it still doesn't let me in, I don't know

Can't access Samba share

gimmick I have three shared folders in my local home directory, that is, on /home/me/ on my Ubuntu desktop. All of these are set using "Share Options" in Nautilus' right-click menu. The standard Music and Videos folders are configured the same: the "Guest Acce

Can't access Samba share

gimmick I have three shared folders in my local home directory, that is, on /home/me/ on my Ubuntu desktop. All of these are set using "Share Options" in Nautilus' right-click menu. The standard Music and Videos folders are configured the same: the "Guest acce

I can't log into my Samba share

television I've been using samba for years without any issues, I've configured some shares that won't ask for a password (guest is ok)...Unfortunately I've updated the packages on the server (Ubuntu 14.04.4 TLS ), after that I can no longer access them, it kee

I can't log into my Samba share

television I've been using samba for years without any issues, I've configured some shares that won't ask for a password (guest is ok)...Unfortunately I've updated the packages on the server (Ubuntu 14.04.4 TLS ), after that I can no longer access them, it kee

Can't access windows share via samba

shadow warrior I can't access a windows machine via samba service in Ubuntu 16.04. I uninstalled and reinstalled the samba service as follows: sudo apt-get remove samba* sudo apt-get purge samba* After doing this, I executed: sudo apt install samba samba-comm

Can't access samba share, but visible in network

Bishwanath Das In Windows it asks for username and password, while in Ubuntu it asks for username, domain and password. I entered root and local user passwords and it says "cannot access". #======================= Global Settings ======================= [glob

Can't access Samba share on other LAN

username I have two different LANs in my home network, 192.168.0.1 (modem/switch) and 192.168.1.1 (router). The switch is connected to the modem and it has access to my PC, the 192.168.0.0/24 range. There is also a router attached to the modem that gives wirel

Can't access windows share via samba

shadow warrior I can't access a windows machine via samba service in Ubuntu 16.04. I uninstalled and reinstalled the samba service as follows: sudo apt-get remove samba* sudo apt-get purge samba* After doing this, I executed: sudo apt install samba samba-comm

I can't log into my Samba share

television I've been using samba for years without any issues, I've configured some shares that won't ask for a password (guest is ok)...Unfortunately, I've updated the packages on the server (Ubuntu 14.04.4 TLS ), after that I can no longer access them, it ke

I can't log into my Samba share

television I've been using samba for years without any issues, I've configured some shares that won't ask for a password (guest is ok)...Unfortunately, I've updated the packages on the server (Ubuntu 14.04.4 TLS ), after that I can no longer access them, it ke

Can't access samba share, but visible in network

Bishwanath Das In Windows it asks for username and password, while in Ubuntu it asks for username, domain and password. I entered root and local user passwords and it says "cannot access". #======================= Global Settings ======================= [glob

Can't access Samba share on other LAN

username I have two different LANs in my home network, 192.168.0.1 (modem/switch) and 192.168.1.1 (router). The switch is connected to the modem and it has access to my PC, the 192.168.0.0/24 range. There is also a router attached to the modem that gives wirel

I can't log into my Samba share

television I've been using samba for years without any issues, I've configured some shares that won't ask for a password (guest is ok)...Unfortunately, I've updated the packages on the server (Ubuntu 14.04.4 TLS ), after that I can no longer access them, it ke

Can't access windows share via samba

shadow warrior I can't access a windows machine via samba service in Ubuntu 16.04. I uninstalled and reinstalled the samba service as follows: sudo apt-get remove samba* sudo apt-get purge samba* After doing this, I executed: sudo apt install samba samba-comm

Samba: Can access share from UNC but can't browse to it

yknivag Background: Small home network that includes a media server that doubles as a NAS. The server runs both the smbd and nmbd samba components with the intention of running it as a workgroup rather than a domain (there aren't enough machines to make a doma

Samba: Can access share from UNC but can't browse to it

yknivag Background: Small home network that includes a media server that doubles as a NAS. The server runs both the smbd and nmbd samba components with the intention of running it as a workgroup rather than a domain (there aren't enough machines to make a doma

Samba share: Guest login doesn't work after Wheezy -> Jessie

muffin boy When I'm still using Wheezy, I can access Samba shares on the LAN with no problem. But after updating to Jessie, both Windows and Android phones give me: SmbAuthException: Login failed I still use the same smb.conf as before: [global] workgroup = HO

Samba share: Guest login doesn't work after Wheezy -> Jessie

muffin boy When I'm still using Wheezy, I can access Samba shares on the LAN with no problem. But after updating to Jessie, both Windows and Android phones give me: SmbAuthException: Login failed I still use the same smb.conf as before: [global] workgroup = HO

Can't map Windows 7 to Ubuntu 16.04 Samba share

Doug Air When I do Windows 7 > File Explorer > Map network drive to my share: \10.0.0.24\home\Ubuntu, I get the following error: Windows cannot access.. Windows 7 can ping Ubuntu. Here's how I set up samba on Ubuntu: sudo apt-get install samba appended: [Nitr

Can't access HDD Raspberry Pi Samba share

Robin Dijkhof I have a raspberry pi 2 and an old hard drive, so I want to create a samba share for this old hard drive. I mounted my HDD on /media/usb with ntfs-3g and it worked fine. I added this to the smb.conf file: [smb] path = /media/usb available

Can't write to Samba NTFS share from Windows7

mojbrod I've been trying to get Windows 7 to successfully write to a samba share mapped to an NTFS formatted USB disk for the past 3 hours. I can access the mount point from the Ubuntu server itself without any issues, but no matter how I install it, I always