LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 11-07-2002, 12:09 AM   #1
earthur
LQ Newbie
 
Registered: Nov 2002
Location: Massachusetts, USA
Distribution: RedHat 7.2
Posts: 2

Rep: Reputation: 0
Samba 2.2.1a on RH 7.2 w/Win98 clients


Hi,
Newbie here. I'm trying to serve just a printer from the Linux
machine to some Win98 clients.

I've been through the O'Reilly fault tree
(http://us6.samba.org/samba/docs/man/...a/ch09_02.html) but I still have no luck.

Here's the deal. I presently have the minimal smb.conf:

[global]
workgroup = WORKGROUP
security = user
browseable = yes
local master = yes
[homes]
guest ok = no
browseable = no
[temp]
path = /tmp
public = yes


Most of the time my Linux box doesn't even show up in
Workgroup under network neighborhood. If I restart the
daemons I can get it to show up on Explorer.

In a DOS box I try to get to the server (tvc15)

C:\> NET VIEW \\tvc15
Error 59: An unexpected network error has occured...

(This is what I get when the machine shows up, of course I can
ping it, etc.)

Here's what I see from Linux:

]# smbclient -L localhost
added interface ip=192.168.0.106 bcast=192.168.0.255 nmask=255.255.255.0
Password:
Anonymous login successful
Domain=[WORKGROUP] OS=[Unix] Server=[Samba 2.2.1a]

Sharename Type Comment
--------- ---- -------
temp Disk
IPC$ IPC IPC Service (Samba 2.2.1a)
ADMIN$ Disk IPC Service (Samba 2.2.1a)

Server Comment
--------- -------
TVC15 Samba Server

Workgroup Master
--------- -------
WORKGROUP TVC15


And of course I can see the Win98 system from Linux:

# smbclient -L earthur
added interface ip=192.168.0.106 bcast=192.168.0.255 nmask=255.255.255.0
Password:

Sharename Type Comment
--------- ---- -------
PRINTER$ Disk
HP4L Printer HP LaserJet 4L
DOWNLOADS Disk
TOOLS Disk
IPC$ IPC Remote Inter Process Communication

Server Comment
--------- -------
EARTHUR Desktop

Workgroup Master
--------- -------
WORKGROUP EARTHUR


So here's the deal...stupid question time. When I log into the
PC does that password have to sync up with the password in
the smbpasswd file? How did I generate that file? Can I erase
it and start again? But that's not even the issue because I
can't even browse to the (Linux) system. I'm not sure what
magic I need to get the Linux system to show up under
Workgroup...Right now I get a dialog box:

Workgroup is not accessible.
A network error has occurred.

Thanks,
/Ed
 
Old 11-07-2002, 07:08 AM   #2
peter_robb
Senior Member
 
Registered: Feb 2002
Location: Szczecin, Poland
Distribution: Gentoo, Debian
Posts: 2,458

Rep: Reputation: 48
Try this...

# Samba config file created using SWAT
# from 0.0.0.0 (0.0.0.0)
# Date: 2002/08/28 22:07:52

# Global parameters
[global]
workgroup = WORKGROUP
netbios name = PRINT_SERVER
server string = printers
security = SHARE
encrypt passwords = Yes
log file = /var/log/samba/%m.log
max log size = 0
deadtime = 20
keepalive = 20
socket options = TCP_NODELAY IPTOS_LOWDELAY SO_SNDBUF=8192 SO_RCVBUF=8192
dns proxy = No
printer admin = +files
create mask = 0770
directory mask = 0770
guest ok = Yes
hide dot files = No
wide links = No
follow symlinks = No

[HP_1200]
comment = Laserjet on Apache
path = /tmp
printable = Yes
postscript = Yes
printer name = HP_1200
#

You will need to create a Linux printer, with it's name & make sure it's working properly, and then load the printer drivers into each of the Windoze machines.

I find the commandline 'printconf-tui" is a good programme for setting up printers. Make it an "LPD" type.

I used "Swat" to configure the smb.conf file. It has a VERY large help file for each option. It is turned on/off from "/etc/xinet.d/swat" listed below...

# default: off
# description: SWAT is the Samba Web Admin Tool. Use swat \
# to configure your Samba server. To use SWAT, \
# connect to port 901 with your favorite web browser.
service swat
{
port = 901
socket_type = stream
wait = no
only_from = 127.0.0.1
user = root
server = /usr/sbin/swat
log_on_failure += USERID
disable = no
}
#

Change the 'only_from' & 'user' to match the machine you want to access it from and the user/password you will need to login to Swat.
Then restart both xinetd & smb.
service xinetd restart
service smb restart

Regards,
Peter

Last edited by peter_robb; 11-07-2002 at 07:13 AM.
 
Old 11-07-2002, 08:51 AM   #3
earthur
LQ Newbie
 
Registered: Nov 2002
Location: Massachusetts, USA
Distribution: RedHat 7.2
Posts: 2

Original Poster
Rep: Reputation: 0
Re: SWAT

I'll get SWAT installed. I had been using Webmin to administer
the system but Swat seems like the best solution. Might take
me a few days to get back in there...

Thanks,
/Ed
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
samba clients ziox Linux - Networking 0 10-13-2005 03:25 PM
SAMBA with WIN98 and XP ragner123 Linux - Networking 3 10-31-2004 01:32 PM
Samba: Authenticate Linux-Clients in Samba Domain & Mount mule Linux - Software 0 12-10-2003 01:21 AM
Can't login to Samba from my clients Madrinator Linux - Networking 2 05-19-2003 06:10 PM
win98 samba suprabeener Linux - Networking 6 08-17-2001 06:51 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 05:05 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