1834944 Members
2189 Online
110071 Solutions
New Discussion

Re: samba

 
Sanjiv Sharma_1
Honored Contributor

samba

Hi All,

I have a J6000/HP-UX 10.20 with Samba 2.0.7 running in it.

It has been found that there are entries in /var/opt/samba/log.smb:
"[2003/10/15 17:12:48, 0] printing/pcap.c:(366)
Unable to open printcap file /etc/printcap for read!
[2003/10/15 17:12:48, 1] smbd/server.c:(641)
smbd version 2.0.7 started.
Copyright Andrew Tridgell 1992-1998
[2003/10/15 17:12:48, 0] printing/pcap.c:(366)
Unable to open printcap file /etc/printcap for read!
[2003/10/15 17:12:48, 1] smbd/server.c:(641)
smbd version 2.0.7 started.
Copyright Andrew Tridgell 1992-1998
[2003/10/15 17:12:48, 0] printing/pcap.c:(366)
Unable to open printcap file /etc/printcap for read!"

There is no printer configured in J6000 nor there is any file /etc/printcap. Why is there the message "Unable to open printcap file /etc/printcap for read!" What needs to be done to remove this message?

The log.smb file is also growing and I want to trim this file.

# cd /var/opt/samba
# cat /dev/null > log.smb

Will this help or is there some other procedure for it?

Thanks,
Everything is possible
3 REPLIES 3
T G Manikandan
Honored Contributor

Re: samba

Add this entry in the smb.conf "Global settings" section

printcap name = /etc/printcap


Restart your smbd.

T G Manikandan
Honored Contributor

Re: samba

Also post your smb.conf file
Michael Steele_2
Honored Contributor

Re: samba

Here are the basic commands of trouble shooting SAMBA:

1) "testparm smb.conf"
2) "ping BIGSERVER" from the PC and "ping ACLIENT" from the unix box.
3) "smbclient -L BIGSERVER"
4) "nmblookup -B BIGSERVER __SAMBA__" (* ip correct ? *)
5) "nmblookup -B ACLIENT '* (* ip correct ? *)
6) "nmblookup -d 2 '* (* broadcast OK ? *)
7) "smbclient //BIGSERVER/TMP". (* password ? *)
8) "net view \\BIGSERVER" from DOS (* shares listed ? *)
9) "net use x: \\BIGSERVER\TMP". (* password ? *)
10 ) "nmblookup -M TESTGROUP" (* test the workgroup *)
11 ) test browser
Support Fatherhood - Stop Family Law