Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum.

Reply
 
Thread Tools Search this Thread Display Modes
  #16  
Old 21st June 2012, 03:50 PM
sea's Avatar
sea Offline
"Shells" (of a sub world)
 
Join Date: May 2011
Location: Helvetic Federation (Swissh)
Age: 33
Posts: 2,600
linuxchrome
Re: SAMBA not seeing network machines (save one)

A copy paste of my scripts, hope they are of help (as examples):

Code:
SMBC="$(which smbclient)"
    if [ "" = "$SMBC" ]
    then	echo "Samba Client is missing, installing now: Hit CTRL+C _2_ times to abort!"
    		sudo yum install samba-client cifs-utils
    		SMBC="$(which smbclient)"
    fi
WriteSMBcred(){ # OUTPUTFILE USER DOMAIN PASSWORD
    # Write the Samba Credentials file
    #
        test -z $4 && echo "Usuage: WriteSMBcred OUTPUTFILE USER DOMAIN PASSWORD"
        printf "username = $2\n"   > "$1"
        printf "  domain = $3\n"  >> "$1"
        printf "password = $4\n"  >> "$1"
    }
NAS_Mount() { # NAS-NAME|NAS-IP  MOUNT-DIR
    # Mount the folders on the NAS to local environment
    #
        test  -z $2 && echo "Usage: Mount_NAS NAS-NAME|NAS-IP  MOUNT-DIR" && return 1
        sE "Mounting $1 to $2"
        [ ! -d "$2" ] && sudo mkdir -p "$2"
        test ! "root" = "$USER" && sudo chown $USER "$2"
		for each in $shares
		do      test ! -d "$2/$each" && sudo mkdir -p "$2/$each"
				text="Mounting: //$1/$each to $2/$each"
				sP "$text" "$PROGRESS"
		        cmds="mount -t cifs //$1/$each $2/$each -o rw,soft,credentials=$NAS_CONFIG"
		        sudo $cmds && sE "$text"  "$SUCCESS" || sE "$text" "$FAILURE"
		done
	}

    # Retrieve a list of folders on the NAS and connect to one of them
    SMB_Connect() { # NAS-NAME|NAS-IP
        select share in ${shares} back
        do  test $share = back && break
            $SMBC //$samba_device_name/$share -A $SAMBA_CRED
        done
    }

And the above striped down...

So basicly, to mount a certain share on the storage:
Code:
# Variables
export sharename=Downloads
export mountpoint=/mnt/nas/$sharename
export nasname=zoneminder

# actions
sudo mkdir -p $mountpoint
smbclient //$nasname/$sharename username=teraquad,password=password
or
mount -t cifs  //$nasname/$sharename $mountpoint -o rw,soft,credentials=/path/to/credential-file
Hope this helps.

BTW: I havent forgotten the random GDM background, the setup section is done, after the dev section is working too, i can (re-)approach the random selection thing again, and write a script to customize GDM in the setup section.
__________________
Fedora Manual: http://docs.fedoraproject.org
Script-Tools: https://sourceforge.net/projects/script-tools/
sudo st tweak repo toggle fedora-rawhide ; st iso dl-fed -respin && st iso usb

Last edited by sea; 21st June 2012 at 03:53 PM.
Reply With Quote
  #17  
Old 21st June 2012, 08:11 PM
Doug G Offline
Registered User
 
Join Date: Jul 2005
Posts: 640
windows_7firefox
Re: SAMBA not seeing network machines (save one)

Some guesses

Try specifying the windows username in smbclient with the -U switch

Try turning the windows firewall off temporarily on one of the unreachable machines and see if it magically becomes available

Review the windows network settings, particularly the workgroup settings on all machines.
__________________
======
Doug G
======
Reply With Quote
  #18  
Old 21st June 2012, 09:06 PM
lightman47 Offline
Registered User
 
Join Date: Apr 2009
Posts: 266
linuxchrome
Re: SAMBA not seeing network machines (save one)

hostnames are a Windows function, I believe, and don't work well in Linux. I turned off DHCP on my router, and run DHCPD on my server, assigning specific addresses to machines in the dhcpd.conf file. Then, on the same machine, I populated /etc/hosts with all these now "pseudo static" addresses and names and then turned on dnsmasq. Works like a charm - all the other machines run DHCP but always get the same IP address within my network. Dnsmasq then spreads all the name/IP mappings across the network to each machine - they all "know about each other".
Reply With Quote
  #19  
Old 22nd June 2012, 01:47 PM
teraquad's Avatar
teraquad Online
Registered User
 
Join Date: Apr 2010
Location: New Bern NC USA
Age: 55
Posts: 217
linuxfirefox
Re: SAMBA not seeing network machines (save one)

Thanks for the replys!

I installed Smb4K on my machine and found some interesting results. Attached is a screen shot of the them. The only 2 that are correct are in the hosts file. The rest resolve to an unknown ip outside the network. An interesting note is that on installation Smb4K resolved all ip's correctly. Not sure what's up there. On the two that resolve the shares are browsable. But the one that appears erratically in network servers. Never appears in Smb4K.

What i do know is that either the wrong method of obtaining the ip's is being selected or the function selected is itself is defective. In fc16 they were distinctly different functions selected separately in dnsswitch.conf. file. wins for all things local and dns for all things outside.

Just to be clear there is not nor was there ever a wins server involved, wins seems to have simply told nmb to do the work of finding the ip's via whatever method. But that was f16.

Thanks for all the input. the scripts helped my understanding.



hosts:
Code:
127.0.0.1        localhost.localdomain localhost
::1        localhost6.localdomain6 localhost6
192.168.1.70    zoneminder
192.168.1.6    iomega_1tb
resolve.conf:
Code:
# Generated by NetworkManager
nameserver 66.76.227.40
nameserver 208.180.42.68
nsswitch.conf:
Code:
#
# /etc/nsswitch.conf
#
# An example Name Service Switch config file. This file should be
# sorted with the most-used services at the beginning.
#
# The entry '[NOTFOUND=return]' means that the search for an
# entry should stop if the search in the previous entry turned
# up nothing. Note that if the search failed due to some other reason
# (like no NIS server responding) then the search continues with the
# next entry.
#
# Valid entries include:
#
#    nisplus            Use NIS+ (NIS version 3)
#    nis            Use NIS (NIS version 2), also called YP
#    dns            Use DNS (Domain Name Service)
#    files            Use the local files
#    db            Use the local database (.db) files
#    compat            Use NIS on compat mode
#    hesiod            Use Hesiod for user lookups
#    [NOTFOUND=return]    Stop searching if not found so far
#

# To use db, put the "db" in front of "files" for entries you want to be
# looked up first in the databases
#
# Example:
#passwd:    db files nisplus nis
#shadow:    db files nisplus nis
#group:     db files nisplus nis

passwd:     files
shadow:     files
group:      files
initgroups: files

#hosts:     db files nisplus nis dns
#hosts:     files mdns4_minimal [NOTFOUND=return] dns myhostname

hosts:      files mdns4_minimal [NOTFOUND=return] dns myhostname



# Example - obey only what nisplus tells us...
#services:   nisplus [NOTFOUND=return] files
#networks:   nisplus [NOTFOUND=return] files
#protocols:  nisplus [NOTFOUND=return] files
#rpc:        nisplus [NOTFOUND=return] files
#ethers:     nisplus [NOTFOUND=return] files
#netmasks:   nisplus [NOTFOUND=return] files     

bootparams: nisplus [NOTFOUND=return] files

ethers:     files
netmasks:   files
networks:   files
protocols:  files
rpc:        files
services:   files

netgroup:   nisplus

publickey:  nisplus

automount:  files nisplus
aliases:    files nisplus
Attached Thumbnails
Click image for larger version

Name:	Screenshot from 2012-06-22 07:52:49.png
Views:	26
Size:	64.4 KB
ID:	23300  
__________________
FC 19-64 Q9400 Home Built!
FC 19-64 Sony Vaio VGN-FW190!
FC 19-64 Dell Dimension 9100!
Win XP Dell Dimension 9100!
Droid X Phone, De N4ZPO!
Reply With Quote
  #20  
Old 22nd June 2012, 02:04 PM
sea's Avatar
sea Offline
"Shells" (of a sub world)
 
Join Date: May 2011
Location: Helvetic Federation (Swissh)
Age: 33
Posts: 2,600
linuxchrome
Re: SAMBA not seeing network machines (save one)

Note: i lack of practical experience, but i also love to mess with things i dont know to extend.

From the look at the screenshot, an impression arises...
Do you have by chance, running samba server on 2 computers?
Or otherway around, running 2 DHCP servers?

Assuming the Vaio and/or Zoneminder, to run one of the above services on both machines,
which will obviously break any 'proper' result.

Further i GUESS, you would need to change "myhostname" in the nsswitch.conf, but no idea to what

EDIT:
resolve.conf has 2 entries, which are external from the look at it.
So i guess you would need to figure out which ip is which computer (vaio, zoneminder) and decide which of those shall be the nameserver, permanently... and 'close' the other one.
I would try to replace the external ip's with an internalm one, refering to the computer you had set up as nameserver (dhcp/dns).
As these ip's look external, i think you either have created your own personal cloud, or a great security leak, depending on what you want/ed.
__________________
Fedora Manual: http://docs.fedoraproject.org
Script-Tools: https://sourceforge.net/projects/script-tools/
sudo st tweak repo toggle fedora-rawhide ; st iso dl-fed -respin && st iso usb

Last edited by sea; 22nd June 2012 at 02:09 PM.
Reply With Quote
  #21  
Old 23rd June 2012, 10:53 AM
teraquad's Avatar
teraquad Online
Registered User
 
Join Date: Apr 2010
Location: New Bern NC USA
Age: 55
Posts: 217
linuxfirefox
Re: SAMBA not seeing network machines (save one)

Thanks for the reply!

Hi,
I turned vaio off to eliminate any possibility of conflicts between it and others. This leaves Zoneminder the other misbehaving machine. the results are the same. I have also changed myhostname in both machines to properly indicate themselves.

Resolve.conf contains the ip of both of my outside dns servers. the ip's provided by my isp. I thought this file was for recurring addresses like for the local network.

I am wondering if there is a vital service that is not running. What should do local lookups.

An interesting note is that i can load the hosts file with the names and addresses and the 2 windows machines and 1 nas become available and usable under network servers. but not the ones that are usable and available with the Smb4K program .

When i did the smb install i did have trouble with the service starting.

Thanks again for the reply!
__________________
FC 19-64 Q9400 Home Built!
FC 19-64 Sony Vaio VGN-FW190!
FC 19-64 Dell Dimension 9100!
Win XP Dell Dimension 9100!
Droid X Phone, De N4ZPO!
Reply With Quote
  #22  
Old 24th June 2012, 07:36 PM
teraquad's Avatar
teraquad Online
Registered User
 
Join Date: Apr 2010
Location: New Bern NC USA
Age: 55
Posts: 217
linuxfirefox
Re: SAMBA not seeing network machines (save one)

Good news! I have it 1/2 working. i added "wins" in the hosts section of the nsswitch.conf file. Two of the hosts, iomega_1tb and teraquad are not working but i am sure there is somthing strange in the setup for them.

I am having trouble placing the wins in the proper location within nsswitch.conf because i am still having dns issues on line now. Small problem I am sure i can work that one out.

Thanks to all! any ideas of the order in which to put the hosts in would be appriceated
it is now as follows.

hosts: files mdns4_minimal dns zoneminder wins [NOTFOUND=return]


Thanks!
__________________
FC 19-64 Q9400 Home Built!
FC 19-64 Sony Vaio VGN-FW190!
FC 19-64 Dell Dimension 9100!
Win XP Dell Dimension 9100!
Droid X Phone, De N4ZPO!
Reply With Quote
  #23  
Old 25th June 2012, 02:58 PM
byhisdeeds's Avatar
byhisdeeds Online
Registered User
 
Join Date: Jan 2006
Age: 56
Posts: 65
linuxchrome
Re: SAMBA not seeing network machines (save one)

I am having the same problem since I upgraded to FC17. I have the wins entry in the nsswitch.conf file before the dns entry and everything used to work ok. I could refer to the machines by their name. Now it appears to be broken for me under FC17.

If you get it working where by you can refer to the machines by their names in the ping comand etc then please post your procedure.

---------- Post added at 05:58 AM ---------- Previous post was at 05:48 AM ----------

Fixed on my upgraded FC16 to FC17 machine. It seems that I was looking at the wrong copy of the nsswitch.conf file when I was trying to debug the situation, and the upgrade had re-written the old nsswitch.conf file. It works ok on the upgraded machine but is still a problem on the freah install machine.
Reply With Quote
  #24  
Old 25th June 2012, 06:59 PM
teraquad's Avatar
teraquad Online
Registered User
 
Join Date: Apr 2010
Location: New Bern NC USA
Age: 55
Posts: 217
linuxfirefox
Re: SAMBA not seeing network machines (save one)

Hi,

I knew i couldn't be the only one!

I'll be more than happy to post the results as soon as they are in. Samba definitely does not work the same as it did in fc16. I sure am not going to upgrade anymore machines until i have it solved.

Thanks for your reply!
__________________
FC 19-64 Q9400 Home Built!
FC 19-64 Sony Vaio VGN-FW190!
FC 19-64 Dell Dimension 9100!
Win XP Dell Dimension 9100!
Droid X Phone, De N4ZPO!
Reply With Quote
  #25  
Old 26th June 2012, 10:47 AM
teraquad's Avatar
teraquad Online
Registered User
 
Join Date: Apr 2010
Location: New Bern NC USA
Age: 55
Posts: 217
linuxfirefox
Re: SAMBA not seeing network machines (save one)

Well,

It looks like we can have one or the other and not both. I have gone through every iteration i can think of to get the hosts to be found by dns, wins, or whatever with no luck. Every time i place wins in the hosts section of the nsswitch.conf file it will find the hosts on my local network. But it screws up the normal operation of anything online.

I am at the end of my abilities I hope someone can fill in the blanks.

Thanks for the help! Any ideas would be welcome!
__________________
FC 19-64 Q9400 Home Built!
FC 19-64 Sony Vaio VGN-FW190!
FC 19-64 Dell Dimension 9100!
Win XP Dell Dimension 9100!
Droid X Phone, De N4ZPO!
Reply With Quote
  #26  
Old 30th June 2012, 04:13 PM
teraquad's Avatar
teraquad Online
Registered User
 
Join Date: Apr 2010
Location: New Bern NC USA
Age: 55
Posts: 217
linuxfirefox
Re: SAMBA not seeing network machines (save one)

Hi,
No further progress at this time! Thanks to everyone for the help.

Thanks!
__________________
FC 19-64 Q9400 Home Built!
FC 19-64 Sony Vaio VGN-FW190!
FC 19-64 Dell Dimension 9100!
Win XP Dell Dimension 9100!
Droid X Phone, De N4ZPO!
Reply With Quote
Reply

Tags
machines, network, samba, save

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Best Way To Network F13 & F14 Machines meh101 Servers & Networking 4 14th March 2011 02:41 AM
Another Samba can't see XP or Win7 machines issue bmd919 Using Fedora 1 13th September 2010 10:21 PM
How to add machines in samba f7? ImranIjaz Servers & Networking 3 12th July 2007 10:53 AM
20 machines - network scorpio2002 Servers & Networking 1 21st April 2005 09:22 AM


Current GMT-time: 08:43 (Sunday, 19-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat