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 01-16-2004, 05:58 PM   #1
johnorban
LQ Newbie
 
Registered: May 2002
Location: NC
Distribution: Red Hat 9
Posts: 10

Rep: Reputation: 0
network neighborhood


I have file sharing setup using Samba between two identical Red Hat Linux 9 Servers. I am able to ping the other server, but I don't know how to access the files on the other server. I am thinking of something like Windows Network Neighborhood or Windows Explorer. How do I see the other server's files from the bash shell? All I am trying to do is access the Web Logic 8.1 binary install that resides on a different server. What approach should I take?
 
Old 01-16-2004, 08:52 PM   #2
Mathieu
Senior Member
 
Registered: Feb 2001
Location: Montreal, Quebec, Canada
Distribution: RedHat, Fedora, CentOS, SUSE
Posts: 1,403

Rep: Reputation: 46
You can use the smbclient command or you can mount it.

To list all the shares on a PC, use:
Code:
smbclient -L computername -U user
To access a shared directory, use:
Code:
smbclient //computername/shared_resource_name -U user
Or you can mount it and use it like a directory.

To mount a shared directory, use:
Code:
smbmount //computername/shared_resource_name /mnt/mount_point -o username=user
 
Old 01-16-2004, 11:42 PM   #3
dellcom1800
Member
 
Registered: Apr 2003
Location: Connecticut, USA
Distribution: Gentoo Ubuntu
Posts: 69

Rep: Reputation: 15
couldn't agree more

if u r in X windows in your linux box u could use Nautilus to view your samba shares

type the following in the address bar:

"smb://ipaddress or computer name/share"

(use gnome)

this only works if you have the right version of Nautilus and u have the correct packages installed.


should work with redhat 7.2 it does with 8 and 9 and i think 7 if i remember right

Last edited by dellcom1800; 01-16-2004 at 11:43 PM.
 
Old 01-16-2004, 11:43 PM   #4
dellcom1800
Member
 
Registered: Apr 2003
Location: Connecticut, USA
Distribution: Gentoo Ubuntu
Posts: 69

Rep: Reputation: 15
let me no if that helped
 
Old 01-18-2004, 06:13 PM   #5
johnorban
LQ Newbie
 
Registered: May 2002
Location: NC
Distribution: Red Hat 9
Posts: 10

Original Poster
Rep: Reputation: 0
host not found

From Nautilus I get:

Couldn't display "smb://3.31.189.203/share", becasue no host "3.31.189.203" could be found.

From bash shell I get:

1.) smbclinet -L 3.31.189.203 -U root

added interface ip=3.31.189.201 bcast=3.31.191.255 nmask=255.255.252.0
error connecting to 3.31.189.203:139 (Connection refused)
Error connecting to 3.31.189.203 (Connection refused)
Connection to 3.31.189.203 failed

2.) smbmount //3.31.189.203/usr/share /mnt/mount_point -o username=root

Could not resolve mount point /mnt/mount_point

< I am not sure what to enter for /usr/share and /mnt/mount_point

I thought I was connected because ping worked:

ping 3.31.189.203

64 bytes from 3.31.189.203: icmp_seq=1 ttl=64 time=0.147 ms

--- 3.31.189.203 ping statistics ---
8 packets transmitted, 8 receieved, 0% packet loss, time 6993ms
rtt min/avg/max/mdev = 0.132/0.151/0.169/0.021 ms
 
Old 01-18-2004, 08:06 PM   #6
Mathieu
Senior Member
 
Registered: Feb 2001
Location: Montreal, Quebec, Canada
Distribution: RedHat, Fedora, CentOS, SUSE
Posts: 1,403

Rep: Reputation: 46
My previous post contains examples. You have to use your own info.
Quote:
Couldn't display "smb://3.31.189.203/share", becasue no host "3.31.189.203" could be found.
...
1.) smbclinet -L 3.31.189.203 -U root
Use the computer's name, not the IP.
In Nautilus, use the following syntax:
Code:
smb://My_Computer_Name/share"
Quote:
Could not resolve mount point /mnt/mount_point
/mnt/mount_point must be a valid directory on the local computer.

Quote:
< I am not sure what to enter for /usr/share and ...
For example, if I want to connect to a computer called LinuxPC and this computer has a share called myShare, the correct syntax is:
Code:
smbmount //LinuxPC/myShare /mnt/myDirectory -o username=root
 
Old 01-19-2004, 11:53 AM   #7
johnorban
LQ Newbie
 
Registered: May 2002
Location: NC
Distribution: Red Hat 9
Posts: 10

Original Poster
Rep: Reputation: 0
How do I find the computername? In Samba I assigned a Workgroup name and Description.
I think I need to open up the firewall. Any idea how to update the firewall settings?

quote:
to list all the shares on a PC, use:

code:smbclient -L computername -U user
 
Old 01-19-2004, 08:27 PM   #8
Mathieu
Senior Member
 
Registered: Feb 2001
Location: Montreal, Quebec, Canada
Distribution: RedHat, Fedora, CentOS, SUSE
Posts: 1,403

Rep: Reputation: 46
In your Samba configuration file, you can specify a name using the netbios name option. It must be inserted under the Global share.
Code:
[global]
        workgroup = TUX-NET
        netbios name = Linux
If this option is not set, the default is to use the hostname of the computer. To find out the hostname, at the command line, type: hostname

In order for Samba to work correctly, you need to allow traffic on ports 137, 138 and 139 -- These are netbios ports.
In RedHat, your iptables configuration files is located at /etc/sysconfig/iptables.
To view your iptables rules, at the command line, type: iptables -vL
 
  


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
is there something like a NETWORK NEIGHBORHOOD? ghanalinux Linux - Newbie 6 06-18-2005 01:37 PM
network neighborhood with problem ursy Linux - Networking 1 05-06-2004 09:13 PM
Network Neighborhood for Linux allelopath Linux - Software 3 04-30-2003 10:18 AM
network neighborhood joshuajameswoma Linux - Networking 4 09-25-2002 01:17 AM
An equivelant for Network Neighborhood Chijtska Linux - Networking 3 02-03-2002 10:35 AM


All times are GMT -5. The time now is 11:00 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration