[Samba] smb panic when adding printer with apw

Thorsten Leiser t.leiser at synchron-is.de
Fri Jun 24 03:38:43 MDT 2011



Am 24.06.2011 11:05, schrieb Dermot:
> On 24 June 2011 09:48, Thorsten Leiser<t.leiser at synchron-is.de>  wrote:
>> Hi Dermot,
>>
>> here are the file permissions on /var/log/samba/log.smbd,
>> -rw-r--r-- 1 root root  434340 24. Jun 10:41 log.smbd
>> (all files in this directory have this permission)
>>
>> the parent directory ( /var/log/samba )
>> drwxr-x--- 3 root        adm     4096 24. Jun 08:07 samba
>>
>> the smbd is running as root user, but there are also some smbd childs
>> running with user rights.
>> --- snip
>> root     18677 17385  0 07:36 ?        00:00:01 /usr/sbin/smbd -D
>> root     18678 17385  0 07:36 ?        00:00:00 /usr/sbin/smbd -D
>> m028u032 18683 17385  0 07:39 ?        00:00:00 /usr/sbin/smbd -D
>> root     18684 17385  0 07:39 ?        00:00:01 /usr/sbin/smbd -D
>> root     18685 17385  0 07:39 ?        00:00:02 /usr/sbin/smbd -D
>> --- snap
>>
>> Am 24.06.2011 10:08, schrieb Dermot:
>>> On 24 June 2011 07:13, Thorsten Leiser<t.leiser at synchron-is.de>    wrote:
>>>> Hi,
>>>> [2011/06/24 07:47:56,  0] lib/debug.c:reopen_logs(663)
>>>>   Unable to open new log file /var/log/samba/log.smbd: Permission denied
>>>> [2011/06/24 07:47:56,  0] lib/debug.c:reopen_logs(663)
>>>>   Unable to open new log file /var/log/samba/log.smbd: Permission denied
>>>> [2011/06/24 07:47:56,  0] lib/debug.c:reopen_logs(663)
>>>>   Unable to open new log file /var/log/samba/log.smbd: Permission denied
>>>> [2011/06/24 07:47:56,  0] lib/fault.c:fault_report(40)
> Can you determine what the user process is? smbstatus perhaps? This
> error says that it wants to create a new log file. What does your
> smb.conf say about max log size? I am not very savy with smb printing
> but that message suggests that something wants to have write access
> either to the /var/log/samab directory or the log.smbd file and
> doesn't have it. There are a few tests you can do to see where the
> error lies. I would chmod the log.smbd file and see it that gets you
> round the error.
> Dp.

Hi Dermot,

> Can you determine what the user process is? smbstatus perhaps?
as long as the apw is opened, smbstatus says user "administrator". I 
controlled the pid with ps -ef and it said uid 1001. Also, smbd seems to 
run with normal user priviliges.

> I would chmod the log.smbd file and see it that gets you
> round the error.
I did so, but the smb panic occured again, but the error messages 
"Unable to open new log file /var/log/samba/log.smbd: Permission denied
" disappeared.
For a test i set the permissions for all files and subdirectories in 
/var/lib/samba to 777, but this didn't solve the error.
When the panic occurs, samba was still able to create the queue in cups, 
but the smbd died before associating the queue with the uploaded printer 
driver.

Regards

Thorsten

-- 

Thorsten Leiser
IT Systeme, Netze und Dienstleistungen

SYNCHRON Gesellschaft für betriebswirtschaftliche
Beratung und Informationssysteme mbH
Liebknechtstraße 50
70565 Stuttgart

Tel.: +49 (0) 711-7868-356
Fax:  +49 (0) 711-7868-446
Unable to open new log file /var/log/samba/log.smbd: Permission denied


www.synchron-is.de

Ein Unternehmen der SCHARR-Gruppe
www.scharr.de



Sitz der Gesellschaft: Stuttgart
Registergericht: Amtsgericht Stuttgart, HRB 8619
GF: Michael Schober

Bitte denken Sie an unsere Umwelt, bevor Sie diese E-Mail ausdrucken.

- - - - - - - - -

Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte Daten. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und vernichten Sie diese Mail. Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser Mail ist nicht gestattet.

This e-mail may contain confidential and/or privileged data. If you are not the intended recipient or have received this e-mail in error, please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the content in this e-mail is strictly forbidden.



More information about the samba mailing list