LinuxQuestions.org
Review your favorite Linux distribution.
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-04-2003, 08:13 AM   #1
ogden2k
Member
 
Registered: Feb 2003
Location: Maine, USA
Distribution: Fedora Core 2
Posts: 34

Rep: Reputation: 15
Samaba setup help


I would like my linux box to see my windows network, I have RH 8 setup, installed as a server, so samba is installed.

What do I have to do now?
 
Old 02-04-2003, 09:21 AM   #2
gauge73
Member
 
Registered: Jan 2003
Location: Dallas, TX
Distribution: Fedora Core 4
Posts: 420

Rep: Reputation: 30
You have to write a configuration file for Samba. I believe that the default path is:

/etc/samba/smb.conf

There is probably a default config file there already, but you would be better off to start from scratch and write one of your own. There is a book that is printed online on the subject. It's a bit old, but most of the commands are still the same. It should work just fine.

If you don't want to set it up or can't figure it out, I'd love to help. I'm still learning about Samba, but of the Linux-related things I've encountered so far, it's the one I've come the closest to master. Send me an email if you need help.

After you set up the smb.conf file, you'll have to start adding passwords to your password file using smbpasswd.
 
Old 02-04-2003, 09:26 AM   #3
gauge73
Member
 
Registered: Jan 2003
Location: Dallas, TX
Distribution: Fedora Core 4
Posts: 420

Rep: Reputation: 30
After rereading your post, I think my answer might have been a bit off-the-mark. My answer was to get your windows computers to see shares on your Linux box. If you want to see the windows shares with the Linux box, you can use:

smbclient //<Win IP or NB Name>/<Share Name> -U <Username>

I've also heard about LinNeighborhood, which is a graphical network browsing tool. I've never used it before, but you might want to give it a shot.
 
Old 02-04-2003, 10:13 AM   #4
ogden2k
Member
 
Registered: Feb 2003
Location: Maine, USA
Distribution: Fedora Core 2
Posts: 34

Original Poster
Rep: Reputation: 15
oh ok, so first I have to setup shares with NFS?

what about seeing windows from linux? through SSH?
 
Old 02-04-2003, 10:22 AM   #5
gauge73
Member
 
Registered: Jan 2003
Location: Dallas, TX
Distribution: Fedora Core 4
Posts: 420

Rep: Reputation: 30
Quote:
oh ok, so first I have to setup shares with NFS?
No, you don't have shares with NFS. You create the shares with Samba in the smb.conf file. Samba emulates SMB so that it can communicate with Microsoft OSes in their own language.


Quote:
what about seeing windows from linux? through SSH?
To see Windows from Linux, you use smbclient, which is a utility that comes with Samba. I posted the usage for it earlier in the thread. You could also use LinNeighborhood (which does not come with Samba).
 
Old 02-04-2003, 10:32 AM   #6
JezzerP
Member
 
Registered: Jan 2003
Location: Aberdeen, Scotland
Distribution: Red Hat 8/9
Posts: 32

Rep: Reputation: 15
Get LinNeighborhood here : http://www.bnro.de/~schmidjo/

Wow....three posts in a row pointing people to the same place
 
Old 02-04-2003, 08:27 PM   #7
ogden2k
Member
 
Registered: Feb 2003
Location: Maine, USA
Distribution: Fedora Core 2
Posts: 34

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by gauge73
. If you want to see the windows shares with the Linux box, you can use:

smbclient //<Win IP or NB Name>/<Share Name> -U <Username>


I tried that, and it asks for my password, then it says this:

tree connect failed: bad NT_STATUS_BAD_NETWORK_NAME


I made sure everything was typed in right, I know linux is case sensitive... what am i doing wrong?
 
Old 02-05-2003, 07:02 AM   #8
ogden2k
Member
 
Registered: Feb 2003
Location: Maine, USA
Distribution: Fedora Core 2
Posts: 34

Original Poster
Rep: Reputation: 15
actually, im at work, and its working!



but, there are some folders I cant CD to... and some I can, I am typing them in right..

Last edited by ogden2k; 02-05-2003 at 08:00 AM.
 
Old 02-05-2003, 10:37 AM   #9
gauge73
Member
 
Registered: Jan 2003
Location: Dallas, TX
Distribution: Fedora Core 4
Posts: 420

Rep: Reputation: 30
I don't mean to insult your intelligence, but I don't have a whole lot of information here, so I'm just covering all the bases.

1) Do the folders that you can't cd to show up on a ls or dir?

2) Are the usernames and passwords on both computers the same? If not, are you sure you used the -U <username> option on the smbclient command?

3) Do all the folders have the same permissions, owner, and group?
 
Old 02-05-2003, 12:28 PM   #10
ogden2k
Member
 
Registered: Feb 2003
Location: Maine, USA
Distribution: Fedora Core 2
Posts: 34

Original Poster
Rep: Reputation: 15
hi, i figured out the problem. I needed to put the folder "new folder" becuase the folder name had a space. and it worked.
 
  


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
Samaba PDC config - help! Lester Linux - Newbie 16 01-21-2010 06:27 AM
Samaba Shared Folders streetsmart Linux - Networking 4 07-11-2005 09:27 PM
Samaba problem Mr.Bone Linux - Networking 5 08-29-2004 05:32 PM
Samaba Robush Linux - Newbie 3 01-29-2004 08:45 PM
Samaba Problems biggiefatts Linux - Networking 6 06-02-2003 05:42 PM

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

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