LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Red Hat (https://www.linuxquestions.org/questions/red-hat-31/)
-   -   Samba Works, Windows can access Linux Side but ............ (https://www.linuxquestions.org/questions/red-hat-31/samba-works-windows-can-access-linux-side-but-121461/)

srikz 11-30-2003 10:42 PM

Samba Works, Windows can access Linux Side but ............
 
hello

i have 2 redhat linux9 servers both running on IBM eservers, the windows client can access these data and appliation servers but the problem is my linux servers cannot get connected to the wondows systems, so that i can copy the files from windows shared folders in to the server.

what to do...........

Thanks in advace

p_mithaulia 12-01-2003 12:07 AM

using SAMBA server to access files....

wartstew 12-01-2003 12:34 AM

Sorry, we need more information:

What have you tried, and what happened?

Did you create an account on your windows servers that match what you are logging in on with your Linux machine? How are you trying to access your windows machines? (smbclient, smbfs, "smb://" in Konquerquer, Linneighborhood, gnosamba, etc.)

Ashish Pathak 12-01-2003 03:42 AM

Okie!!

You wanna access windows share from linux .. Ok.
You can do this by compiling kernel with smbfs support or download linneighbourhood from this link (http://java.thn.htu.se/~toor/).
This tool is just like windows network neighbourhood.
If you dont find this tool then you need to compile ur kernek with smbfs support option enabled in network filesystems menu.
After this simply create one user in ur windows machine as well as in linux machine.
Note : This user should be present one both windows as well as linux machines and just give proper rights to the share folder for this user.
Loged in with new user in linux.

Then just try to mount windows share giving following command: -

mount -t smbfs //winservername/sharefolder /mountpoint.
I guess this will work!! .. ;)

Thanks,
/Ashish/Pathak.
/Pune/India.

srikz 12-01-2003 10:14 AM

sorry guys i was kinda busy as the deadline for a project is round the corner. thanks ashish for the help i will download the linneighbourhood and then reply. hope it works
bye guys and thanks for the help
srikz

bindsocket 12-01-2003 12:56 PM

Samba can see other sambas but no Windows shares
 
I am running RH9. I can access other samba shares using mount -t smbfs... and using Nautilus 2.2.1 . There are two different Sambas running on our network and I can access them with no problems. However, whenever I attempt to access any of the windows shares (every computer in the office has at least one folder shared for backup purposes) I cannot access them at all.
mount -t smbfs -o username=username,password=password //computer/folder /tmp/smbmount run on any of the windows shares results in "Connection to computer failed SMB connection failed". Nautilus returns "Couldn't display "computer", because no host "computer" could be found...".
Incidentally, I can no longer browse Network Neighborhood from any machine (linux nor windows). However, I do not believe this is related as I can mount the windows shares manually from the other windows machines.

darkseed2g3 12-01-2003 04:22 PM

here is the easiest way , screw the neighborhood bullshit . You went with linux to get away from microcraps deception. What you do is enter this command

mount -t smbfs -o username=usr,password=password //host/sharename /mountpoint

put that up in a script and voila , there it is. :)

make sure that you have netbois and all the crap installed on windows and its up and running when you do this

srikz 12-02-2003 01:29 AM

ok now it works
 
yeah using the command line works.... so screw the neighbour hood
... but if you still insist on using GUI. linneighbourhood goes the job

wartstew 12-02-2003 01:37 AM

I don't think I've ever got the "mount -t smbfs" thing working without having an /etc/samba/smb.conf file correctly configured to the network I was attaching too. I'm not sure what minimum parameters are required to make it work, but things like the workgroup and password encryption setting might be required. Then I think you need at least nmbd running to be able to find the computer you are trying to attach to.

Please correct me where I'm wrong. I kind of would like to know the minimum configuration that is necessary for this to work.

srikz 12-02-2003 02:30 AM

open the /etc/samba/smb.conf file and assign your workgroup name and then the local master, browser master settings. if your running rh9 no need starting the nmbd deamon.
just issue the command # service smb restart.

wartstew 12-02-2003 09:24 AM

So you are saying that nmbd *does* need to be running? (as in you are restarting the whole samba service with the /etc/rc.d/init.d script.)

In any case, if you just enable "swat" (by placing or uncommenting the line in /etc/inetd.conf), then you can get a nice point & shoot GUI for configuring your smb.conf file from your favorite browser by using something like http://localhost:901

Also, if you run KDE, another smb access is by simply entering "smb://machine/share" in Konquerer's url form and it will go there. ... Nice!

(There is so many ways of doing things in GNU/Linux that it makes my head spin!)


All times are GMT -5. The time now is 11:49 PM.