Samba question - please help, I'm really out of ideas
Hello. I've recently put up Redhat 9 instead of Mandrake, and now I have a problem with accessing the Linux computer from the one which is running Windows.
Code:
[root@raviv2 linux-2.4]# smbclient -U% -L raviv1 I was told the problem might be in Windows, because it worked with Mandrake, and maybe when I replaced it to Redhat, the IPs ramain the same so the Windows computer thinks that Raviv2 is still running Mandrake or something like that. Also when I configured it at Windows, when it asked for authentification I also checked the "Remember password" box. Maybe if I can somehow remove this trigger it'll work... When I try to access Raviv2 from Raviv1 I get the following message: "\\Raviv2 is not accessible. You might not have permission to use this network resource. Contact the administrator of this server to find out if you have access permissions. The network path was not found.". When I try to ping Raviv2 by typing "ping raviv2" I'm getting the following message "Ping request could not find host raviv2. Please check the name and try again.". However, when I ping Raviv1 from Raviv2, I get ping replies. Can you please help me resolve it? |
hello
first set stetic IP address for both pc of same subnet mask. then first ping on both machines thier own ip's will confirm that thier own Network Adapter and protocol working fine, and then Ping form both Pc's to each others on IP Address (not on name). if this step result good then use configure samaba with following help, otherwise check may urs network card or protocle is not proper install or configure. i have done this , but first i was trying with smb.conf file, then a find a simple and easy way. i used it in redhat 9 Gnome. (defauld samaba installation) just install samba GUI configuring tool, U can do this from add and remove programe in system setting menu. after istallation tool install in server setting menu in system setting as samaba server , run it and click on add and select share directory, then click on read and write permission,then select allow access for evry one (or urs requier permission) ok and . then go in server setting in prefereces tag, type urs workgroup name and in security tag select share in Authentication mode it will enable share level access for remote user and will not ask password, may be this will solve urs problem enjoy it will strat sharing from linux box to Microsoft. __________________ Mobassir Sattar khan |
But how do set a new static IP? I know Raviv1 is 192.168.0.1 and Raviv2 is 192.168.0.39
Is there anyway to make Raviv2 192.168.0.2? |
Is the guest account enabled at your Windows XP system?
This confused me a lot too, but fortunately, it's not really related to samba. |
Hmm I enabled it now but nothing... I think the problem is more related to IPs or something, because I can't ping Raviv2 using its name, but I can ping it using its IP.
|
Ok I think I analyzed the problem, but I don't know how to fix it...
I tried to ping Raviv2 from Raviv1 by using "ping raviv2.mshome.net", and then Raviv1 is trying to ping the IP 192.168.0.2, while the real IP of Raviv2 is 192.168.0.39. How can I change Raviv2's local IP address? |
Your ipaddress can be changed in Linux with ifconfig. be sure to update your route-tables (route), and /etc/hosts aswell, to reflect the new ip addres. (you might want to use the network-config tool of your distro)
Even with the file and printer sharing, you can browse with an IP-adress, instead of a netbios name. Trying \\<ipaddress>\share should work too. |
I've found that the exact syntax used does in fact affect whether or not this error appeared for me. For example:
smbclient '\\ntserver\andrew' worked whereas smbclient '\\ntserver\andrew\' gave me the NT_STATUS_ACCESS_DENIED message. Hope this helps |
I tried using ifconfig and I managed to wrack my internet connection, lucky me that an internet connection wizard exists :)
Can you please be more specific in how to change it, or can you supply me with a manual with an understandable language to a linux newbie? |
Ok, I issued the following command:
Code:
[root@raviv2 sweiss]# /sbin/ifconfig eth0 add 192.168.0.2 EDIT: Also, refering to \\raviv2.mshome.net\ from Raviv1 didn't work. |
I run a lot of Samba on Red Hat, but I can't help without seeing your /etc/samba/smb.conf file. There are hundreds of things that could be wrong.
I'd also want to see the output of the ifconfig command right after you boot the machine. |
smb.conf file:
Code:
# This is the main Samba configuration file. You should read the |
Woof. That's the least security I've ever seen on a *nix system! Hopefully you are on a small private network, I wouldn't trust that configuration even behind a firewall.
Do you have a reason for using SHARE security? I don't think I've seen that used in at least five years. I'd recommend "user" instead. Share mode is pretty obsolete, unless you need compatibility with a Windows4Workgroups system that doesn' have the Wolverine stack. Remember, the unix security applies after the samba security. So, it looks like you are probably attaching as "guest" -- do the directories and files in /mnt/c and /mnt/d allow the guest user (probably user "nobody" since you haven't specified it in smb.conf) to read them? If you are not sure who you are attaching as, you can do an smbstatus -b (while the windows box is connected) to verify the userid that is being used. Assuming that you switch to user security, you'll need to do a "smbpasswd -a [user]" command to add the user password to the samba password file /etc/smbpasswd. |
ifconfig after reboot:
Code:
eth0 Link encap:Ethernet HWaddr 00:50:DA:4C:BB:F5 The problem is accessing Linux from Windows, works just fine the other way around. |
Ok, it appears that RedHat is installing a firewall by default. Now I've disabled it, and everything works but the hebrew.
However, that's a totally different problem :) Thanks a lot for all the help! |
All times are GMT -5. The time now is 07:52 PM. |