2009-02-23 01:36:13 how to start the samba server???
Abhin Xavier (INDIA)
Message: 69731
i have compiled the uclinux distr by enabling the samba option. Vendor/user settings-
Filesystem Applications --->
--- SAMBA
[*] samba
[*] smbd
[*] nmbd
[*] smbmount
[*] smbumount
Also i have enabled the filesystems. Kernel settings -
File systems --->
Network File Systems --->
<*> SMB file system support (to mount Windows shares etc.)
<*> CIFS support (advanced network filesystem for Samba, Window and other CIFS compliant servers)
Native Language Support --->
(languages in here according to your needs)
In the final image all the required binaries are present - smbd,nmbd etc.
But for some reason the samba server doesn't start up. I followed the steps mentioned in the blackfin-linux docs -
smb.conf file
[global]
workgroup = bfin-workgroup
server string = blackfin
security = SHARE
[root]
path = /
read only = yes
guest ok = yes
in /etc/services
netbios-ssn 139/tcp
in /etc/inetd.conf
netbios-ssn stream tcp nowait root /sbin/smbd
But no success.
The smbclient works fine and i was able to mount a remote file on to the device.
But the samba server won't start up. There was an instruction to restart the inetd deamon. The kill - HUP doesn't work for restarting. The -HUP command is not recognozed. So i kill the deamon and start it again. Anyway the smbserver doesn't start up. Could anyone help me in this regard ?? Also - how do i compile the smb.conf file after making the changes?? The testparm command doesn't work.
QuoteReplyEditDelete
2009-02-23 13:12:18 Re: how to start the samba server???
Mike Frysinger (UNITED STATES)
Message: 69764
did you run `kill` correctly ? there is no space between the '-' and 'HUP'.
how are you checking that things are working ? the entire point of inetd is that it *doesnt* start any service until an incoming connection is made to the specified port
QuoteReplyEditDelete
2009-02-24 00:46:40 Re: how to start the samba server???
Abhin Xavier (INDIA)
Message: 69784
i have shared the root through the smb.conf file(you can see that in the smb.conf file i have shown above)...and no i haven't put any space between '-' and 'HUP' :D... see the thing is to reduce the size of the uclinux distr and inturn reduce the size of the image file we had removed lot of packages from the user directory. Only those packages we require were kept back. Because we have a size limit for the image - 5 MB . Is it because i haven't added some required package?? After compilation , after adding the samba packages , i have 6 new binaries in the bin directory in romfs -
smbmount , smbumount, smbpasswd, nmbd, smbd, smbmnt.
Are any required binaries missing??
And about the inet deamon. i kill it using the ' kill ' command and run it again using 'inetd &'. That should do the trick right??
QuoteReplyEditDelete
2009-02-24 02:16:32 Re: how to start the samba server???
Mike Frysinger (UNITED STATES)
Message: 69787
yes, you can start inetd that way assuming init wont start it for you via /etc/inittab
QuoteReplyEditDelete
2009-02-24 02:52:34 Re: how to start the samba server???
Abhin Xavier (INDIA)
Message: 69790
but still the samba server doesn't run. the command
smbclient -N -L "ip"
doesn't return the info about the server or what is shared. it just says something like access denied or something - which in turn means the samba server is not found.
QuoteReplyEditDelete
2009-02-24 03:06:16 Re: how to start the samba server???
Mike Frysinger (UNITED STATES)
Message: 69792
no, "access denied" from smbclient is not the same thing as the server not found. access denied means exactly what it says: the specified credentials have no access.
if the server was not responding properly, smbclient would get a timeout or connection refused or some other error.
QuoteReplyEditDelete
2009-02-24 04:28:58 Re: how to start the samba server???
Abhin Xavier (INDIA)
Message: 69804
sorry...my mistake ...it says connection refused
QuoteReplyEditDelete
2009-02-24 09:38:56 Re: how to start the samba server???
Mike Frysinger (UNITED STATES)
Message: 69813
then run `netstat -na` on the board to see what ports inetd has opened
QuoteReplyEditDelete
2009-02-24 14:09:43 Re: how to start the samba server???
Andreas Bellgardt (GERMANY)
Message: 69839
Abhin,
I had similar problems with the samba server and found, that in the default configuration samba uses the /var/lib/locks directory to create a lock file, but this directory isn't there. You have to create it yourself.
If you start the server with smbd -i you perhaps get a helpfull error message.
Good luck!
Andreas
TranslateQuoteReplyEditDelete
2009-02-25 01:05:16 Re: how to start the samba server???
Abhin Xavier (INDIA)
Message: 69857
Andreas- i think that could be one of the problems because when i run
nmbd -i -S -d 2
the message comes
Netbios nameserver version 3.0.13 started.
Copyright Andrew Tridgell and the Samba Team 1994-2004
creating lame upcase table
creating lame lowcase table
creating default valid table
standard input is not a socket, assuming -D option
ERROR: can't open /var/lib/locks/nmbd.pid: Error was No such file or directory
But on running
smbd -i -S -d 2
it says
smbd version 3.0.13 started.
Copyright Andrew Tridgell and the Samba Team 1992-2004
uid=0 gid=0 euid=0 egid=0
Processing section "[root]"
creating default valid table
Unable to open printcap file /etc/printcap for read!
Unable to open printcap file /etc/printcap for read!
added interface ip=10.142.14.200 bcast=10.255.255.255 nmask=255.0.0.0
Failed to open group mapping database
failed to initialize group mapping
QuoteReplyEditDelete
2009-02-25 07:41:45 Re: how to start the samba server???
Abhin Xavier (INDIA)
Message: 69882
I was able to run the smbd "partially" - meaning i added the directory as Andreas mentioned and the smbd worked. But when i ran
$ smbclient -N -L 10.142.14.200
from a linux machine which was connected in the same network it showed
Domain=[BFIN-WORKGROUP] OS=[Unix] Server=[Samba 3.0.13]
Sharename Type Comment
--------- ---- -------
root Disk
IPC$ IPC IPC Service (blackfin)
ADMIN$ IPC IPC Service (blackfin)
Error connecting to 10.142.14.200 (Connection reset by peer)
Connection to 10.142.14.200 failed
NetBIOS over TCP disabled -- no workgroup available
Is there any NetBIOS config to change. I didn't find any .
Also the smbd program exits when ran that command.
Is there any way to always run smbd as a deamon??The command smbd -D &
doesn't work.
Also is smbd dependent on nmbd ?? when i ran nmbd with the following command
nmbd -i -S -d 2
it gave the error
Netbios nameserver version 3.0.13 started.
Copyright Andrew Tridgell and the Samba Team 1994-2004
Unknown parameter encountered: "password"
Ignoring unknown parameter "password"
creating lame upcase table
creating lame lowcase table
creating default valid table
standard input is not a socket, assuming -D option
Registered MSG_REQ_POOL_USAGE
Registered MSG_REQ_DMALLOC_MARK and LOG_CHANGED
added interface ip=10.142.14.200 bcast=10.255.255.255 nmask=255.0.0.0
making subnet name:10.142.14.200 Broadcast address:10.255.255.255 Subnet mask:255.0.0.0
making subnet name:UNICAST_SUBNET Broadcast address:0.0.0.0 Subnet mask:0.0.0.0
making subnet name:REMOTE_BROADCAST_SUBNET Broadcast address:0.0.0.0 Subnet mask:0.0.0.0
load_lmhosts_file: Can't open lmhosts file /etc/config/lmhosts. Error was No such file or directory
I need both smbd and nmbd to run as deamons. Is there any way to do it ??
QuoteReplyEditDelete
2009-02-25 09:16:23 Re: how to start the samba server???
Abhin Xavier (INDIA)
Message: 69891
and when i ran
$ smbclient -N -L 10.142.14.200
as i mentioned in the last post this is what happens in the device
# smbd -i -S -d 2
smbd version 3.0.13 started.
Copyright Andrew Tridgell and the Samba Team 1992-2004
uid=0 gid=0 euid=0 egid=0
Processing section "[root]"
creating default valid table
Unable to open printcap file /etc/printcap for read!
Unable to open printcap file /etc/printcap for read!
added interface ip=10.142.14.200 bcast=10.255.255.255 nmask=255.0.0.0
Registered MSG_REQ_POOL_USAGE
Registered MSG_REQ_DMALLOC_MARK and LOG_CHANGED
waiting for a connection
Allowed connection from (10.142.14.120)
check_ntlm_password: Authentication for user [abhin] -> [abhin] FAILED with error NT_STAT US_NO_SUCH_USER
Allowed connection from (10.142.14.120)
Closing connections
QuoteReplyEditDelete
2009-02-25 17:34:18 Re: how to start the samba server???
Mike Frysinger (UNITED STATES)
Message: 69919
run samba through inetd like normal
if you read the nmbd documentation, you'll see that it is the daemon that provides NetBIOS over IP information. if you care about that, then run it. if you dont, then dont.
QuoteReplyEditDelete
2009-02-25 23:54:07 Re: how to start the samba server???
Abhin Xavier (INDIA)
Message: 69931
how do i run samba through inetd like normal??
i have added the line
netbios-ssn stream tcp nowait root /sbin/smbd
in my inetd.conf. Should i do something else??
QuoteReplyEditDelete
2009-02-25 23:58:32 Re: how to start the samba server???
Abhin Xavier (INDIA)
Message: 69932
And as i mentioned
"nmbd -D" & "smbd -D"
doesn't work. When i run it, a Pid is assigned to nmbd or smbd for a sec and nothing else happens- it just exits i guess. It doesn't show on the running proccess list.
We have to run it as deamons right?? How can i do that??
QuoteReplyEditDelete
2009-02-25 23:58:44 Re: how to start the samba server???
Mike Frysinger (UNITED STATES)
Message: 69933
once you fixed the dirs, then that should work fine
QuoteReplyEditDelete
2009-02-26 00:29:37 Re: how to start the samba server???
Abhin Xavier (INDIA)
Message: 69934
What are the directories i should fix ?? I have added the var/lib/locks path. I have also made a directory named lmhosts in etc/config because the nmbd looks for it. But still nmbd doesn't run as a deamon. It just exits after assigning a process id when i run
nmbd -D &
The running of nmbd and smbd as deamons is not happening.
QuoteReplyEditDelete
2009-02-26 02:21:13 Re: how to start the samba server???
Mike Frysinger (UNITED STATES)
Message: 69938
like i said, use inetd to manage the daemons. dont run them yourself.
QuoteReplyEditDelete
2009-03-02 05:25:42 samba runs
Abhin Xavier (INDIA)
Message: 70210
samba ran finally...i cudn't run it thorugh inetd for some reason...
QuoteReplyEditDelete
2009-03-02 05:37:35 Re: samba runs
Abhin Xavier (INDIA)
Message: 70211
How i ran it is-
Created directories - /var/lib & /var/locks - because smbd tries to access it for some reason.
Appropriate smb.conf file.
run
smbd -D &
this creates the process id in var/lib/locks
then run
smbd -D -i &
and voila
smbd comes up in the process list and runs as a deamon.
But there are some stability issues. When i access the shar from my windows comp and close the window , sometimes, the deamon just becomes a zombie.
Don't know why?? Can someone help ??
Also are packages for nmbd, smbmount etc. required to run smbd?? If not how can i remove them from samba configuration?? Image size is a major issue for me. When i add samba the size increases by around 2 MB. I need to brring that down below 1.
QuoteReplyEditDelete
2009-03-03 01:07:31 Re: samba runs
Mike Frysinger (UNITED STATES)
Message: 70243
doing what the documentation said to works just fine for me
root:/etc> grep netbios /etc/services
netbios-ssn 139/tcp
root:/etc> grep smb /etc/inetd.conf
netbios-ssn stream tcp nowait root /sbin/smbd
root:/etc> killall -HUP inetd
root:/etc> netstat -na | grep 139
tcp 0 0 0.0.0.0:139 0.0.0.0:* LISTEN
$ smbclient -L bfin
Password:
Anonymous login successful
Domain=[WORKGROUP] OS=[Unix] Server=[Samba 3.0.25a]
Sharename Type Comment
--------- ---- -------
root Disk
IPC$ IPC IPC Service (Samba 3.0.25a)
Anonymous login successful
Domain=[WORKGROUP] OS=[Unix] Server=[Samba 3.0.25a]
Server Comment
--------- -------
Workgroup Master
--------- -------
$ sudo mount -t smbfs //bfin/root /mnt/root -o username=root
Password:
$ ls /mnt/root/
bin dev etc home init lib mnt proc root sbin sys tmp usr var
QuoteReplyEditDelete
2009-03-04 00:00:06 Re: samba runs
Abhin Xavier (INDIA)
Message: 70311
For some reason the inetd daemon cannot do the trick.
When i restart the inetd daemon after changing the settings in inetd.conf and services- it comes like this
# kill -HUP 83
can't find service
... line in config file
... line in config file
... line in config file
QuoteReplyEditDelete
2009-03-04 00:08:58 Re: samba runs
Mike Frysinger (UNITED STATES)
Message: 70312
verify you didnt corrupt the inetd.conf when you edited it and that every service listed is properly defined in /etc/services
QuoteReplyEditDelete
2009-03-04 00:52:11 Re: samba runs
Abhin Xavier (INDIA)
Message: 70314
i have mentioned the appropriate service in the "services" file-
netbios-ssn 139/tcp
but i think the problem is that it cant find the netbios-ssn service itself.
Should i be activating anything fot the netbios ?? i remember getting a netbios over tcp error somewher before.
QuoteReplyEditDelete
2009-03-04 01:09:51 Re: samba runs
Mike Frysinger (UNITED STATES)
Message: 70317
i really dont know what you're talking about.
kill inetd and then run it manually. if there's any error output, then your inetd.conf is incorrect.
if you need more info, then rebuild inetd.c with DEBUG defined.
QuoteReplyEditDelete
2009-03-04 01:42:22 Re: samba runs
Abhin Xavier (INDIA)
Message: 70321
alright...it runs the other way i mentioned too...but as i told earlier, when i close the window after opening the share, the smbd process exots sometimes. i was trying to see what is wrong...nywys - thanks for ur suggestions...
QuoteReplyEditDelete
2009-03-04 01:51:46 Re: samba runs
Mike Frysinger (UNITED STATES)
Message: 70322
that is how -i works. it runs once and quits.
QuoteReplyEditDelete
2009-03-04 01:59:56 Re: samba runs
Abhin Xavier (INDIA)
Message: 70323
oh...i didn't know that...but it doesn't run at all if i don't give the -i
QuoteReplyEditDelete
2009-03-04 02:02:23 Re: samba runs
Abhin Xavier (INDIA)
Message: 70324
is there any other option like that to run it continuously??
QuoteReplyEditDelete
2009-03-04 02:16:12 Re: samba runs
Mike Frysinger (UNITED STATES)
Message: 70325
use inetd as it was designed
QuoteReplyEditDelete
2009-03-04 02:27:04 Re: samba runs
Abhin Xavier (INDIA)
Message: 70326
... its quite funny .... we always end up at inetd ..
nywys i ran through inetd after defining debug...not much info..it came like this
kill -HUP 83
can't find service
... line in config file
... line in config file
... line in config file
Discarding service: port=23, tcp=1, ipv6=0, cmd=/bin/telnetd
Service List:
I ca't find where the problem is...the thing is - we had changed the default configuration and removed lots of packages to reduce the image size...when it was required to enable samba , i just copied back the samba package from the original uclinux distribution and enabled the options...probably there is some option or package which samba requires and is not present...
this may not be true either...im just trying to reason why it doesnt work...i mean, after doing evrything as mentioned - it still doesn't work...irritating and frustrating at the same time..
QuoteReplyEditDelete
2009-03-04 02:54:23 Re: samba runs
Mike Frysinger (UNITED STATES)
Message: 70335
are you using the 2008R1.5 release ? i dont see "line in config file" in the inetd source.
those errors still indicate your inetd.conf is screwed up. how are you editing it ?
what does it look like if you do `cat /etc/inetd.conf` ?
QuoteReplyEditDelete
2009-03-04 04:09:56 Re: samba runs
Abhin Xavier (INDIA)
Message: 70347
sorry mike...there were some blank lines in the inetd.conf file...that gave rise to that "line in config file" message...still not sure from where it came cos even i had cehckd the source and there was nothin of that sort there...
The problem still exists ....
take a look at what happens......
# tftp -g 10.142.14.129 -l inetd.conf -r inetd.conf
# cat inetd.conf
netbios-ssn stream tcp nowait root /sbin/smbd #
# tftp -g 10.142.14.129 -l inetd.conf -r inetd.conf
# cat inetd.conf
netbios-ssn stream tcp nowait root /sbin/smbd
# kill -HUP 83
can't find service
Discarding service: port=23, tcp=1, ipv6=0, cmd=/bin/telnetd
Service List:
# cat services
ftp 21/tcp
ftp 21/udp
ssh 22/tcp
ssh 22/udp
telnet 23/tcp
telnet 23/udp
nameserver 42/tcp name
nameserver 42/udp name
tftp 69/tcp
tftp 69/udp
finger 79/tcp
finger 79/udp
http 80/tcp www www-http
http 80/udp www www-http
kerberos 88/tcp kerberos5 krb5
kerberos 88/udp kerberos5 krb5
hostname 101/tcp hostnames
hostname 101/udp hostnames
netbios-ssn 139/tcp
shell 514/tcp cmd
shell 514/udp cmd
#
QuoteReplyEditDelete
2009-03-05 00:32:47 Re: samba runs
Mike Frysinger (UNITED STATES)
Message: 70402
are you sure you're putting inetd.conf in the right place ?
make sure inetd isnt running via init and then run it manually so you can use strace:
strace -eopen inetd
QuoteReplyEditDelete
2009-03-05 02:38:43 Re: samba runs
Abhin Xavier (INDIA)
Message: 70408
open("/etc/config/inetd.conf", O_RDONLY) = -1 ENOENT (No such file or directory)
this is the error message on using strace
does this mean we have to put the inetd.conf in /etc/config???
QuoteReplyEditDelete
2009-03-05 03:01:50 Re: samba runs
Mike Frysinger (UNITED STATES)
Message: 70410
post the entire output of strace
QuoteReplyEditDelete
2009-03-05 04:22:41 Re: samba runs
Abhin Xavier (INDIA)
Message: 70437
when i ran
strace -eopen inetd
it came
open("/etc/ld.so.cache", O_RDONLY) = 3
open("/lib/libgcc_s.so.1", O_RDONLY) = 3
open("/lib/libc.so.0", O_RDONLY) = 3
open("/lib/libc.so.0", O_RDONLY) = 3
open("/dev/null", O_RDWR) = 3
open("/var/run/inetd.pid", O_WRONLY|O_CREAT|O_TRUNC, 0666) = 4
open("/etc/inetd.conf", O_RDONLY) = 4
open("/etc/services", O_RDONLY) = 5
open("/etc/services", O_RDONLY) = 5
open("/etc/config/inetd.conf", O_RDONLY) = -1 ENOENT (No such file or directory)
then i copied the inetd.conf file to etc/config.
Then there were no errors in the eopen option. so i ran the strace without any option
strace inetd
The output was
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x63f000
stat("/etc/ld.so.cache", {st_mode=S_IFREG|0644, st_size=789, ...}) = 0
open("/etc/ld.so.cache", O_RDONLY) = 3
mmap2(NULL, 789, PROT_READ, MAP_PRIVATE, 3, 0) = 0x6b3000
close(3) = 0
open("/lib/libgcc_s.so.1", O_RDONLY) = 3
fstat(3, {st_mode=S_IFREG|0755, st_size=47132, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x6b4000
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0j\0\1\0\0\0(\37\0\000"..., 4096) = 4096
mmap2(NULL, 43520, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE|MAP_EXECUTABLE, 3, 0) = 0x610000
mmap2(NULL, 5148, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x3ae000
pread(3, "\201\t\1\350\0\0\1`\370c\1\6\245\5\20\0\1\350\0\0\10`\245"..., 5028, 40960) = 5028
close(3) = 0
munmap(0x6b4000, 4096) = 0
open("/lib/libc.so.0", O_RDONLY) = 3
fstat(3, {st_mode=S_IFREG|0755, st_size=236388, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x6b4000
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0j\0\1\0\0\0\220\273"..., 4096) = 4096
mmap2(NULL, 229024, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE|MAP_EXECUTABLE, 3, 0) = 0x440000
mmap2(NULL, 18184, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x600000
pread(3, ": accept: %m\n\0\0\0socket: protocol"..., 9664, 225280) = 9664
close(3) = 0
munmap(0x6b4000, 4096) = 0
open("/lib/libc.so.0", O_RDONLY) = 3
fstat(3, {st_mode=S_IFREG|0755, st_size=236388, ...}) = 0
close(3) = 0
munmap(0x6b3000, 789) = 0
stat("/lib/ld-uClibc.so.0", {st_mode=S_IFREG|0755, st_size=29824, ...}) = 0
ioctl(0, SNDCTL_TMR_TIMEBASE or TCGETS, 0x43f9d0) = -1 ENOTTY (Inappropriate ioctl for device)
ioctl(1, SNDCTL_TMR_TIMEBASE or TCGETS, {B57600 opost -isig -icanon -echo ...}) = 0
rt_sigaction(SIGPIPE, {SIG_IGN}, {SIG_DFL}, 8) = 0
rt_sigaction(SIGSTOP, {0x633380, [], 0}, {SIG_DFL}, 8) = -1 EINVAL (Invalid argument)
rt_sigaction(SIGTSTP, {0x633380, [], 0}, {SIG_DFL}, 8) = 0
rt_sigaction(SIGCONT, {0x633378, [], 0}, {SIG_DFL}, 8) = 0
rt_sigaction(SIGCHLD, {0x633370, [], SA_INTERRUPT}, {SIG_DFL}, 8) = 0
rt_sigaction(SIGHUP, {0x633388, [], 0}, {SIG_DFL}, 8) = 0
fcntl(0, F_GETFL) = 0 (flags O_RDONLY)
open("/dev/null", O_RDWR) = 3
getpid() = 145
open("/var/run/inetd.pid", O_WRONLY|O_CREAT|O_TRUNC, 0666) = 4
ioctl(4, SNDCTL_TMR_TIMEBASE or TCGETS, 0x43fb20) = -1 ENOTTY (Inappropriate ioctl for device)
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_SHARED|MAP_ANONYMOUS|0x4000000, 0, 0) = 0xb8f000
write(4, "145\n", 4) = 4
close(4) = 0
open("/etc/inetd.conf", O_RDONLY) = 4
ioctl(4, SNDCTL_TMR_TIMEBASE or TCGETS, 0x43fb10) = -1 ENOTTY (Inappropriate ioctl for device)
read(4, "telnet stream tcp nowait root /"..., 256) = 93
open("/etc/services", O_RDONLY) = 5
ioctl(5, SNDCTL_TMR_TIMEBASE or TCGETS, 0x43fa18) = -1 ENOTTY (Inappropriate ioctl for device)
read(5, "ftp\t21/tcp\r\nftp\t21/udp\r\nssh\t22/t"..., 256) = 256
read(5, "os5 krb5\r\nkerberos\t88/udp\tkerber"..., 256) = 167
read(5, "", 256) = 0
close(5) = 0
write(2, "can\'t find service\n", 19) = 19
open("/etc/services", O_RDONLY) = 5
ioctl(5, SNDCTL_TMR_TIMEBASE or TCGETS, 0x43fa18) = -1 ENOTTY (Inappropriate ioctl for device)
read(5, "ftp\t21/tcp\r\nftp\t21/udp\r\nssh\t22/t"..., 256) = 256
read(5, "os5 krb5\r\nkerberos\t88/udp\tkerber"..., 256) = 167
read(5, "", 256) = 0
close(5) = 0
write(2, "can\'t find service\n", 19) = 19
read(4, "", 256) = 0
close(4) = 0
open("/etc/config/inetd.conf", O_RDONLY) = 4
ioctl(4, SNDCTL_TMR_TIMEBASE or TCGETS, 0x43fb10) = -1 ENOTTY (Inappropriate ioctl for device)
read(4, "netbios-ssn stream tcp nowait ro"..., 256) = 48
open("/etc/services", O_RDONLY) = 5
ioctl(5, SNDCTL_TMR_TIMEBASE or TCGETS, 0x43fa18) = -1 ENOTTY (Inappropriate ioctl for device)
read(5, "ftp\t21/tcp\r\nftp\t21/udp\r\nssh\t22/t"..., 256) = 256
read(5, "os5 krb5\r\nkerberos\t88/udp\tkerber"..., 256) = 167
read(5, "", 256) = 0
close(5) = 0
write(2, "can\'t find service\n", 19) = 19
read(4, "", 256) = 0
close(4) = 0
wait4(-1, 0x43fc18, WNOHANG, NULL) = -1 ECHILD (No child processes)
pselect6(1, [], [], NULL, {1, 0}, 0) = 0 (Timeout)
wait4(-1, 0x43fc18, WNOHANG, NULL) = -1 ECHILD (No child processes)
pselect6(1, [], [], NULL, {1, 0}, 0) = 0 (Timeout)
wait4(-1, 0x43fc18, WNOHANG, NULL) = -1 ECHILD (No child processes)
pselect6(1, [], [], NULL, {1, 0}, 0) = 0 (Timeout)
wait4(-1, 0x43fc18, WNOHANG, NULL) = -1 ECHILD (No child processes)
pselect6(1, [], [], NULL, {1, 0}, 0) = 0 (Timeout)
wait4(-1, 0x43fc18, WNOHANG, NULL) = -1 ECHILD (No child processes)
pselect6(1, [], [], NULL, {1, 0}, 0) = 0 (Timeout)
wait4(-1, 0x43fc18, WNOHANG, NULL) = -1 ECHILD (No child processes)
pselect6(1, [], [], NULL, {1, 0}, 0) = 0 (Timeout)
wait4(-1, 0x43fc18, WNOHANG, NULL) = -1 ECHILD (No child processes)
pselect6(1, [], [], NULL, {1, 0}, 0) = 0 (Timeout)
wait4(-1, 0x43fc18, WNOHANG, NULL) = -1 ECHILD (No child processes)
pselect6(1, [], [], NULL, {1, 0}, 0) = 0 (Timeout)
wait4(-1, 0x43fc18, WNOHANG, NULL) = -1 ECHILD (No child processes)
pselect6(1, [], [], NULL, {1, 0}
Now i dont' knw wht is wrong ....is it the kerberos??? i have disabled it....
QuoteReplyEditDelete
2009-03-05 04:42:04 Re: samba runs
Mike Frysinger (UNITED STATES)
Message: 70439
like i kept saying, your files are corrupt. i'm guessing you're attempting to edit files on windows machines and then send them over as is. that wont work. stop using windows.
specifically, you can see the \r corruption in the files by the strace output.
QuoteReplyEditDelete
2009-03-05 05:31:23 Re: samba runs
Abhin Xavier (INDIA)
Message: 70442
alrite mike...i made all the modifications in linux as you asked..
and now
netstat -na | grep 139
shows
tcp 0 0 0.0.0.0:139 0.0.0.0:* LISTEN
just like you told.
But still i can't access anything
When i try to access from windows it comes as the path does not exist and when i use linux and type
smbclient -L 10.142.14.201
it comes
read_socket_with_timeout: timeout read. read error = Connection reset by peer.
session request to 10.142.14.201 failed (Read error: Connection reset by peer)
read_socket_with_timeout: timeout read. read error = Connection reset by peer.
session request to 10 failed (Read error: Connection reset by peer)
read_socket_with_timeout: timeout read. read error = Connection reset by peer.
session request to *SMBSERVER failed (Read error: Connection reset by peer)
I did strace again for inetd and now it says
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xbae000
stat("/etc/ld.so.cache", {st_mode=S_IFREG|0644, st_size=789, ...}) = 0
open("/etc/ld.so.cache", O_RDONLY) = 3
mmap2(NULL, 789, PROT_READ, MAP_PRIVATE, 3, 0) = 0xbaf000
close(3) = 0
open("/lib/libgcc_s.so.1", O_RDONLY) = 3
fstat(3, {st_mode=S_IFREG|0755, st_size=47132, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x39b3000
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0j\0\1\0\0\0(\37\0\000"..., 4096) = 4096
mmap2(NULL, 43520, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE|MAP_EXECUTABLE, 3, 0) = 0x39f0000
mmap2(NULL, 5148, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x3b54000
pread(3, "\201\t\1\350\0\0\1`\370c\1\6\245\5\20\0\1\350\0\0\10`\245"..., 5028, 40960) = 5028
close(3) = 0
munmap(0x39b3000, 4096) = 0
open("/lib/libc.so.0", O_RDONLY) = 3
fstat(3, {st_mode=S_IFREG|0755, st_size=236388, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x39b3000
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0j\0\1\0\0\0\220\273"..., 4096) = 4096
mmap2(NULL, 229024, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE|MAP_EXECUTABLE, 3, 0) = 0x38c0000
mmap2(NULL, 18184, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb88000
pread(3, ": accept: %m\n\0\0\0socket: protocol"..., 9664, 225280) = 9664
close(3) = 0
munmap(0x39b3000, 4096) = 0
open("/lib/libc.so.0", O_RDONLY) = 3
fstat(3, {st_mode=S_IFREG|0755, st_size=236388, ...}) = 0
close(3) = 0
munmap(0xbaf000, 789) = 0
stat("/lib/ld-uClibc.so.0", {st_mode=S_IFREG|0755, st_size=29824, ...}) = 0
ioctl(0, SNDCTL_TMR_TIMEBASE or TCGETS, 0x3df9d0) = -1 ENOTTY (Inappropriate ioctl for device)
ioctl(1, SNDCTL_TMR_TIMEBASE or TCGETS, {B57600 opost -isig -icanon -echo ...}) = 0
rt_sigaction(SIGPIPE, {SIG_IGN}, {SIG_DFL}, 8) = 0
rt_sigaction(SIGSTOP, {0x39ef380, [], 0}, {SIG_DFL}, 8) = -1 EINVAL (Invalid argument)
rt_sigaction(SIGTSTP, {0x39ef380, [], 0}, {SIG_DFL}, 8) = 0
rt_sigaction(SIGCONT, {0x39ef378, [], 0}, {SIG_DFL}, 8) = 0
rt_sigaction(SIGCHLD, {0x39ef370, [], SA_INTERRUPT}, {SIG_DFL}, 8) = 0
rt_sigaction(SIGHUP, {0x39ef388, [], 0}, {SIG_DFL}, 8) = 0
fcntl(0, F_GETFL) = 0 (flags O_RDONLY)
open("/dev/null", O_RDWR) = 3
getpid() = 131
open("/var/run/inetd.pid", O_WRONLY|O_CREAT|O_TRUNC, 0666) = 4
ioctl(4, SNDCTL_TMR_TIMEBASE or TCGETS, 0x3dfb20) = -1 ENOTTY (Inappropriate ioctl for device)
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_SHARED|MAP_ANONYMOUS|0x4000000, 0, 0) = 0x399e000
write(4, "131\n", 4) = 4
close(4) = 0
open("/etc/inetd.conf", O_RDONLY) = 4
ioctl(4, SNDCTL_TMR_TIMEBASE or TCGETS, 0x3dfb10) = -1 ENOTTY (Inappropriate ioctl for device)
read(4, "telnet stream tcp nowait root /"..., 256) = 90
open("/etc/services", O_RDONLY) = 5
ioctl(5, SNDCTL_TMR_TIMEBASE or TCGETS, 0x3dfa18) = -1 ENOTTY (Inappropriate ioctl for device)
read(5, "ftp\t21/tcp\nftp\t21/udp\nssh\t22/tcp"..., 256) = 256
close(5) = 0
open("/etc/services", O_RDONLY) = 5
ioctl(5, SNDCTL_TMR_TIMEBASE or TCGETS, 0x3dfa18) = -1 ENOTTY (Inappropriate ioctl for device)
read(5, "ftp\t21/tcp\nftp\t21/udp\nssh\t22/tcp"..., 256) = 256
read(5, "ros\t88/udp\tkerberos5 krb5\nhostna"..., 256) = 144
close(5) = 0
read(4, "", 256) = 0
close(4) = 0
open("/etc/config/inetd.conf", O_RDONLY) = 4
ioctl(4, SNDCTL_TMR_TIMEBASE or TCGETS, 0x3dfb10) = -1 ENOTTY (Inappropriate ioctl for device)
read(4, "netbios-ssn stream tcp nowait ro"..., 256) = 46
open("/etc/services", O_RDONLY) = 5
ioctl(5, SNDCTL_TMR_TIMEBASE or TCGETS, 0x3dfa18) = -1 ENOTTY (Inappropriate ioctl for device)
read(5, "ftp\t21/tcp\nftp\t21/udp\nssh\t22/tcp"..., 256) = 256
read(5, "ros\t88/udp\tkerberos5 krb5\nhostna"..., 256) = 144
close(5) = 0
read(4, "", 256) = 0
close(4) = 0
wait4(-1, 0x3dfc18, WNOHANG, NULL) = -1 ECHILD (No child processes)
socket(PF_INET, SOCK_STREAM, IPPROTO_TCP) = 4
fcntl(4, F_SETFD, FD_CLOEXEC) = 0
setsockopt(4, SOL_SOCKET, SO_REUSEADDR, [1], 4) = 0
bind(4, {sa_family=AF_INET, sin_port=htons(23), sin_addr=inet_addr("0.0.0.0")}, 16) = 0
listen(4, 1) = 0
socket(PF_INET, SOCK_STREAM, IPPROTO_TCP) = 5
fcntl(5, F_SETFD, FD_CLOEXEC) = 0
setsockopt(5, SOL_SOCKET, SO_REUSEADDR, [1], 4) = 0
bind(5, {sa_family=AF_INET, sin_port=htons(139), sin_addr=inet_addr("0.0.0.0")}, 16) = 0
listen(5, 1) = 0
pselect6(6, [4 5], [], NULL, {1, 0}, 0) = 0 (Timeout)
wait4(-1, 0x3dfc18, WNOHANG, NULL) = -1 ECHILD (No child processes)
pselect6(6, [4 5], [], NULL, {1, 0}, 0) = 0 (Timeout)
wait4(-1, 0x3dfc18, WNOHANG, NULL) = -1 ECHILD (No child processes)
pselect6(6, [4 5], [], NULL, {1, 0}, 0) = 0 (Timeout)
wait4(-1, 0x3dfc18, WNOHANG, NULL) = -1 ECHILD (No child processes)
pselect6(6, [4 5], [], NULL, {1, 0}, 0) = 0 (Timeout)
wait4(-1, 0x3dfc18, WNOHANG, NULL) = -1 ECHILD (No child processes)
pselect6(6, [4 5], [], NULL, {1, 0}, 0) = 0 (Timeout)
wait4(-1, 0x3dfc18, WNOHANG, NULL) = -1 ECHILD (No child processes)
pselect6(6, [4 5], [], NULL, {1, 0}, 0) = 0 (Timeout)
wait4(-1, 0x3dfc18, WNOHANG, NULL) = -1 ECHILD (No child processes)
pselect6(6, [4 5], [], NULL, {1, 0}, 0) = 0 (Timeout)
wait4(-1, 0x3dfc18, WNOHANG, NULL) = -1 ECHILD (No child processes)
pselect6(6, [4 5], [], NULL, {1, 0}, 0) = 0 (Timeout)
wait4(-1, 0x3dfc18, WNOHANG, NULL) = -1 ECHILD (No child processes)
pselect6(6, [4 5], [], NULL, {1, 0}
Now what??
QuoteReplyEditDelete
2009-03-05 06:15:39 Re: samba runs
Abhin Xavier (INDIA)
Message: 70443
???
QuoteReplyEditDelete
2009-03-05 06:47:47 Re: samba runs
Abhin Xavier (INDIA)
Message: 70444
Thanks a lot mike...its runnin now....that directory was the problem- /var/lib/locks
once i created tht and restarted the daemon , it works ..