Bug 6725 - PANIC: internal error (usershare related)
Summary: PANIC: internal error (usershare related)
Status: RESOLVED WORKSFORME
Alias: None
Product: Samba 3.4
Classification: Unclassified
Component: Client Tools (show other bugs)
Version: unspecified
Hardware: Other Linux
: P3 normal
Target Milestone: ---
Assignee: Volker Lendecke
QA Contact: Samba QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-09-14 13:53 UTC by Chuck Short (mail address dead)
Modified: 2010-09-20 23:36 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Chuck Short (mail address dead) 2009-09-14 13:53:48 UTC
Hi,

This was originally reported in launchpad:

http://bugs.launchpad.net/bugs/407297

If you have any questions please let me know.

Regards
chuck
Comment 1 Volker Lendecke 2009-09-19 10:24:22 UTC
Please upload your smb.conf and an ls -la of your usershare directory.

Volker
Comment 2 Roland Lezuo 2009-09-28 02:39:17 UTC
Hi I origianlly reported the bug at launchpad.bet

$ ls -la /var/lib/samba/usershares/
total 20
drwxrwx--T 2 root sambashare 4096 2009-09-22 08:39 .
drwxr-xr-x 5 root root 4096 2009-06-05 09:56 ..
-rw-r--r-- 1 lezuo lezuo 76 2009-07-15 15:48 _svns
-rw-r--r-- 1 lezuo lezuo 83 2009-09-22 08:39 us
-rw-r--r-- 1 lezuo lezuo 82 2009-06-10 14:27 workspace

The us share itself:

$ ls -la Desktop/us/
total 14028
drwxrwxrwx 24 lezuo lezuo 4096 2009-09-02 13:50 .
drwxr-xr-x 8 lezuo lezuo 4096 2009-08-28 10:44 ..
-rw-r--r-- 1 lezuo lezuo 20607 2009-09-01 17:29 aclocal.m4
drwxr-xr-x 6 lezuo lezuo 4096 2009-09-07 13:10 appl

and smb.conf:

[global]
   workgroup = WORKGROUP
   server string = %h server (Samba, Ubuntu)
   dns proxy = no
log level = 0
   log file = /var/log/samba/log.%m
   max log size = 1000
   syslog = 0
   panic action = /usr/share/samba/panic-action %d
   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
   usershare allow guests = yes
[homes]
   comment = Home Directories
   browseable = no
   read only = no
[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
Comment 3 Karolin Seeger 2009-12-29 04:05:46 UTC
Usershares need to be enabled by setting "usershare max shares = x". I don't see this parameter in the smb.conf. Does 'net usershare add testshare /home/test Testshare' work (after creating /home/test with owner "test")?
Comment 4 Karolin Seeger 2009-12-29 04:10:37 UTC
And please retry after setting "allocation roundup size = 0" for the Visual Studio share.
Comment 5 Volker Lendecke 2010-02-08 02:49:50 UTC
Please upload a debug level 10 log of this crash. If possible, can you run smbd under valgrind please for a test (it slows down smbd a LOT) and upload the output here?

Thanks,

Volker
Comment 6 Olaf Flebbe 2010-06-11 17:29:19 UTC
(In reply to comment #3)
> Usershares need to be enabled by setting "usershare max shares = x". I don't
> see this parameter in the smb.conf. Does 'net usershare add testshare
> /home/test Testshare' work (after creating /home/test with owner "test")?
> 

I resolve why it works at all:

Unfortunatly ubuntu has an very misleading patch integrated which changes the default from
usershare max shares = 0 to 
usershare max shares = 100 

I will ask them to revoke this patch since it seems both dangerous and unneccesary to me.

But nevertheless something very weird does happen here ... 
Comment 7 Volker Lendecke 2010-09-20 23:36:44 UTC
No feedback in almost half a year. Closing.

Volker