LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 02-13-2005, 03:29 AM   #1
Kimbo
LQ Newbie
 
Registered: Feb 2005
Distribution: Ubuntu 7.04
Posts: 19

Rep: Reputation: 0
Unhappy FC3 on a windows network


Hi!

I got a problem with Fedora Core 3 (KDE), I dont know how to access other windows pc's.
In windows XP, I would have done it with "\\larry" or "\\jane".

I got Samba server up and running and with Lisa deamon, but when I use Konqueror and click on "LAN Browser" I see alot of ip's, in range from "127.0.0.2" -> "127.0.0.201", and the last one is "localhost.localdomain". The location is "lan://localhost/" (what ever that is).

( There was no problem with the internet connection when I installed FC3. It was up and running with no adjustment. I got my ip from DNS (I think). )
 
Old 02-13-2005, 06:41 AM   #2
nonzero
Member
 
Registered: Feb 2005
Distribution: Debian FC4 LFS Slackware
Posts: 174

Rep: Reputation: 31
The only problem is that your post does not offer us enough information to help you. If your question is I would like to connect from a Linux system to a Windows system through Samba. We need to know how you configured it;
1. Is your network configured as 'Static' or 'Dynamic' IP addressing?
2. Have you used the system-config-network tool provided in your distribution?
3. Have you used the netowrk configuration tool provided with KDE to configure
your Samba shares?
4. Have you read the documentation?

nz
 
Old 02-13-2005, 07:52 AM   #3
Kimbo
LQ Newbie
 
Registered: Feb 2005
Distribution: Ubuntu 7.04
Posts: 19

Original Poster
Rep: Reputation: 0
Red face Alot of things

1. Is your network configured as 'Static' or 'Dynamic' IP addressing?
It is using Dynamic IP addressing


2. Have you used the system-config-network tool provided in your distribution?
As root I runned: "system-config-network"

And got this dialog: Network Configuration

-> Devices: Profile Status Device Nickname Type
yes Active eth0 eth0 Eternet


-> Hardware: Description Type Device Status
3Com Corporation 3c940 Ethernet eth0 ok


-> IPsec: Profile Type Destination Nickname

(it appers to be empty)


-> DNS: Hostname: localhost.localdomain
Primary DNS: 159.38.123.3
Secondary DNS: 159.38.123.5
Tertiary DNS: 159.38.123.4
DNS search path: stdpla.han.no


-> Hosts: IP: Name: Aliases:

(it appers to be empty)


3. Have you used the netowrk configuration tool provided with KDE to configure
your Samba shares?
Yes I have.
I also have checked that "smb" is up and running, also I have runned: smb restart
and got this:

[root@pc5106 init.d]# ./smb restart
Shutting down SMB services: [ OK ]
Shutting down NMB services: [ OK ]
Starting SMB services: [ OK ]
Starting NMB services: [ OK ]


Here is what in the samba configuration file: /etc/samba/smb.conf
#
# This is the main Samba configuration file. You should read the
# smb.conf(5) manual page in order to understand the options listed
# here. Samba has a huge number of configurable options (perhaps too
# many!) most of which are not shown in this example
#
# Any line which starts with a ; (semi-colon) or a # (hash)
# is a comment and is ignored. In this example we will use a #
# for commentry and a ; for parts of the config file that you
# may wish to enable
#
# NOTE: Whenever you modify this file you should run the command "testparm"
# to check that you have not made any basic syntactic errors.
#
#======================= Global Settings =====================================
[global]

# workgroup = NT-Domain-Name or Workgroup-Name
workgroup = alpinveien

# server string is the equivalent of the NT Description field
server string = Samba Server

# This option is important for security. It allows you to restrict
# connections to machines which are on your local network. The
# following example restricts access to two C class networks and
# the "loopback" interface. For more examples of the syntax see
# the smb.conf man page
; hosts allow = 192.168.1. 192.168.2. 127.

# if you want to automatically load your printer list rather
# than setting them up individually then you'll need this
# printcap name = /etc/printcap

# It should not be necessary to spell out the print system type unless
# yours is non-standard. Currently supported print systems include:
# bsd, sysv, plp, lprng, aix, hpux, qnx
; printing = cups

# This option tells cups that the data has already been rasterized
# cups options = raw

# Uncomment this if you want a guest account, you must add this to /etc/passwd
# otherwise the user "nobody" is used
guest account = nobody

# this tells Samba to use a separate log file for each machine
# that connects
log file = /var/log/samba/%m.log
# all log information in one file
# log file = /var/log/samba/smbd.log

# Put a capping on the size of the log files (in Kb).
max log size = 50

# Security mode. Most people will want user level security. See
# security_level.txt for details.
; security = user
# Use password server option only with security = server
; password server = <NT-Server-Name>

# Password Level allows matching of _n_ characters of the password for
# all combinations of upper and lower case.
; password level = 8
; username level = 8

# You may wish to use password encryption. Please read
# ENCRYPTION.txt, Win95.txt and WinNT.txt in the Samba documentation.
# Do not enable this option unless you have read those documents
; encrypt passwords = yes
; smb passwd file = /etc/samba/smbpasswd

# The following are needed to allow password changing from Windows to
# update the Linux system password also.
# NOTE: Use these with 'encrypt passwords' and 'smb passwd file' above.
# NOTE2: You do NOT need these to allow workstations to change only
# the encrypted SMB passwords. They allow the Unix password
# to be kept in sync with the SMB password.
; unix password sync = Yes
; passwd program = /usr/bin/passwd %u
; passwd chat = *New*UNIX*password* %n\n *ReType*new*UNIX*password* %n\n *passwd:*all*authentication*tokens*updated*successfully*

# Unix users can map to different SMB User names
; username map = /etc/samba/smbusers

# Using the following line enables you to customise your configuration
# on a per machine basis. The %m gets replaced with the netbios name
# of the machine that is connecting
; include = /etc/samba/smb.conf.%m

# Most people will find that this option gives better performance.
# See speed.txt and the manual pages for details
socket options = TCP_NODELAY SO_SNDBUF=8192 SO_RCVBUF=8192

# Configure Samba to use multiple interfaces
# If you have multiple network interfaces then you must list them
# here. See the man page for details.
; interfaces = 192.168.12.2/24 192.168.13.2/24

# Configure remote browse list synchronisation here
# request announcement to, or browse list sync from:
# a specific host or from / to a whole subnet (see below)
; remote browse sync = 192.168.3.25 192.168.5.255
# Cause this host to announce itself to local subnets here
; remote announce = 192.168.1.255 192.168.2.44

# Browser Control Options:
# set local master to no if you don't want Samba to become a master
# browser on your network. Otherwise the normal election rules apply
; local master = no

# OS Level determines the precedence of this server in master browser
# elections. The default value should be reasonable
; os level = 33

# Domain Master specifies Samba to be the Domain Master Browser. This
# allows Samba to collate browse lists between subnets. Don't use this
# if you already have a Windows NT domain controller doing this job
; domain master = yes

# Preferred Master causes Samba to force a local browser election on startup
# and gives it a slightly higher chance of winning the election
; preferred master = yes

# Enable this if you want Samba to be a domain logon server for
# Windows95 workstations.
; domain logons = yes

# if you enable domain logons then you may want a per-machine or
# per user logon script
# run a specific logon batch file per workstation (machine)
; logon script = %m.bat
# run a specific logon batch file per username
; logon script = %U.bat

# Where to store roving profiles (only for Win95 and WinNT)
# %L substitutes for this servers netbios name, %U is username
# You must uncomment the [Profiles] share below
; logon path = \\%L\Profiles\%U

# All NetBIOS names must be resolved to IP Addresses
# 'Name Resolve Order' allows the named resolution mechanism to be specified
# the default order is "host lmhosts wins bcast". "host" means use the unix
# system gethostbyname() function call that will use either /etc/hosts OR
# DNS or NIS depending on the settings of /etc/host.config, /etc/nsswitch.conf
# and the /etc/resolv.conf file. "host" therefore is system configuration
# dependant. This parameter is most often of use to prevent DNS lookups
# in order to resolve NetBIOS names to IP Addresses. Use with care!
# The example below excludes use of name resolution for machines that are NOT
# on the local network segment
# - OR - are not deliberately to be known via lmhosts or via WINS.
; name resolve order = wins lmhosts bcast

# Windows Internet Name Serving Support Section:
# WINS Support - Tells the NMBD component of Samba to enable it's WINS Server
; wins support = yes

# WINS Server - Tells the NMBD components of Samba to be a WINS Client
# Note: Samba can be either a WINS Server, or a WINS Client, but NOT both
; wins server = w.x.y.z

# WINS Proxy - Tells Samba to answer name resolution queries on
# behalf of a non WINS capable client, for this to work there must be
# at least one WINS Server on the network. The default is NO.
; wins proxy = yes

# DNS Proxy - tells Samba whether or not to try to resolve NetBIOS names
# via DNS nslookups. The built-in default for versions 1.9.17 is yes,
# this has been changed in version 1.9.18 to no.
dns proxy = no
winbind uid = 16777216-33554431
winbind gid = 16777216-33554431
restrict anonymous = no
domain master = no
preferred master = no
max protocol = NT
ldap ssl = No
server signing = Auto
username map = /etc/samba/smbusers
; encrypt passwords = yes
guest ok = yes
map to guest = Bad User
netbios name =
; encrypt passwords = yes
; guest ok = no
; guest account = nobody

# ADDED BY ME
[media]
path = /mnt/media
guest ok = yes

[work]
path = /mnt/work
guest ok = yes
read only = no
# END OF "/etc/samba/smb.conf"


4. Have you read the documentation?
No, I really thought that "system-config-network" would do a standard windows network, without too many problems. And I have searched the inet for several hours now, im getting tried of this... I hope u guys could help me out. Thanks!

Last edited by Kimbo; 02-13-2005 at 07:54 AM.
 
Old 02-13-2005, 03:29 PM   #4
nonzero
Member
 
Registered: Feb 2005
Distribution: Debian FC4 LFS Slackware
Posts: 174

Rep: Reputation: 31
Run "testparm" as the smb.conf comment states. What does it return?

Although you can get very excited about wanting to get something fixed, try ONE change at a time now
and see if the situation is corrected. It looks like you want to connect to your Windows shares from the Linux machine.
if this is correct, then the following statement should be true. "I want my Linux machine to be a Windows client."

Please check /etc/services and see if the following ports are open

netbios-ns 137/tcp # NETBIOS Name Service
netbios-ns 137/udp
netbios-dgm 138/tcp # NETBIOS Datagram Service
netbios-dgm 138/udp
netbios-ssn 139/tcp # NETBIOS session service
netbios-ssn 139/udp

if not then you will have to make it so and restart inetd or xinetd (depending on what you are using)

Next, did you configure a user using smbpasswd? If not then do it.

Next, not knowing how your DNS is configured I do not understand why DNS returns 'Hostname: localhost.localdomain'.

Just CHECK /etc/sysconfig/networking/profiles/default to see if it is telingl you the truth about your DNS configuration

My network is set up with static IP's but DNS worked with the following files set as follows;

hosts

# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost.localdomain localhost
192.168.1.1 dslrouter.yada.net dslrouter
192.168.1.44 rocinante.yada.net rocinante
192.168.1.45 pegasus.yada.net pegasus
192.168.1.38 blacky.yada.net blacky
192.168.1.40 shadowfax.yada.net shadowfax

ifconfig-eth0

DEVICE=eth0
ONBOOT=yes
BOOTPROTO=static ***yours would be DNS***
IPADDR=192.168.1.44 ***can't tell you what this line would be on your setup***
NETMASK=255.255.255.0
GATEWAY=192.168.1.1 ***should be your gateway as listed in your post***

resolv.conf

nameserver 192.168.1.1 ***your file should reflect the values stated in your post***
## any number of nameservers here ##

**************************************************************************************************** ********

This stanza in your smb.conf file got me on several occasions please review it and make changes as
necessary after reviewing the noted documentation.

# Password Level allows matching of _n_ characters of the password for
# all combinations of upper and lower case.
; password level = 8
; username level = 8

# You may wish to use password encryption. Please read
# ENCRYPTION.txt, Win95.txt and WinNT.txt in the Samba documentation.
# Do not enable this option unless you have read those documents
; encrypt passwords = yes
; smb passwd file = /etc/samba/smbpasswd

# The following are needed to allow password changing from Windows to
# update the Linux system password also.
# NOTE: Use these with 'encrypt passwords' and 'smb passwd file' above.
# NOTE2: You do NOT need these to allow workstations to change only
# the encrypted SMB passwords. They allow the Unix password
# to be kept in sync with the SMB password.
; unix password sync = Yes
; passwd program = /usr/bin/passwd %u
; passwd chat = *New*UNIX*password* %n\n *ReType*new*UNIX*password* %n\n *passwd:*all*authentication*tokens*updated*successfully*

# Unix users can map to different SMB User names
; username map = /etc/samba/smbusers

**************************************************************************************************** **********
This stanza may be the culprit using the 'Hostname: localhost.localdomain' question I had above
as a symptom. Add host to the lookup table, and restart Samba

# All NetBIOS names must be resolved to IP Addresses
# 'Name Resolve Order' allows the named resolution mechanism to be specified
# the default order is "host lmhosts wins bcast". "host" means use the unix
# system gethostbyname() function call that will use either /etc/hosts OR
# DNS or NIS depending on the settings of /etc/host.config, /etc/nsswitch.conf
# and the /etc/resolv.conf file. "host" therefore is system configuration
# dependant. This parameter is most often of use to prevent DNS lookups
# in order to resolve NetBIOS names to IP Addresses. Use with care!
# The example below excludes use of name resolution for machines that are NOT
# on the local network segment
# - OR - are not deliberately to be known via lmhosts or via WINS.
; name resolve order = wins lmhosts bcast

**************************************************************************************************** ***********

This reply is probably foo wordy for quick understanding but keep at it and as I said, make one change at
a time then restart the daemons and see where it goes.

nz
 
Old 02-13-2005, 03:36 PM   #5
nonzero
Member
 
Registered: Feb 2005
Distribution: Debian FC4 LFS Slackware
Posts: 174

Rep: Reputation: 31
I am sorry I also wanted you to check your inetd.conf or xinetd.conf files to see if the proper Samba services were being started. What you are seeing in Lisa tells me that you have a Samba network of one - your localhost.

nz
 
Old 02-13-2005, 04:49 PM   #6
Kimbo
LQ Newbie
 
Registered: Feb 2005
Distribution: Ubuntu 7.04
Posts: 19

Original Poster
Rep: Reputation: 0
----> Run "testparm" as the smb.conf comment states. What does it return?

[kim@pc5106 ~]$ testparm
Load smb config files from /etc/samba/smb.conf
Processing section "[media]"
Processing section "[work]"
Loaded services file OK.
Server role: ROLE_STANDALONE
Press enter to see a dump of your service definitions

# Global parameters
[global]
workgroup = ALPINVEIEN
netbios name =
server string = Samba Server
map to guest = Bad User
username map = /etc/samba/smbusers
log file = /var/log/samba/%m.log
max log size = 50
server signing = auto
socket options = TCP_NODELAY SO_SNDBUF=8192 SO_RCVBUF=8192
preferred master = No
domain master = No
dns proxy = No
ldap ssl = no
idmap uid = 16777216-33554431
idmap gid = 16777216-33554431
guest ok = Yes

[media]
path = /mnt/media

[work]
path = /mnt/work
read only = No
[kim@pc5106 ~]$


----> Please check /etc/services and see if the following ports are open

I found this is in /etc/services:
netbios-ns 137/tcp # NETBIOS Name Service
netbios-ns 137/udp
netbios-dgm 138/tcp # NETBIOS Datagram Service
netbios-dgm 138/udp
netbios-ssn 139/tcp # NETBIOS session service
netbios-ssn 139/udp



----> Next, did you configure a user using smbpasswd? If not then do it.
Here I first got an error.. no user accounts, I have added an user(kim).


---->Next, not knowing how your DNS is configured I do not understand why DNS returns 'Hostname: localhost.localdomain'.
---->Just CHECK /etc/sysconfig/networking/profiles/default to see if it is telingl you the truth about your DNS configuration
---->My network is set up with static IP's but DNS worked with the following files set as follows;

Here is my files:

this is what in: /etc/sysconfig/networking/profiles/default/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost.localdomain localhost

this is what in: /etc/sysconfig/networking/profiles/default/ifcfg-eth0
DEVICE=eth0
BOOTPROTO=dhcp
ONBOOT=yes
TYPE=Ethernet

this is what in: /etc/sysconfig/networking/profiles/default/resolv.conf
; generated by /sbin/dhclient-script
search stdpla.han.no
nameserver 159.38.123.3
nameserver 159.38.123.5
nameserver 159.38.123.4
nameserver 159.37.0.181


----> I am sorry I also wanted you to check your inetd.conf or xinetd.conf files to see if the proper Samba services were being started. What you are seeing in Lisa tells me that you have a Samba network of one - your localhost.
Here is the file: /etc/xinetd.conf
#
# Simple configuration file for xinetd
#
# Some defaults, and include /etc/xinetd.d/

defaults
{
instances = 60
log_type = SYSLOG authpriv
log_on_success = HOST PID
log_on_failure = HOST
cps = 25 30
}

includedir /etc/xinetd.d


I still dont see any changes, thanks anyway!
 
Old 02-13-2005, 06:24 PM   #7
nonzero
Member
 
Registered: Feb 2005
Distribution: Debian FC4 LFS Slackware
Posts: 174

Rep: Reputation: 31
https://www6.software.ibm.com/develo...n/l-lpnsamba//

You will have to register with their site but this info should get you closer.

nz
 
Old 02-14-2005, 09:15 AM   #8
Kimbo
LQ Newbie
 
Registered: Feb 2005
Distribution: Ubuntu 7.04
Posts: 19

Original Poster
Rep: Reputation: 0
registration?

where's the registration page?

When I'm entering this link you posted, I'm directed to a login. I don't got any user name or password!

I need to know how Samba should be configured, so I can access some shared files on a WinXP system.
Any help would be great full! (How hard can it actually be?)

Kim
 
Old 02-14-2005, 09:41 AM   #9
~=gr3p=~
Member
 
Registered: Feb 2005
Location: ~h3av3n~
Distribution: RHEL 4, Fedora Core 3,6,7 Centos 5, Ubuntu 7.04
Posts: 227

Rep: Reputation: 30
I have exactly same question. Does the information here :
http://www.benstrawbridge.com/links/...from-linux.php

means that you can access shared vfat/ntfs partitions i.e C:\,D:\ etc on Windows
The command didn't work properly on Fedora core 3

It gives me this message:
Quote:
Usage: mount.smbfs service mountpoint [-o options,...]
Version 3.0.0-14.3E

Options:
username=<arg> SMB username
password=<arg> SMB password
credentials=<filename> file with username/password
krb use kerberos (active directory)
netbiosname=<arg> source NetBIOS name
uid=<arg> mount uid or username
gid=<arg> mount gid or groupname
port=<arg> remote SMB port number
fmask=<arg> file umask
dmask=<arg> directory umask
debug=<arg> debug level
ip=<arg> destination host or IP address
workgroup=<arg> workgroup on destination
sockopt=<arg> TCP socket options
scope=<arg> NetBIOS scope
iocharset=<arg> Linux charset (iso8859-1, utf8)
codepage=<arg> server codepage (cp850)
unicode use unicode when communicating with server
lfs large file system support
ttl=<arg> dircache time to live
guest don't prompt for a password
ro mount read-only
rw mount read-write

This command is designed to be run from within /bin/mount by giving
the option '-t smbfs'. For example:
mount -t smbfs -o username=tridge,password=foobar //fjall/test /data/test
 
Old 02-14-2005, 09:50 AM   #10
nonzero
Member
 
Registered: Feb 2005
Distribution: Debian FC4 LFS Slackware
Posts: 174

Rep: Reputation: 31
Okay try this one.

http://linuxdevices.com/news/NS7157225667.html

nz
 
  


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
About FC3 in Windows XP dludenar Fedora 3 09-30-2005 04:55 AM
Before I plug my FC3 into a network... nick1 Fedora 3 07-06-2005 05:52 PM
How do I set up a network between FC3 and XP? todd93 Linux - Networking 23 03-20-2005 01:23 AM
FC3 Network Install mickeyboa Fedora 4 01-26-2005 01:22 AM
FC3 and Windows XP spawnuvsatan Fedora 5 09-05-2004 11:13 AM

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

All times are GMT -5. The time now is 07:08 PM.

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