LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Samba, RedHat 7.2, Windows 2000 (https://www.linuxquestions.org/questions/linux-newbie-8/samba-redhat-7-2-windows-2000-a-54032/)

bananaman 04-08-2003 11:02 AM

Samba, RedHat 7.2, Windows 2000
 
I have installed a Samba server on my RedHat 7.2 box. I have altered the configuration and I think it's all correct.

I can see the Samba server from my Windows 2000 computer but if I click on it I get:


\\myserver is not accessible

The network path was not found.


My network hub is a 4 point ADSL router with NAT firewall, but I'm assuming this shouldn't matter because Samba works over http, or am I wrong about that?

Any ideas?

tangle 04-08-2003 01:22 PM

You need to make sure that the local file permission are set right.
Try chmod 777 /home/shares
This will give everyone read right permissions for that directory. also you can check out,
http://www.valkyrie.net/~tangle/comp...s/smb_conf.htm

bananaman 04-08-2003 05:10 PM

THanks Tangle.

I tried that, but I still get the same error.

Could it be something else? Is there any way I can verify or test where the problem might be?

tangle 04-08-2003 06:42 PM

Can you ping between by name? Such as ping samba_server. The smb.conf file is the one I use right now with an XP client. I have absolutly no problems accessing the shares. The only thing I can think of is that you done have dns working.
If you can't ping by name edit your /etc/hosts file by adding your window name. Then edit your C:\WINDOWS\system32\drivers\etc\hosts file on the windows machine and add your linux machine.

sinokonka 04-08-2003 10:17 PM

Can you ping your Samba server by IP address?

If you can, then check your smb.conf file for detail

bananaman 04-09-2003 11:32 AM

Thanks Tangle.

After following your instructions, I can ping by name from both the Windows 2000 and Linux boxes. (I didn't know about the host files. Thanks that's useful!)

However, I still get:


\\myserver is not accessible

The network path was not found.


when trying to access from the Windows2000 box.

Any other ideas?

One thing I don't understand. How does Samba know who you want to log on as? I mean, how does it select which Samba user to use when a particular PC box tries to connect to it? As I understand it the user is not prompted for a username when clicking on the Samba server icon in Windows. Is there something I don't understand?

Cheers.

tangle 04-09-2003 12:16 PM

When a PC tries to access a share, it uses the username that is logged in at the time.

Did you try to copy the smb.conf file that I had on my page? If so, make sure that your 2000 machine has the samba server as the wins server.

Then make sure that the local directory permmissions are set to read/write for everyone. Do a chmod 777 /home/share (or what ever the directory name is. Make sure your change this once you get samba up and running.

Also do a testparm at the command line to see if the smb.conf file is configured right.

It sound to my like you have a permissions problem.

pclark 04-16-2003 10:39 PM

I set up a Redhat 7.2 box as a server using two NICs and have been merrily communicating between it and six other Windows machines of various Windows OSs including a Windows 2000 advanced server for over a year now. I've sent my setup in Word format to a lot of people and they've found it most helpful, but it's too big for the message box. I use the Linux as an internet and a file server. I'd be happy to send you a copy. E-mail clarkp@optonline.net.


All times are GMT -5. The time now is 10:07 AM.