Link to home
Start Free TrialLog in
Avatar of pincombe
pincombe

asked on

accessing windows2k shares using linux

Hey,

i am having a bit of a nightmare using samba. i have have a simple network set up with a single win2k computer and a linux computer running mandrake 9.1. So far i have been able to access all my linux shares using the win2k computer but i am having trouble beening able to access my win2k shares from within linux. i know my win2k machine is set up correctly because i had this working before i reinstalled linux but i managed it last time by fluke i think and can't do it again. could anyone please help me :)

thx in advance
keith
Avatar of t0m4s
t0m4s

I will recommand you to use FileTransferingProtocol insteed. You can limit what folders a user can access which should be equale to using shares.

So choose either to run the ftp server on linux ( remember to disable anonymous and guest accounts) or on windows. I recommand bulletproof ftp server for windows for the novice user and serv-u for the more expert user.

Or try  SSH Secure file transfer which I also highly recommand if you already have ssh enabled(if you dont, you should).
less protocols running, less holes to secure.

hope this helps?

Avatar of pincombe

ASKER

i would perfer not to have an ftp server running tho because well its another program and also the windows pc has an internet connection and i don't want any outside connection trying to access the ftp server.


i would much prefer to have smb working i think all i need to do is know how to mount a network drive so i can access it in linux
ASKER CERTIFIED SOLUTION
Avatar of JohnBolton
JohnBolton

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
i think there is something wrong this is what happens

timeout connecting to 64.225.154.175:139
Error connecting to 64.225.154.175 (Operation already in progress)
8637: Connection to pincombe failed
SMB connection failed

stright away i can see that the ip address is wrong the ip should be 192.168.0.1

what do you suggest?
Create a lmhosts file that would specify the IP of your windows host and then try again.

I'm not sure where the lmhost file should be on Mandrake, but it should look like:

192.168.0.1   win2k

That is supposing that your w2k netbios name is win2k. Also try to use a normal share, not the C$ share.

You can try to use smbclient instead of mount for debugging purposes, it's easier. Something like:

smbcliet //Win2K/c$ -U Administrator -d 4

-d 4 means the debugging level, 4 is usually quite useful (but you can increase it :)
It doesn't matter whether you map to the hidden c$ share or one you create yourself.

You don't have to bother with the hosts file either.

From my earlier example:

mount.smbfs //192.168.0.1/c$ /root/Windows/CDrive -o username Administrator,password=MyAdminPass

Let me know if you have any further problems. I have been doing this for a long time.

BTW, you can put this command in your startup file (i.e. /etc/rc.d/rc.local) and you will never have to do it again. ;)
muchos thx for the help :) i don't mean to be rude tho but i can't write/delete any of my network shares. i have tried -rw but i dunno if i am putting it in the wrong place this is what it looks like.

mount.smbfs //192.168.0.1/c$ /mnt/Laptop -o username=pincombek,password=qwerty -rw

what do you think i should do?
You're not being rude. :) You also need to set up the permissions on the mount folder. I should have included this in my first response, sorry.

For FULL access, (before the mount operation) just type:

chmod 777 /root/Windows/CDrive

If you want to limit the access to only you, use 700. If you want to allow access for you and anybody in the same group as you, use 770.
i have just tried changing the folder to 777 before mounting it and it stays at 777 until i mount it and then it goes back to 755. i tried to delete a file as root and it worked fine but for some reason it keep changing the folder to 755 every time :(
I guess I haven't done this in awhile. My mount points are also 755. I am able to both create and delete on the mounted volume.

If everything is working for you, I wouldn't worry about it. :)
thx for all the help mate :) couldn't have gotten anywhere without you