Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Samba problem

Status
Not open for further replies.

khalidaaa

Technical User
Jan 19, 2006
2,323
BH
Hi all,

I've installed Samba on an AIX machine but i couldn't start the smbd daemon to be able to share files with windows machines

the error i get is this:

i used truss command to test why this is happening and that's the output:

(The output is too long so i just copied few lines)

Code:
getgidx(1)                                      = 0
getgidx(2)                                      = 0
setgidx(1, 0)                                   = 0
getgidx(1)                                      = 0
getgidx(1)                                      = 0
getgidx(2)                                      = 0
umask(18)                                       = 0
open("/opt/freeware/var/log.smbd", 0400000411)  = 4
klseek(4, 0, 0, 0x00000002)                     = 0
kioctl(4, 22528, 0x00000000, 0x00000000)        Err#25 ENOTTY
umask(0)                                        = 18
getuidx(1)                                      = 0
kwrite(4, " [", 1)                              = 1
kwrite(4, " 2 0 0 6 / 0 3 / 1 5   1".., 19)     = 19
kwrite(4, " ,  ", 2)                            = 2
kwrite(4, " 0", 1)                              = 1
kwrite(4, " ]  ", 2)                            = 2
kwrite(4, " s m b d / s e r v e r .".., 13)     = 13
kwrite(4, " :", 1)                              = 1
kwrite(4, " m a i n", 4)                        = 4
kwrite(4, " (", 1)                              = 1
kwrite(4, " 7 0 7", 3)                          = 3
kwrite(4, " )\n", 2)                            = 2

kfcntl(4, F_GETFL, 0x2FF22FFC)                  = 67108873
getuidx(1)                                      = 0
kwrite(4, "     s m b d   v e r s i".., 30)     = 30
kfcntl(4, F_GETFL, 0x2FF22FFC)                  = 67108873
getuidx(1)                                      = 0
kwrite(4, "     C o p y r i g h t  ".., 57)     = 57
kfcntl(4, F_GETFL, 0x2FF22FFC)                  = 67108873
umask(18)                                       = 0
open("/opt/freeware/var/log.smbd", 0400000411)  = 5
klseek(5, 0, 0, 0x00000002)                     = 0
kioctl(5, 22528, 0x00000000, 0x00000000)        Err#25 ENOTTY
close(4)                                        = 0
umask(0)                                        = 18
statx("/etc/smb.conf", 0x2FF21CD0, 128, 010)    = 0
open("/etc/smb.conf", 0400000000)               = 4
fstatx(4, 0x2FF21C00, 128, 010)                 = 0
kread(4, " #   S a m b a   c o n f".., 949)     = 949
close(4)                                        = 0
open("/etc/qconfig", 0400000000)                = 4
kioctl(4, 22528, 0x00000000, 0x00000000)        Err#25 ENOTTY
kioctl(4, 22528, 0x00000000, 0x00000000)        Err#25 ENOTTY
kread(4, " *   @ ( # ) 3 3\t 1 . 6".., 4096)    = 1651
kread(4, " *   @ ( # ) 3 3\t 1 . 6".., 4096)    = 0

close(4)                                        = 0
statx("", 0x2FF21D30, 128, 010)                 Err#2  ENOENT
umask(18)                                       = 0
open("/var/samba/log/log.smbd", 0400000411)     = 4
klseek(4, 0, 0, 0x00000002)                     = 0
kioctl(4, 22528, 0x00000000, 0x00000000)        Err#25 ENOTTY
close(5)                                        = 0
umask(0)                                        = 18
statx("/etc/smb.conf", 0x2FF218E0, 128, 010)    = 0
umask(18)                                       = 0
open("/var/samba/log/log.smbd", 0400000411)     = 5
klseek(5, 0, 0, 0x00000002)                     = 0
kioctl(5, 22528, 0x00000000, 0x00000000)        Err#25 ENOTTY
close(4)                                        = 0
umask(0)                                        = 18
socket(2, 2, 0)                                 = 4
kioctl(4, -1073190587, 0x2FF1F410, 0x00000000)  = 0
kioctl(4, -1071093471, 0x2FF1F418, 0x00000000)  = 0
kioctl(4, -1071093487, 0x2FF1F418, 0x00000000)  = 0
kioctl(4, -1071093467, 0x2FF1F418, 0x00000000)  = 0
kioctl(4, -1071093471, 0x2FF1F4A8, 0x00000000)  = 0
kioctl(4, -1071093487, 0x2FF1F4A8, 0x00000000)  = 0
kioctl(4, -1071093467, 0x2FF1F4A8, 0x00000000)  = 0
kioctl(4, -1071093471, 0x2FF1F4C8, 0x00000000)  = 0
kioctl(4, -1071093487, 0x2FF1F4C8, 0x00000000)  = 0
kioctl(4, -1071093467, 0x2FF1F4C8, 0x00000000)  = 0
kioctl(4, -1071093471, 0x2FF1F558, 0x00000000)  = 0
kioctl(4, -1071093487, 0x2FF1F558, 0x00000000)  = 0
kioctl(4, -1071093467, 0x2FF1F558, 0x00000000)  = 0
kioctl(4, -1071093471, 0x2FF1F578, 0x00000000)  = 0
kioctl(4, -1071093487, 0x2FF1F578, 0x00000000)  = 0
kioctl(4, -1071093467, 0x2FF1F578, 0x00000000)  = 0
kioctl(4, -1071093471, 0x2FF1F608, 0x00000000)  = 0
kioctl(4, -1071093487, 0x2FF1F608, 0x00000000)  = 0
kioctl(4, -1071093467, 0x2FF1F608, 0x00000000)  = 0
kioctl(4, -1071093471, 0x2FF1F628, 0x00000000)  = 0
kioctl(4, -1071093487, 0x2FF1F628, 0x00000000)  = 0
kioctl(4, -1071093467, 0x2FF1F628, 0x00000000)  = 0
close(4)                                        = 0
appgetrlimit(7, 0x2FF225B0)                     = 0
appsetrlimit(7, 0x2FF225B0)                     = 0
appgetrlimit(7, 0x2FF225B0)                     = 0
open("/etc/secrets.tdb", 0400000402)            = 4
kfcntl(4, 13, 0x2FF22040)                       = 0
kfcntl(4, 12, 0x2FF22040)                       = 0
kread(4, " T D B   f i l e\n\0\0\0".., 168)     = 168
fstatx(4, 0x2FF220C0, 128, 010)                 = 0
kmmap(0x00000000, 8192, 3, 1, 4, 0x00000000, 0x00000000) = 0x30000000
klseek(4, 0, 40, 0x00000000)                    = 0
kwrite(4, "\0\0\0\0", 4)                        = 4
kfcntl(4, 12, 0x2FF22040)                       = 0
kfcntl(4, 13, 0x2FF22040)                       = 0
kfcntl(4, 13, 0x2FF22040)                       = 0
statx("/etc/codepages/codepage.850", 0x2FF22168, 128, 010) = 0
open("/etc/codepages/codepage.850", 0400000000) = 6
kread(6, "01\0 R03 |\0\0\0", 8)                 = 8
kread(6, "85 ·0101   µ010183 ¶0101".., 124)     = 124
close(6)                                        = 0
statx("/etc/codepages/unicode_map.850", 0x2FF22010, 128, 010) = 0
open("/etc/codepages/unicode_map.850", 0400000000) = 6
kioctl(6, 22528, 0x00000000, 0x00000000)        Err#25 ENOTTY
kioctl(6, 22528, 0x00000000, 0x00000000)        Err#25 ENOTTY
kread(6, "0180 8 5 0\0\0\0\0\0\0\0".., 4096)    = 4096
sbrk(0x00030010)                                = 0x20053BB0
kread(6, "\0 _\0 _\0 _\0 _\0 _\0 _".., 4096)    = 4096
kread(6, "\0 _\0 _\0 _\0 _\0 _\0 _".., 4096)    = 4096
kread(6, "\0 _\0 _\0 _\0 _\0 _\0 _".., 4096)    = 4096
kread(6, "\0 _\0 _\0 _\0 _\0 _\0 _".., 4096)    = 4096
kread(6, "\0 _\0 _\0 _\0 _\0 _\0 _".., 4096)    = 4096


kread(6, "\0 _\0 _\0 _\0 _\0 _\0 _".., 4096)    = 4096
kread(6, "\0 _\0 _\0 _\0 _\0 _\0 _".., 4096)    = 4096
kread(6, "\0 _\0 _\0 _\0 _\0 _\0 _".., 4096)    = 4096
kread(6, "\0 _\0 _\0 _\0 _\0 _\0 _".., 4096)    = 542
close(6)                                        = 0
statx("/etc/codepages/unicode_map.ISO8859-1", 0x2FF22010, 128, 010) = 0
open("/etc/codepages/unicode_map.ISO8859-1", 0400000000) = 6
kioctl(6, 22528, 0x00000000, 0x00000000)        Err#25 ENOTTY
kioctl(6, 22528, 0x00000000, 0x00000000)        Err#25 ENOTTY
kread(6, "0180 I S O 8 8 5 9 - 1\0".., 4096)    = 4096
sbrk(0x00030010)                                = 0x20083BC0
kread(6, "\0 _\0 _\0 _\0 _\0 _\0 _".., 4096)    = 4096
kread(6, "\0 _\0 _\0 _\0 _\0 _\0 _".., 4096)    = 4096
kread(6, "\0 _\0 _\0 _\0 _\0 _\0 _".., 4096)    = 4096
kread(6, "\0 _\0 _\0 _\0 _\0 _\0 _".., 4096)    = 4096
kread(6, "\0 _\0 _\0 _\0 _\0 _\0 _".., 4096)    = 4096
kread(6, "\0 _\0 _\0 _\0 _\0 _\0 _".., 4096)    = 4096
kread(6, "\0 _\0 _\0 _\0 _\0 _\0 _".., 4096)    = 4096
kread(6, "\0 _\0 _\0 _\0 _\0 _\0 _".., 4096)    = 4096
kread(6, "\0 _\0 _\0 _\0 _\0 _\0 _".., 4096)    = 4096
kread(6, "\0 _\0 _\0 _\0 _\0 _\0 _".., 4096)    = 4096
kread(6, "\0 _\0 _\0 _\0 _\0 _\0 _".., 4096)    = 4096
kread(6, "\0 _\0 _\0 _\0 _\0 _\0 _".., 4096)    = 4096
 
Can you post your smb.conf file

also try disabling max open files in smb.conf

Mike

"A foolproof method for sculpting an elephant: first, get a huge block of marble, then you chip away everything that doesn't look like an elephant."

 
That's whats listed in /opt/freeware/var/log.smbd

[2006/03/15 17:20:58, 0] smbd/server.c:main(707)
smbd version 2.2.7 started.
Copyright Andrew Tridgell and the Samba Team 1992-2002

and my smb.conf file is the following:
(I just copied and modified this file from our production machine that is already having the samba configured and running correctly)

Code:
# Samba config file created using SWAT
# from 10.5.4.98 (10.5.4.98)
# Date: 2006/03/09 16:52:25

# Global parameters
[global]
        workgroup = CSD
        netbios name = KHALIDTEST
        server string = Samba NT on khalid test Server
        interfaces = 10.5.3.98/255.255.255.0
        security = SHARE
        log file = /var/samba/log/log.%m
        max log size = 50
        socket options = TCP_NODELAY IPTOS_LOWDELAY SO_SNDBUF=8192 SO_RCVBUF=8192
        preferred master = No
        local master = No
        domain master = No
        dns proxy = No
        wins support = Yes
        guest account = dmadmink

[printers]
        comment = All Printers
        path = /tmp
        guest ok = Yes
        printable = Yes
        browseable = No

[shared]
        path = /usr/cimagek/shared
        read only = No
        create mask = 0755
        guest ok = Yes

[dmimport]
        path = /usr/cimagek/dmimport
        read only = No
        create mask = 0755
        guest ok = Yes

[cadloops]
        comment = Storage Area for CAD Loop Drawings
        path = /usr/cimagek/cadloops
        read only = No
        create mask = 0755
        guest ok = Yes
 
Did you try adding max open files?

max open files=10000

You may have to alter nofiles = -1 in /etc/security/limits

Mike

"A foolproof method for sculpting an elephant: first, get a huge block of marble, then you chip away everything that doesn't look like an elephant."

 
Also try removing this line:
interfaces = 10.5.3.98/255.255.255.0

Restart Samba & make sure your smbd and nmbd processes are running.
Run smbcontrol smbd ping to make sure Samba is ready.

If it fails, what error are you getting when the client tried to connect?


"If you always do what you've always done, you will always be where you've always been."
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top