[Bug 302092] Re: logging in immediately logs out again
*** This bug is a duplicate of bug 303458 *** https://bugs.launchpad.net/bugs/303458 I've got same problem. Ubuntu 8.10 (386) samba 3.2.3-1u cpu amd64 I've been playing swat and cups whet problem occurred. Now I've got libpam-smbpass switched off so I can log into my account. Tomorrow I will try to find what is wrong. -- logging in immediately logs out again https://bugs.launchpad.net/bugs/302092 You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to samba in ubuntu. -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 302092] Re: logging in immediately logs out again
*** This bug is a duplicate of bug 303458 *** https://bugs.launchpad.net/bugs/303458 ** This bug has been marked a duplicate of bug 303458 segfault in pam_smbpass.so -- logging in immediately logs out again https://bugs.launchpad.net/bugs/302092 You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to samba in ubuntu. -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 302092] Re: logging in immediately logs out again
This has now happened on a second of my laptops! -- logging in immediately logs out again https://bugs.launchpad.net/bugs/302092 You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to samba in ubuntu. -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 302092] Re: logging in immediately logs out again
This has now happened on two of my laptops! -- logging in immediately logs out again https://bugs.launchpad.net/bugs/302092 You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to samba in ubuntu. -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 302092] Re: logging in immediately logs out again
I noticed this behaviour after this two events: some days ago I shared a directory with samba. Everything went fine, except that having two networks I just couldn't see the shared directory in another windows machine, but that is another problem. Today I installed a new printer and connected to 127.0.0.1:631 (cups), and after that I could not sudo, so rebooted the computer. After reboot I couldn't login, so I restarted in recovery mode and then I realized that three files in /var/lib/samba had changed this day, so I renamed them and voilá, I could login again. The three files that were changed today were: /var/lib/share_info.tdb /var/lib/secrets.tdb /var/lib/passwd.tdb After login in successfully I checked /var/lib/samba and sectrets.tdb and passdb.tdb were recreated and the md5sum is different from the old ones. Share_info.tdb was not recreated, and seeing the date it seems that registry.tdb and ntprinters.tdb were touched or recreated again. This bug is nasty because you just can't login, and if that happens to someone without another computer to check the solution then is hard to fix it. -- logging in immediately logs out again https://bugs.launchpad.net/bugs/302092 You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to samba in ubuntu. -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
Re: [Bug 302092] Re: logging in immediately logs out again
On Tue, 2008-12-02 at 13:30 +, Thierry Carrez wrote: > That confirms that failure came from existing data in /var/lib/samba... I haven't had a change to test this yet but when I do, I will make a backup of /var/lib/samba so that the fault can be traced exactly. > Is the system on which you had the error a hardy system that was > upgraded ? If yes, did it start failing just after the upgrade ? If not, > did it start failing as soon as you installed libpam-smbpass ? In my case, the system was upgraded from hardy. I don't believe the failure started until a few days after and I don't think they would have installed libpam-smbpass manually. -- Sam Morris <[EMAIL PROTECTED]> -- logging in immediately logs out again https://bugs.launchpad.net/bugs/302092 You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to samba in ubuntu. -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
Re: [Bug 302092] Re: logging in immediately logs out again
Thierry Carrez wrote: > That confirms that failure came from existing data in /var/lib/samba... > > Is the system on which you had the error a hardy system that was > upgraded ? yes If yes, did it start failing just after the upgrade ? No If not, > did it start failing as soon as you installed libpam-smbpass ? > I don't know, sorry. Luca -- logging in immediately logs out again https://bugs.launchpad.net/bugs/302092 You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to samba in ubuntu. -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 302092] Re: logging in immediately logs out again
That confirms that failure came from existing data in /var/lib/samba... Is the system on which you had the error a hardy system that was upgraded ? If yes, did it start failing just after the upgrade ? If not, did it start failing as soon as you installed libpam-smbpass ? -- logging in immediately logs out again https://bugs.launchpad.net/bugs/302092 You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to samba in ubuntu. -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
Re: [Bug 302092] Re: logging in immediately logs out again
Thierry Carrez wrote: > Could you try purging samba samba-common and libpam-smbpass: > $ sudo apt-get purge samba libpam-smbpass samba-common > (If you changed Samba configuration files, make backups before you purge) > Then reinstall: > $ sudo apt-get install samba libpam-smbpass > > If it succeeeds, then something must have been wrong with existing > /var/lib/samba data... > I did it and it works (I don't have to modify the pam config file to log in). The strange thing is that I didn't even know that samba was installed on my system. Luca -- logging in immediately logs out again https://bugs.launchpad.net/bugs/302092 You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to samba in ubuntu. -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 302092] Re: logging in immediately logs out again
Could you try purging samba samba-common and libpam-smbpass: $ sudo apt-get purge samba libpam-smbpass samba-common (If you changed Samba configuration files, make backups before you purge) Then reinstall: $ sudo apt-get install samba libpam-smbpass If it succeeeds, then something must have been wrong with existing /var/lib/samba data... -- logging in immediately logs out again https://bugs.launchpad.net/bugs/302092 You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to samba in ubuntu. -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 302092] Re: logging in immediately logs out again
Indeed, that is how I worked around the problem. The system is running Intrepid. samba, samba-common and libpam-smbpass are all at version 2:3.2.3-1ubuntu3. $ find /var/lib/samba/ -ls 27669504 drwxr-xr-x 5 root root 4096 Nov 1 22:57 /var/lib/samba/ 27669904 -rw--- 1 root root 696 Jul 6 17:38 /var/lib/samba/ntforms.tdb 27669694 -rw--- 1 root root 4096 Jul 6 17:38 /var/lib/samba/group_mapping.tdb.upgraded 3662964 80 -rw--- 1 root root77824 Nov 1 22:57 /var/lib/samba/group_mapping.ldb 27669884 -rw--- 1 root root 4096 Jul 6 17:38 /var/lib/samba/ntdrivers.tdb 27669514 drwxr-xr-x 10 root root 4096 Oct 30 17:52 /var/lib/samba/printers 27634914 drwxr-xr-x 2 root root 4096 Oct 10 15:12 /var/lib/samba/printers/COLOR 27635154 drwxr-xr-x 2 root root 4096 Oct 10 15:12 /var/lib/samba/printers/W32PPC 27634934 drwxr-xr-x 2 root root 4096 Oct 10 15:12 /var/lib/samba/printers/W32ALPHA 27669624 drwxr-xr-x 2 root root 4096 Jun 30 16:56 /var/lib/samba/printers/WIN40 27635164 drwxr-xr-x 2 root root 4096 Oct 10 15:12 /var/lib/samba/printers/x64 27634924 drwxr-xr-x 2 root root 4096 Oct 10 15:12 /var/lib/samba/printers/IA64 27669614 drwxr-xr-x 2 root root 4096 Jun 30 16:56 /var/lib/samba/printers/W32X86 27634944 drwxr-xr-x 2 root root 4096 Oct 10 15:12 /var/lib/samba/printers/W32MIPS 27634974 -rw-r--r-- 1 root root 4096 Aug 9 21:26 /var/lib/samba/winbindd_idmap.tdb 2766975 36 -rw--- 1 root root36864 Nov 25 10:13 /var/lib/samba/registry.tdb 27669678 -rw--- 1 root root 8192 Nov 25 16:06 /var/lib/samba/secrets.tdb 27669764 drwxr-xr-x 2 root root 4096 Jul 6 17:38 /var/lib/samba/perfmon 27669704 -rw--- 1 root root 4096 Oct 30 17:31 /var/lib/samba/account_policy.tdb 2766947 20 -rw--- 1 root root20480 Nov 25 15:25 /var/lib/samba/share_info.tdb 2766989 20 -rw--- 1 root root20480 Nov 25 10:13 /var/lib/samba/ntprinters.tdb 2766968 12 -rw--- 1 root root12288 Nov 25 16:06 /var/lib/samba/passdb.tdb 27669714 drwxrwx--T 2 root sambashare 4096 Nov 17 14:33 /var/lib/samba/usershares 27634894 -rw-r--r-- 1 theuser theuser102 Nov 17 14:33 /var/lib/samba/usershares/somefile -- logging in immediately logs out again https://bugs.launchpad.net/bugs/302092 You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to samba in ubuntu. -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 302092] Re: logging in immediately logs out again
I have the same problem on Intrepid, with samba version: 2:3.2.3-1ubuntu3.3. I quickly fixed it (thanks to a colleague) by commenting out the line # auth optionalpam_smbpass.so migrate from the file /etc/pam.d/common-auth ** Changed in: samba (Ubuntu) Status: Incomplete => Confirmed -- logging in immediately logs out again https://bugs.launchpad.net/bugs/302092 You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to samba in ubuntu. -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 302092] Re: logging in immediately logs out again
Could you please indicate: - which Ubuntu release you're running - the versions of the samba, samba-common and libpam-smbpass packages you use (if they are installed) - do you have a /var/lib/samba directory and if yes, what files does it contain Thanks ** Changed in: samba (Ubuntu) Status: New => Incomplete -- logging in immediately logs out again https://bugs.launchpad.net/bugs/302092 You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to samba in ubuntu. -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs