LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 10-18-2004, 09:37 PM   #1
raypen
Member
 
Registered: Jun 2002
Location: Midwest
Distribution: Slackware
Posts: 365

Rep: Reputation: 30
LISA is really strange


Running a Slackware 9.0 system sharing a LAN with a Win2K machine.
SAMBA has been running and working perfectly for some time. Linux
shares are readily seen in Network Place on the Win2K machine and I
can mount the Win2K shares in Linux and view/transfer files between
the machines in File Manager.

Decided to give LISA a try on the Linux machine and after a bumpy start
finally got it to load at bootup. When I open Konqueror and enter

lan:/

I can see both machines but when I click on either of these entries and
then click on SMB, the return is blank. This happens even with Win2K shares
mounted with smbmount even though this should be unnecessary with LISA.

I also tried:

smb:/win2Kserver.workgroup.com

and the shares appeared (even the administrative shares).

However when I click on one of the shares i get:

Internal error
Please report bugs to ...
Server or workgroup could not be found.

Obviously the server can be found if the shares show up so I thought it
must be the workgroup. But the workgroup is correct and I have the
correct workgroup set in the Local Network Browsing KDE control module
even though this is supposedly for the Samba client only, not the server.

This is very puzzling to me since I see no one in the Forum reporting
this kind of problem.

Any suggestions?
 
Old 10-19-2004, 08:58 PM   #2
datadriven
Member
 
Registered: Jun 2003
Location: Holly Hill, Florida
Distribution: Slackware 10.1
Posts: 317

Rep: Reputation: 30
You might be able to fix this by

chmod +s /usr/bin/smbmnt
chmod +s /usr/bin/smbumount

Kind of a security hole, you might be better to use sudo, but I'm really not that familiar w/ sudo.
 
Old 10-20-2004, 12:07 AM   #3
raypen
Member
 
Registered: Jun 2002
Location: Midwest
Distribution: Slackware
Posts: 365

Original Poster
Rep: Reputation: 30
I am running as root. I'm not sure setting the 'sticky bit' on these two
programs would do anything.

I did see a reference to these changes at:

http://www.linuxelectrons.com/articl...40406050839456

but it is unclear just what this is supposed to do.

Could you elaborate?
 
Old 10-20-2004, 06:07 AM   #4
datadriven
Member
 
Registered: Jun 2003
Location: Holly Hill, Florida
Distribution: Slackware 10.1
Posts: 317

Rep: Reputation: 30
That lets you mount SMB shares when you're NOT root. You should never run as root, EVER. But you're right, you don't need that when you're root. Perhaps samba is not set up quite right. Can you post your smb.conf
 
Old 10-20-2004, 02:28 PM   #5
raypen
Member
 
Registered: Jun 2002
Location: Midwest
Distribution: Slackware
Posts: 365

Original Poster
Rep: Reputation: 30
My very simple yet elegant smb.conf

[global]

workgroup = wg
server string = Samba Server
hosts allow = 192.168.0. 127.
log file = /var/log/samba.%m
max log size = 50
security = user
encrypt passwords = yes
ssl CA certDir = /etc/ssl/certs
socket options = TCP_NODELAY
preferred master = yes
dns proxy = no
null passwords = yes
printing = cups
printcap name = cups


[printers]
comment = All Printers
path = /var/spool/samba
browseable = no
guest ok = yes
writable = no
printable = yes
create mode = 0700


# This one is useful for people to share files
[tmp]
comment = Temporary file space
path = /tmp
browseable = yes
read only = no
writable = yes


[pub]
path = /pub
browseable = yes
read only = no
writable = yes
 
Old 10-20-2004, 07:03 PM   #6
-X-
Member
 
Registered: Oct 2003
Location: Tx,USA
Distribution: Slackware, Red Hat, CentOS
Posts: 495

Rep: Reputation: 30
in konqueror, try each of the following separately and see what works best for you.
smb:/
smb:/<workgroupname>
smb:/<hostname>
ie: smb:/corvette (what's in your hosts file, or ip)
smb:/<hostname/sharename>
ie: smb:/corvette/me

Notice the / not a .

I had that error before, easy remedy, let me think what it was.

Be careful running as root. Isn't there a better way?

Last edited by -X-; 10-20-2004 at 07:06 PM.
 
Old 10-20-2004, 10:31 PM   #7
raypen
Member
 
Registered: Jun 2002
Location: Midwest
Distribution: Slackware
Posts: 365

Original Poster
Rep: Reputation: 30
None worked!!!
 
Old 10-21-2004, 06:56 AM   #8
datadriven
Member
 
Registered: Jun 2003
Location: Holly Hill, Florida
Distribution: Slackware 10.1
Posts: 317

Rep: Reputation: 30
AFAIK there is no such thing as

writable = yes

and if there was it would have an e after the t, you should use

guest ok = Yes

However that only applies for accessing the samba machine. Security = user means that every machine has to log in to access the network, and I'm not sure whether konqueror can do that. I use Security = share on my network.
 
Old 10-21-2004, 07:46 AM   #9
-X-
Member
 
Registered: Oct 2003
Location: Tx,USA
Distribution: Slackware, Red Hat, CentOS
Posts: 495

Rep: Reputation: 30
On your linux box type
smbtree
and post what you have. Still thinking about your error msg.
 
Old 10-21-2004, 10:27 PM   #10
raypen
Member
 
Registered: Jun 2002
Location: Midwest
Distribution: Slackware
Posts: 365

Original Poster
Rep: Reputation: 30
"writable should be writeable" as I once pointed out in a Samba posting
some time ago, which was met by a number of different replies saying the
syntactically or proper spelling is 'writeable', but that Samba prefers,
nee needs to see 'writable'. I've seen more horseshit in these forums than
I could possibly dream up in a drug-induced haze; in this case, either spelling
seems to work properly.

You will also notice that the options, such as 'writable', only affect Linux shares
and have nothing to do with the Windows side of the aisle.

When I enter smbtree I get 'bash: file not found'

Looking for that light at the end of the tunnel!
 
Old 10-22-2004, 04:42 AM   #11
-X-
Member
 
Registered: Oct 2003
Location: Tx,USA
Distribution: Slackware, Red Hat, CentOS
Posts: 495

Rep: Reputation: 30
IIRC samba allows writeable - writable.

LISA was a pain and I use the smb:/ method.

smbtree s/b in /usr/bin. You seem to be missing this maybe other stuff. I'll look into this problem on my end a little..
 
Old 10-22-2004, 09:11 AM   #12
-X-
Member
 
Registered: Oct 2003
Location: Tx,USA
Distribution: Slackware, Red Hat, CentOS
Posts: 495

Rep: Reputation: 30
ok, It so happens I just installed Slackware 10.0. Then it took less than 2min to connect to a Windows box. Here's what I did so it may help you.

Configured smb.conf
global]
workgroup = WORKGROUP
security = user
hosts allow = 192.168.1. 192.168.2. 127.
load printers = yes
printing = cups
socket options = TCP_NODELAY
dns proxy = no
[homes]
comment = Home Directories
browseable = no
writable = yes
[tmp]
comment = Temporary file space
path = /tmp
read only = no
public = yes

sudo chmod +x /etc/rc.d/rc.samba
sudo /etc/rc.d/rc.samba start

/etc/hosts
127.0.0.1 localhost
192.168.2.130 corvette.biz.org corvette
192.168.2.131 camaro.biz.org camaro
192.168.2.132 mustang.biz.org mustang
192.168.2.133 nova

boxes are:
corvette: FreeBSD server
camaro: new Slackware just setup
mustang: Slackware laptop
nova: Windows, share is me and c:\temp

smbtree, smbclient, smbmount, and konqueror using the smb:/ in the location worked in < 2min. Using the smb:/ method shows the Workgroup, click on that shows all boxes. Or just smb:/nova works also.

If you are having problems, check over what you may have added or deleted recently.

Last edited by -X-; 10-22-2004 at 12:18 PM.
 
Old 10-22-2004, 12:01 PM   #13
raypen
Member
 
Registered: Jun 2002
Location: Midwest
Distribution: Slackware
Posts: 365

Original Poster
Rep: Reputation: 30
It seems I may have something wrong but I am not quite sure what it is.
I went back to the recommended tests for a proper SAMBA installation and
I found one test that was not performing the way it should:

nmblookup -B win2k '*' which returned

querying * on 192.168.0.1
name_query failed to find name *


I have not removed any packages or changed anything other than configurations
since I set up this box about a year ago. I am glad this is not a critical problem
since I am completely stumped now.
 
Old 10-22-2004, 12:15 PM   #14
-X-
Member
 
Registered: Oct 2003
Location: Tx,USA
Distribution: Slackware, Red Hat, CentOS
Posts: 495

Rep: Reputation: 30
Only other thing I know to check is your /etc/hosts and open your firewall for smb and netbios if you already haven't. If you are behind a router and don't have anything in the router open, turn off the firewalls if you have them. I say this because some have a hardware router/hub and also run a firewall on their computer.

Can you see the Linux box from the Windows box?

Turn off/remove LISA.

Last edited by -X-; 10-22-2004 at 12:34 PM.
 
Old 10-22-2004, 02:39 PM   #15
raypen
Member
 
Registered: Jun 2002
Location: Midwest
Distribution: Slackware
Posts: 365

Original Poster
Rep: Reputation: 30
hosts file is fine.

Firewall is open, otherwise I couldn't do anything at all. As I mentioned
I can mount Win2k shares with smbmount and see them in file manager
(Konqueror). I can also use smbclient and view the contents of the shares
there. My Linux shares have always appeared in Network Places.

One last thing that I tried:

smbclient -L win2k which output:

Domain=[wg] OS=[Windows 5.0] Server=[Windows 2000 LAN Manager]

Sharename Type Comment
--------- ---- -------
IPC$ IPC Remote IPC
print$ Disk Printer Drivers
EpsonSty Printer Epson Stylus COLOR 500 ESC/P 2
C Disk
ADMIN$ Disk Remote Admin
C$ Disk Default share

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

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

I would ordinarily expect to see the win2k machine listed under Server and the
wg listed under Workgroup. If this command is run with the Linux box host name
the output is:

Anonymous login successful
Domain=[wg] OS=[Unix] Server=[Samba 2.2.8]

Sharename Type Comment
--------- ---- -------
tmp Disk Temporary file space
pub Disk
IPC$ IPC IPC Service (Samba Server)
ADMIN$ Disk IPC Service (Samba Server)
Panasonic Printer PANASONIC KX-P4410 ljet2p

Server Comment
--------- -------
win2k
deep Samba Server

Workgroup Master
--------- -------
wg deep

There might be some kind of permission problem which only appears under LISA.
Everything seems to work well using just SAMBA. I'll play with it a little more.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Lisa? thejoe526 Linux - Networking 9 10-18-2006 09:41 AM
Lisa desertViking Linux - Networking 1 10-20-2005 12:15 AM
Lisa? onelung02 Slackware 1 02-11-2005 10:55 PM
LISa tmaerten Linux - Networking 0 09-24-2003 03:36 AM
lisa steve423 Linux - Networking 1 05-17-2002 09:45 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 01:15 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration