Click to See Complete Forum and Search --> : Confused by Samba.....


slacker_x
10-09-2001, 01:04 PM
I have samba installed on my linux computer. There is another computer running windows 98.

The 98 comp can see the linux share fine.

I am trying to connect to shares using the linux box


$ smbclient
Unknown parameter encountered: "preserve_case"
Ignoring unknown parameter "preserve_case"
added interface ip=192.168.0.2 bcast=192.168.0.255 nmask=255.255.255.0...usage summary...


What does the part about preserve case mean?


$ smbclient -L //wang
Unknown parameter encountered: "preserve_case"
Ignoring unknown parameter "preserve_case"
added interface ip=192.168.0.2 bcast=192.168.0.255 nmask=255.255.255.0
Got a positive name query response from 192.168.0.3 ( 192.168.0.3 )
Password:

Sharename Type Comment
--------- ---- -------
NESTICLE Disk
IPC$ IPC Remote Inter Process Communication

Server Comment
--------- -------

Workgroup Master
--------- -------


That seems to work fine. Wang is the win98 computer.


I can't connect to my own linux computer by doing this:

$ smbclient -L //chubby
Unknown parameter encountered: "preserve_case"
Ignoring unknown parameter "preserve_case"
added interface ip=192.168.0.2 bcast=192.168.0.255 nmask=255.255.255.0
session request to CHUBBY failed (Not listening for calling name)
session request to *SMBSERVER failed (Not listening for calling name)


Any idea why that won't work?


Finally, I have noticed that a number of my friends have tcp port 139 open. Is there a way to see what they are sharing if I only know their IP address?

I guess I would need to know their workgroup too right?

Thanks

Bokkenka
10-09-2001, 06:42 PM
Be sure Samba is running... "samba status" will tell you if it is. If it isn't "samba start".

Try using "localhost" or the IP address in the smbclient command.

If that works, then make sure the listings in /etc/hosts are correct.

Be sure the "hosts allow" line in smb.conf is correct.

The "preserve_case" error is a line in smb.conf. It tells the computer whether or not to preserve the case of file written to the share. Just comment it out for now by putting a semi-colon (;) in front of it, and any other line in the same section.

Editted to fix the smiley it made from my semi-colon.

[ 09 October 2001: Message edited by: Bokkenka ]

slacker_x
10-09-2001, 07:16 PM
$ smbclient -L //localhost
added interface ip=192.168.0.2 bcast=192.168.0.255 nmask=255.255.255.0
session request to LOCALHOST failed (Not listening for calling name)
session request to *SMBSERVER failed (Not listening for calling name)



$ smbclient -L //192.168.0.2
added interface ip=192.168.0.2 bcast=192.168.0.255 nmask=255.255.255.0
Password:
Domain=[HOMENET] OS=[Unix] Server=[Samba 2.2.1a]

Sharename Type Comment
--------- ---- -------
music Disk Dave's MP3 files
IPC$ IPC IPC Service (Samba 2.2.1a)
ADMIN$ Disk IPC Service (Samba 2.2.1a)

Server Comment
--------- -------
CHUBBY Samba 2.2.1a
WANG

Workgroup Master
--------- -------
HOMENET CHUBBY


Ok, so that one worked fine. The same thing except with 127.0.0.1 gives this:


$ smbclient -L //127.0.0.1
added interface ip=192.168.0.2 bcast=192.168.0.255 nmask=255.255.255.0
session request to 127.0.0.1 failed (Not listening for calling name)
session request to 127 failed (Not listening for calling name)
session request to *SMBSERVER failed (Not listening for calling name)


from my smb.conf file:

; specify allowable hosts
hosts allow = 192.168.0.0/255.255.255.0, 127.0.0.1

; specify denied hosts
hosts deny = 0.0.0.0/0.0.0.0


from my /etc/hosts file:

127.0.0.1 chubby localhost



I'm stumped

Bokkenka
10-13-2001, 10:14 PM
I see the < Unknown parameter encountered: "preserve_case" > is gone. :)

I'd try re-writing the /etc/hosts file...

127.0.0.1 localhost.localdomain localhost
192.168.0.2 chubby
192.168.0.3 wang

Add any other computers you have on the network.