LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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-16-2007, 08:14 AM   #1
chus_84
Member
 
Registered: Feb 2007
Posts: 38

Rep: Reputation: 15
please repond to my problem


I have to change any properties i windows system to get the shared file in linux system??? B'coz here, in the lan around 300 systems are connected. Samba server is running well.

when i type command "findsmb" on my linux system the output is:




*=DMB
+=LMB
IP ADDR NETBIOS NAME WORKGROUP/OS/VERSION
---------------------------------------------------------------------
Please tell me solution. i can't change 300 systems setting for shared files..

Is there any samba video available??????????//
 
Old 02-16-2007, 09:16 AM   #2
camorri
LQ 5k Club
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 15.0, current, slackware-arm-currnet
Posts: 6,214

Rep: Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849
First of all, please select a title that describes your question or problem. Something like "Unable to see windows shares" would be descriptive. "Please help" is a turn off, and you will get poor responses, if any.

Second, it would help a lot for you to provide much more information about your question. I understand you are on a lan with about 300 machines, some windows and some linux systems. There is a samba server that is running well.

You did not state if you are running the findsmb command from the server, or from another linux machine. So it is not clear if you can not see windows shares form the server, or some other linux system. It also helps if you take the time to tell us the distro and version of the software you are running. It doesn't all ways fix anything, but it does save time and messages asking.

Now if you run findsmb from a linux system, and you do not give it a sub-net to search, it will search only the sub-net the linux system is on. Example, if your IP address is 192.168.0.2 only the 192.168.0.xxx machines are searched. If there are no smb shares there, then you won't list any systems. If there are know shares on 192.168.1.xxx sub-net, then a command of 'findsmb 192.168.1.0 shoudld search that sub-net and provide some output.

Your other question, as I understand it is, Do you have to change settings on windows shares to be seen in linux? The answer is no, assuming these machines are sharing on the network normally.

Hope this helps.
 
Old 02-16-2007, 11:03 AM   #3
chus_84
Member
 
Registered: Feb 2007
Posts: 38

Original Poster
Rep: Reputation: 15
samba problem

Thanks for ur reply. i ran findsmb on server side.

I couldn't see samba from any windows or any linux machines.Server is running fine. But i couldn't understand the problem.

my smb.conf is


[global]
workgroup = MSHOME
server string = Samba
map to guest = Bad User
printcap name = cups
logon path = \\%L\profiles\.msprofile
logon drive = P:
logon home = \\%L\%U\.9xprofile
wins support = Yes
usershare allow guests = Yes
hosts allow = 172.16.32.1, 172.16.55.255
cups options = raw
include = /etc/samba/dhcp.conf

[homes]
comment = Home Directories
valid users = %S, %D%w%S
read only = No
inherit acls = Yes
browseable = No

[profiles]
comment = Network Profiles Service
path = %H
read only = No
create mask = 0600
directory mask = 0700
store dos attributes = Yes

[users]
comment = All users
path = /home
read only = No
inherit acls = Yes
veto files = /aquota.user/groups/shares/

[groups]
comment = All groups
path = /home/groups
read only = No
inherit acls = Yes

[printers]
comment = All Printers
path = /var/tmp
create mask = 0600
printable = Yes
browseable = No

[print$]
comment = Printer Drivers
path = /var/lib/samba/drivers
write list = @ntadmin, root
force group = ntadmin
create mask = 0664
directory mask = 0775

[test]
available = No
Please help me in accessing shared files....please.......
 
Old 02-16-2007, 12:16 PM   #4
PTrenholme
Senior Member
 
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,187

Rep: Reputation: 354Reputation: 354Reputation: 354Reputation: 354
I'd never noticed the findsmb command, and -- on my FC6 system -- it doesn't appear to work:
Code:
$ findsmb

                                *=DMB
                                +=LMB
IP ADDR         NETBIOS NAME     WORKGROUP/OS/VERSION
---------------------------------------------------------------------
$ smbclient -L tss-1
Password:
Domain=[TSS-1] OS=[Windows 5.1] Server=[Windows 2000 LAN Manager]

        Sharename       Type      Comment
        ---------       ----      -------
        E$              Disk      Default share
        K               Disk
        IPC$            IPC       Remote IPC
        D$              Disk      Default share
        print$          Disk      Printer Drivers
        SharedDocs      Disk
        HPOffice        Printer   HP Printer 6200
        C               Disk
        D               Disk
        O               Disk
        R               Disk
        L               Disk
        M               Disk
        N               Disk
        E               Disk
        ADMIN$          Disk      Remote Admin
        C$              Disk      Default share
        H               Disk
        I               Disk
        J               Disk
Domain=[TSS-1] OS=[Windows 5.1] Server=[Windows 2000 LAN Manager]

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

        Workgroup            Master
 
Old 02-16-2007, 01:56 PM   #5
camorri
LQ 5k Club
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 15.0, current, slackware-arm-currnet
Posts: 6,214

Rep: Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849
I ran the findsmb command on my lan, it sees samba ( linux ) systems, but does not report any windows systems, even though I had an XP system running. Here is what I saw as root user.

Code:
findsmb

IP ADDR         NETBIOS NAME   WORKGROUP/OS/VERSION
---------------------------------------------------------------------
WARNING: The "printer admin" option is deprecated
Domain=[WORKGROUP] OS=[Unix] Server=[Samba 3.0.14a-Debian]
Domain=[WORKGROUP] OS=[Unix] Server=[Samba 3.0.14a-Debian]
192.168.1.13            KNOPPIX       +[        WORKGROUP     ]
WARNING: The "printer admin" option is deprecated
Domain=[CLIFFSHOME] OS=[Unix] Server=[Samba 3.0.22]
Domain=[CLIFFSHOME] OS=[Unix] Server=[Samba 3.0.22]
192.168.1.22            PRESTO        +[        CLIFFSHOME    ]
Form my Mandriva 2006 system I can see one laptop booted on a Knoppix live CD and my Xubuntu system on another laptop. I can connect to the XP system, so I'm not at all sure why findsmb doesn't find it.
 
Old 02-17-2007, 10:50 AM   #6
chus_84
Member
 
Registered: Feb 2007
Posts: 38

Original Poster
Rep: Reputation: 15
How to recognize shared windows machines

Thanks Dude for ur kind reply. pls stay with me till i am able to access shared files pls dude...........pls..............


My samba server is running and i am able to see samba server from another windows machine in NETWORK PLACES. Then how to recognize windows machines which are providing shared files? and how to access that machine?
 
Old 02-17-2007, 02:23 PM   #7
teckk
LQ Guru
 
Registered: Oct 2004
Distribution: Arch
Posts: 5,137
Blog Entries: 6

Rep: Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826
If I understand that..
You are trying to access samba shares from a Linux box?
You can mount them
http://linuxcommand.org/man_pages/mount8.html
Something like as root
Code:
mount -t smbfs //machinename/share /your/mounting/point
You can open konqueror and type smb://sharename in the address bar. (Substitute your share name)

You can use nautilus or another file mgr to navigate to the share.

You can telnet or ftp into a windows box.

Last edited by teckk; 02-17-2007 at 02:24 PM.
 
Old 02-17-2007, 07:41 PM   #8
PTrenholme
Senior Member
 
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,187

Rep: Reputation: 354Reputation: 354Reputation: 354Reputation: 354
Just a "heads up," chus 84: you never mentioned you distribution, but some distributions (e.g., my Fedora system) no longer use the smbfs, preferring the cifs type.

As to finding out which Windows systems on you network are offering shares, as I showed you, above, the smbclient command is able to do it for me.
 
Old 02-17-2007, 09:07 PM   #9
chus_84
Member
 
Registered: Feb 2007
Posts: 38

Original Poster
Rep: Reputation: 15
Finding shared windows machines...

Thanks to all who has responded to my problem. Now, i am able to access windows systems. But, the problem is that how to check the systems which are providing shares b'coz this LAN has 400 machines. Every time i am entering windows machine's ip address in address bar, that is the problem...i tried from konqueror it is showing an error message "Unable to find any workgroups in your local network. This might be caused by an enabled firewall." , i even tried by disabling firewall but no result and one more problem is that how to stream video and audio ...........I am using SuSE 10.2

Last edited by chus_84; 02-17-2007 at 11:16 PM.
 
Old 02-18-2007, 07:02 AM   #10
camorri
LQ 5k Club
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 15.0, current, slackware-arm-currnet
Posts: 6,214

Rep: Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849
Your last post is a little confusing. Let me see if I can help.

To avoid entering the IP address of the machine you want to connect to, you can create a /etc/hosts file. This is a plain text file with a list of ip addresses and machine hostnames. Here is a sample.

Code:
192.168.1.22            Presto
127.0.0.1               localhost desktop desktop.none sluggy
192.168.1.23            Snail
192.168.1.15            presto_2
#               generated by drakhosts
192.168.1.20            MrBurnie
192.168.1.12            I-think
So if I want to connect to 192.168.1.23, I enter Snail in place of the IP address. If this file becomes too large and unmanageable, the network needs a DNS server. Of course that is up to whom ever manages the network.

In Konqueror, to find the workgroups, only enter smb:/ and press enter, don't specify any more. If there are workgroups to be found, and you have smbclient installed, you should get an icon for each workgroup. If you chick an icon, then the systems belonging to that workgroup should list.

If you get no results, SMB is considered a non routable protocol. That means routers do not forward the smb packets to other lan segments. Some routers can be configured to forward the protocol, but that is up to the networks admins.

You should start new threads for your audio and video issues.
 
Old 02-18-2007, 08:33 AM   #11
chus_84
Member
 
Registered: Feb 2007
Posts: 38

Original Poster
Rep: Reputation: 15
Finding machines with shared file

Thanks u very much,

Entering names is more or less like entering ip address, and i can't map all the system from 172.16.32.1 to 172.16.55.255. So, is there any other alternative in finding machines with shared files?


Once again thanks for ur reply. I hope soon i will receive solution from u.....thanks.......

Last edited by chus_84; 02-18-2007 at 08:41 AM.
 
Old 02-18-2007, 08:34 AM   #12
chus_84
Member
 
Registered: Feb 2007
Posts: 38

Original Poster
Rep: Reputation: 15
Finding machines with shared file

Thanks u very much,

Entering names is more or less like entering ip address, and i can't map all the system from 172.16.32.1 to 172.16.55.255. So, is there any other alternative in finding machines with shared files? like NETSCAN for windows.


Once again thanks for ur reply. I hope soon i will receive solution from u.....thanks.......



Sorry for duplicate messages net has disconnected.................

Last edited by chus_84; 02-18-2007 at 08:38 AM.
 
Old 02-18-2007, 08:47 AM   #13
camorri
LQ 5k Club
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 15.0, current, slackware-arm-currnet
Posts: 6,214

Rep: Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849
What happened when you entered smb:/ and pressed enter on Konqueror??? This is a way to do what you asked.

There are also a gui fronts end called 'LinNeighborhood' and 'Smb4K' You could install either or both and give them a try. If you are still not getting a response, I suspect there are router issues in the network.

Last edited by camorri; 02-18-2007 at 08:50 AM.
 
Old 02-18-2007, 09:37 AM   #14
chus_84
Member
 
Registered: Feb 2007
Posts: 38

Original Poster
Rep: Reputation: 15
LinNeighborhood

Thanks, I have installed LinNeighborhood yesterday it self. when ever i click on scan entire network its getting closed.

Now about konqueror, when i opened smb shares folder initially it has shown an error message asUnable to find any workgroups in your local network. This might be caused by an enabled firewall., then after i have disabled firewall then i tried i got all the workgroups but i am not getting any machines belonging to those workgroups. I am not getting these workgroups every time when i open smbshares......
 
Old 02-18-2007, 10:00 AM   #15
PTrenholme
Senior Member
 
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,187

Rep: Reputation: 354Reputation: 354Reputation: 354Reputation: 354
I just tried smb4k on my system, and got nothing until I edited the configuration to use smbclient to search for shares. I also specified a default Windows user id and password, since my local workgroup requires a a password for access, and our Windows user ids differ from the Linux ones, but I suspect that the prolem was the default search method.

Note: At this time my nmb service does not run correctly. That's because it's started during the boot process, and I'm on a laptop where the WPA connection is not activated before the boot starts smb. Since it doesn't impact my smb usage, I haven't yet bothered to correct it.
 
  


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
perl problem? apache problem? cgi problem? WorldBuilder Linux - Software 1 09-17-2003 07:45 PM

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

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