LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-16-2002, 05:54 PM   #1
Joe Soap
Member
 
Registered: Sep 2001
Location: Switzerland
Distribution: Debian, Sidux
Posts: 225

Rep: Reputation: 30
Connecting Windows and Linux


Hi

I'm trying to copy files between my laptop (running Win2K) and PC (running Suse 7.3). I played aroung with smb.conf, started and stopped smbd and nmbd several times and basically poked and prodded everywhere. At this stage I can ping the pc from the laptop and vice versa, but I still cannot see my linuxbox in Network Neighborhood (or whatever it's called in this release of Windows) and when I try to access the local network in Konqueror, it pops up a msg saying "could not connect to host localhost".

All help will be gratefully accepted.

Thanks
Joe
 
Old 02-19-2002, 11:13 AM   #2
oUTLAw
LQ Newbie
 
Registered: Sep 2001
Location: Austria
Distribution: SuSE 8.0
Posts: 18

Rep: Reputation: 0
1. Ok, at first, open the /etc/rc.config file an look for the entry START_SMB, and set it to "yes" (START_SMB="yes")

2. Then open the file /etc/samba/smb.conf and replace it with my example:

;
; /etc/samba/smb.conf
;
; Copyright (c) 1999 SuSE GmbH Nuernberg, Germany.
;
[global]
workgroup = example_wg ;replace it with your wg name
guest account = nobody
keep alive = 30
os level = 2
kernel oplocks = false
security = user
read size = 16384
; character set = ISO08859-1
client code page = 850
read raw = yes
socket options = IPTOS_LOWDELAY TCP_NODELAY
netbios name = example ;replace it with your netbios name
name resolve order = bcast
min password length = 0

; Uncomment the following, if you want to use an existing
; NT-Server to authenticate users, but don't forget that
; you also have to create them locally!!!
; security = server
; password server = 192.168.1.10
encrypt passwords = yes

printing = bsd
printcap name = /etc/printcap
load printers = yes

socket options = TCP_NODELAY

map to guest = Bad User

; Uncomment this, if you want to integrate your server
; into an existing net e.g. with NT-WS to prevent nettraffic
; local master = no
local master = yes

; Please uncomment the following entry and replace the
; ip number and netmask with the correct numbers for
; your ethernet interface.
interfaces = eth0 192.168.1.1/255.255.255.0

; If you want Samba to act as a wins server, please set
; 'wins support = yes'
; wins support = yes

; If you want Samba to use an existing wins server,
; please uncomment the following line and replace
; the dummy with the wins server's ip number.
; wins server = 192.168.1.1

; Do you wan't samba to act as a logon-server for
; your windows 95/98 clients, so uncomment the
; following:
; logon script =%U.bat
; domain logons = yes
; domain master = yes
; [netlogon]
; path = /netlogon

; allow to log in into your homedirs
[homes]
comment = Heimatverzeichnis
browseable = no
read only = no
create mode = 0750

; my cdrom dir
[cdrom]
comment = CD-ROM
path = /cdrom
read only = yes
locking = no

[tmp]
comment = Temporary Path
path = /tmp
read only = no

;[misc]
; guest ok = yes
; path=/home/%S

3. Now you have to create encrypted passwords for the users who are allowed to access theirs homedirs (you have to be logged in as root).
To add a new user to the passwordfile /etc/samba/smbpasswd you have to execute (replace "username" and "password" with your data)
smbpasswd -a username password

You can also change passwords with this command.

4. Now you have to restart the saba service
Do this with
/etc/init.d/smb restart


I hope this was a help for you -> good luck (for more questions write to elri@gmx.at)
 
Old 02-20-2002, 12:18 AM   #3
Joe Soap
Member
 
Registered: Sep 2001
Location: Switzerland
Distribution: Debian, Sidux
Posts: 225

Original Poster
Rep: Reputation: 30
Thank you very much for your clear and detailed reply. It is greatly appreciated.

Joe
 
Old 02-20-2002, 05:46 AM   #4
digital bots
Member
 
Registered: Feb 2002
Distribution: Slack 10.1
Posts: 215

Rep: Reputation: 30
you wouldnt happen to know how to do this in red hat 7.2 would ya
 
Old 02-20-2002, 01:56 PM   #5
oUTLAw
LQ Newbie
 
Registered: Sep 2001
Location: Austria
Distribution: SuSE 8.0
Posts: 18

Rep: Reputation: 0
Sorry I'm not working on redhat, but I'll help you as much as I can:

1. At first you have to find your samba configuration file (if it is named smb.conf too):
locate smb.conf

Now you can see all your smb.conf* files. Under RedHat it's maybe in /etc/smb.conf

2. Make a bakup of the file and then fill it with my example (see upper)

3. Run "setup" and go to the entry system..* (i don't know the exactly name), but anywhere there you can find a list of services where you have to enable samba.

4. Now you have to restart the samba daemon. I really do not know where the script is placed in RH (maybe /etc/init.d/smb or /etc/init.d/samba) so the best will be if you restart your machine
but if there is such a script file you can run it with the argument restart (example: /etc/init.d/smb restart)

Good LUCK
 
  


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
connecting windows 98 to linux wildeboer Linux - Networking 2 04-18-2005 11:40 AM
Connecting Windows XP to Linux bsengland Linux - Networking 2 12-16-2004 11:17 AM
Connecting linux and windows nawialkair Linux - Networking 7 06-19-2004 08:09 AM
Connecting Windows XP to linux shibdas Linux - Networking 1 07-05-2003 01:49 PM
Connecting Linux to a Windows ME machine amykhar Linux - Networking 2 05-08-2001 07:41 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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