[Bug 526659] Re: nmbd fails to start at boot time

2010-04-04 Thread Sam Morris
*** This bug is a duplicate of bug 523868 ***
https://bugs.launchpad.net/bugs/523868

Duplicate of bug 462169?

-- 
nmbd fails to start at boot time
https://bugs.launchpad.net/bugs/526659
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 361066] [NEW] Difficult to share external hard drives

2009-04-14 Thread Sam Morris
Public bug reported:

A user found it hard to share files on an external hard drive. Although
it is not clear which package to file the bug against, I guess samba is
a reasonable starting point.

The user wanted to share files on an external usb hard drive. nautilus-
share made that part easy, except that when I tried to access the share,
I got a not-very-helpful generic error message from nautilus.

So I tried to use smbclient directly, and got only
NT_STATUS_BAD_NETWORK_NAME errors, even though 'smbclient -L' revealed
the share existing normally.

After checking the samba log on the user's laptop it appeared that the
shared path (/media/USB-DISK) did not exist! But it certainly did.
Eventually I realised that the problem was that the 'nobody' user could
not access /media/USB-DISK because hal's default policy is to mount
disks so that they are only readable by the mounting user.

So the next step was to add the mount options 'fmask=111,dmask=000' to
the volume, which was ok to do in nautilus, and then remount the disk.
But I still got NT_STATUS_BAD_NETWORK_NAME errors on the client. I
thought that maybe I would have to restart samba to persuade it to try
and look in /media/USB-DISK again, but that didn't work--and then, the
share disappeared from the output of smblcient -L entirely!

At this point I ran 'net usershare list' on the server and got the
following output:

info_fn: file /var/lib/samba/usershares/blah is not a well formed usershare 
file.
info_fn: Error was Path not allowed.

Hm, not very clear. At this point I gave up and began to write this bug
report.

Meanwhile, my user rebooted, and then examined the share properties in
nautilus. Now, they got an error saying that the share would not work
because 'usershare owner only' needed to be set to false. After changing
the option and restarting samba, I was then able to access the share.
Phew!

So I think there are a couple of different bugs here:

 1. Unclear error messages from samba if it is unable to access a shared 
directory
 2. No warning from nautilus-share if samba can't access a shared directory
 3. nautilus-share did not recognise that the situation had changed and did not 
present the useful message until the user had restarted

** Affects: samba (Ubuntu)
 Importance: Undecided
 Status: New

-- 
Difficult to share external hard drives
https://bugs.launchpad.net/bugs/361066
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 303458] Re: segfault in pam_smbpass.so

2009-03-27 Thread Sam Morris
I found that the corrupted secrets.tdb prevented samba from starting:

[2009/03/27 12:16:44,  0] smbd/server.c:main(1213)
  smbd version 3.2.3 started.
  Copyright Andrew Tridgell and the Samba Team 1992-2008
[2009/03/27 12:16:44,  0] lib/util_tdb.c:tdb_wrap_log(886)
  tdb(/var/lib/samba/secrets.tdb): transaction_read: failed at off=1601070448 
len=24
[2009/03/27 12:16:44,  0] lib/util_tdb.c:tdb_wrap_log(886)
  tdb(/var/lib/samba/secrets.tdb): transaction_read: failed at off=1601070448 
len=24
[2009/03/27 12:16:44,  0] lib/util_tdb.c:tdb_wrap_log(886)
  tdb(/var/lib/samba/secrets.tdb): transaction_read: failed at off=1601070448 
len=24
[2009/03/27 12:16:44,  0] lib/util_tdb.c:tdb_wrap_log(886)
  tdb(/var/lib/samba/secrets.tdb): transaction_read: failed at off=1601070448 
len=24
[2009/03/27 12:16:44,  0] lib/util_tdb.c:tdb_wrap_log(886)
  tdb(/var/lib/samba/secrets.tdb): transaction_read: failed at off=1650750572 
len=24
[2009/03/27 12:16:44,  0] passdb/machine_sid.c:pdb_generate_sam_sid(166)
  pdb_generate_sam_sid: Failed to store generated machine SID.
[2009/03/27 12:16:44,  0] lib/util.c:smb_panic(1663)
  PANIC (pid 28036): could not generate a machine SID
[2009/03/27 12:16:44,  0] lib/util.c:log_stack_trace(1767)
  BACKTRACE: 6 stack frames:
   #0 /usr/sbin/smbd(log_stack_trace+0x2d) [0xb7bc542c]
   #1 /usr/sbin/smbd(smb_panic+0x80) [0xb7bc5589]
   #2 /usr/sbin/smbd(get_global_sam_sid+0x6f3) [0xb7acc257]
   #3 /usr/sbin/smbd(main+0x9f7) [0xb7a65530]
   #4 /lib/tls/i686/cmov/libc.so.6(__libc_start_main+0xe5) [0xb757f685]
   #5 /usr/sbin/smbd [0xb7a62af1]
[2009/03/27 12:16:44,  0] lib/util.c:smb_panic(1668)
  smb_panic(): calling panic action [/usr/share/samba/panic-action 28036]
[2009/03/27 12:16:44,  0] lib/util.c:smb_panic(1676)
  smb_panic(): action returned status 0
[2009/03/27 12:16:44,  0] lib/fault.c:dump_core(201)
  dumping core in /var/log/samba/cores/smbd

I deleted secrets.tdb and the segfault went away. That was OK for me
because I had also purged libpam-smbpass and I am using security = share
for now anyway. :)

-- 
segfault in pam_smbpass.so
https://bugs.launchpad.net/bugs/303458
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 303458] Re: segfault in pam_smbpass.so

2009-03-22 Thread Sam Morris
Can we *please* get some triage on this bug? It has now made three
laptops where I work inoperable to those who do not know to disable the
pam_smpass module.

-- 
segfault in pam_smbpass.so
https://bugs.launchpad.net/bugs/303458
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 303458] Re: segfault in pam_smbpass.so

2009-02-10 Thread Sam Morris
I see the same log messages in secrets.tdb on my affected machines as
well.

-- 
segfault in pam_smbpass.so
https://bugs.launchpad.net/bugs/303458
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 303458] Re: segfault in pam_smbpass.so

2009-01-16 Thread Sam Morris
Should this be merged with #302092?

-- 
segfault in pam_smbpass.so
https://bugs.launchpad.net/bugs/303458
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

2008-12-02 Thread Sam Morris
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


[Bug 302092] Re: logging in immediately logs out again

2008-11-27 Thread Sam Morris
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] [NEW] logging in immediately logs out again

2008-11-25 Thread Sam Morris
Public bug reported:

Logging in via GDM, or login results in the user immediately being
logged out again without any error being displayed.

I booted up in safe mode, and from a root shell ran login(8). If I
logged in there, I saw a segmentation fault error. This does not appear
if I boot up normally.

I finally noticed many of the following kernel messages being logged:

kernel: login[8182]: segfault at 0 ip b7c45abb sp bfc5e9c0 error 4 in
pam_smbpass.so[b7be9000+12a000]

debsums says the checksums of the files in libpam-smbpass are fine.

** Affects: samba (Ubuntu)
 Importance: Undecided
 Status: New

-- 
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