LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 11-08-2001, 04:27 PM   #1
Opentoe
LQ Newbie
 
Registered: Nov 2001
Location: NJ
Posts: 12

Rep: Reputation: 0
SAMBA: Linux to Windows


I got my Windows machine to see my Linux box fine. Drive mapping works...all ok. NOW, is there a way to reverse this? How would I map my Windows machine drive to a Linux mount? Everything talks about Going from Windows to Linux, but not the other way around. Any help would be appreciated...thanks!
 
Old 11-08-2001, 05:02 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
i think ppl don't talk about it cos it's really easy!

you should be able to mount them straight away with a

mount -t smbfs //host/share /mnt/point

and once that's done, stick an entry in /etc/fstab
 
Old 11-08-2001, 06:21 PM   #3
Opentoe
LQ Newbie
 
Registered: Nov 2001
Location: NJ
Posts: 12

Original Poster
Rep: Reputation: 0
Believe it or not, I'm still a little confused. I have made a folder called kt1 on my linux machine, which I want mapped to my main C drive on my Windows BOX. How do I indicate this with the mount command. My Windows computer is named "kpax". This is what I'm trying to do:

mount -t smbfs //kpax/share /kt1

Does that look correct?

Since I have multiple drives on my Windows machine, how does the share know which drive to map?


Quote:
Originally posted by acid_kewpie
i think ppl don't talk about it cos it's really easy!

you should be able to mount them straight away with a

mount -t smbfs //host/share /mnt/point

and once that's done, stick an entry in /etc/fstab
 
Old 11-08-2001, 07:55 PM   #4
b0b0
Member
 
Registered: Nov 2001
Location: Kansas
Distribution: rh71/2, mandrake81
Posts: 53

Rep: Reputation: 15
Talking

dude, i just figured it out....

mount -t smbfs -o username=winusername,password=xxxxxx //host/share /dir/to/mount

thats it...now to find where to put it to restore mount point after reboot.../etc/fstab??

later,
jason
 
Old 11-08-2001, 10:45 PM   #5
b0b0
Member
 
Registered: Nov 2001
Location: Kansas
Distribution: rh71/2, mandrake81
Posts: 53

Rep: Reputation: 15
Need some help with my Winbox seeing my Linux box. Linux is registering with WINS and I can ping by name. I set the DWORD to 0x01 in the plaintextpassword key.

What is considered the share name in the smb.conf file?

[myshare]
comment = myshare
path = /the/share
public = yes
writeable = yes
printable = yes

Is it \\host\myshare or \\host\the\share?

I also get the following error on my Winbox when i try to map or net use:

____________
No service is operating at the destination network endpoint on the remote system.
____________

This make me think that it cant make the RPC. Is this the correct assumption?

Also did a port scan on Linux box and only 25 and 110 are open. Shouldnt the netbios ports be open? If so how do i open em up?

Thanks for any help,
Jason
 
Old 11-08-2001, 10:49 PM   #6
Opentoe
LQ Newbie
 
Registered: Nov 2001
Location: NJ
Posts: 12

Original Poster
Rep: Reputation: 0
WHen I try anything, I continue to get this:

4572: session setup failed: ERRDOS - ERRnoaccess (Access denied.)
SMB connection failed

I made accounts on both machine with administrator access just for testing purposes...nothing working. Linux and Windows really hate to talk to one another, huh?


Quote:
Originally posted by b0b0
dude, i just figured it out....

mount -t smbfs -o username=winusername,password=xxxxxx //host/share /dir/to/mount

thats it...now to find where to put it to restore mount point after reboot.../etc/fstab??

later,
jason
 
Old 11-08-2001, 11:14 PM   #7
b0b0
Member
 
Registered: Nov 2001
Location: Kansas
Distribution: rh71/2, mandrake81
Posts: 53

Rep: Reputation: 15
Definitly an authentication problem. Did you change the registry entry on your NT box to allow plain text authentication? If not, here is the reg key:

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\lanmanworkstation\parameters]
"enableplaintextpassword"=dword:00000001
"enablesecuritysignature"=dword:00000001
"requiresecuritysignature"=dword:00000000
"OtherDomains"=hex(7):00,00

this is for win2k...i dont remember where i found the key, but its the "enableplaintextpassword" key that you have to change. it is originally 0x00. needs to be 0x01. (thats in hex)

Samba supports encrypted passwords..woohoo!! thats my next project.

My problem with getting my Winbox seeing my Linux box was a firewall issue...didnt have the netbios ports open...doh!!

Good luck,
lemme know how it goes
 
Old 11-08-2001, 11:47 PM   #8
Opentoe
LQ Newbie
 
Registered: Nov 2001
Location: NJ
Posts: 12

Original Poster
Rep: Reputation: 0
Yes, fortunately I didn't have to mess with my registry and I am using windows XP. My mistake was not creating a share name in windows. It was shared, but I had to create a name for it, so when I used the MOUNT command, it knew what to map. So far, it's all working out ok. Although I don't like having a password in my fstab file. Anyway to encrypt the password itself or hide the password in that file?

Thanks a million!


Quote:
Originally posted by b0b0
Definitly an authentication problem. Did you change the registry entry on your NT box to allow plain text authentication? If not, here is the reg key:

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\lanmanworkstation\parameters]
"enableplaintextpassword"=dword:00000001
"enablesecuritysignature"=dword:00000001
"requiresecuritysignature"=dword:00000000
"OtherDomains"=hex(7):00,00

this is for win2k...i dont remember where i found the key, but its the "enableplaintextpassword" key that you have to change. it is originally 0x00. needs to be 0x01. (thats in hex)

Samba supports encrypted passwords..woohoo!! thats my next project.

My problem with getting my Winbox seeing my Linux box was a firewall issue...didnt have the netbios ports open...doh!!

Good luck,
lemme know how it goes
 
Old 11-09-2001, 07:08 AM   #9
b0b0
Member
 
Registered: Nov 2001
Location: Kansas
Distribution: rh71/2, mandrake81
Posts: 53

Rep: Reputation: 15
Hey, could you show me what you put in /etc/fstab? I tried quite a few different way but i always got errors on boot.

Thanks,
jason
 
Old 11-09-2001, 07:25 AM   #10
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
mount -t smbfs -o username=winusername,password=xxxxxx //host/share /dir/to/mount

/etc/fstab entry:

//host/share /dir/to/mount username=winusername,password=xxxxxxx,user

that should work, what errors are you getting? i've never actually tried to autoconnect to a win share, cos it's not linux..! but when i've done it manually i've just used smbclient with the -N flag to not ask for a password, as win98 doesn't sue them anyway. wouldn't really be suprised if win2k was the same.

i do still always get a noexec error mounting linux smb shares tho.. i just ingore it, just one of fstabs idiosyncracies, however you spell it.
 
Old 11-09-2001, 08:14 AM   #11
Opentoe
LQ Newbie
 
Registered: Nov 2001
Location: NJ
Posts: 12

Original Poster
Rep: Reputation: 0
Here is how I did it in my FSTAB file.

//kpax/kpaxc /kpaxc smbfs username=<username>,password=<password> 0 0


I have a folder on my Linux box called kpaxc, and also mapped my C drive to kpaxc. My windows computer name is also called kpax.




Quote:
Originally posted by b0b0
Hey, could you show me what you put in /etc/fstab? I tried quite a few different way but i always got errors on boot.

Thanks,
jason
 
Old 11-09-2001, 04:12 PM   #12
kc571
LQ Newbie
 
Registered: Nov 2001
Posts: 4

Rep: Reputation: 0
Opentoe, how did you get your windows do see the Linux box? I'm having a lot of problems trying to do this.

email me or respond here, thanks...

kc571@hotmail.com
 
  


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
samba/cups: lp from linux to Windows RogueWave Linux - Networking 5 10-31-2005 08:45 AM
samba: windows to linux paulr1984 Linux - Networking 11 04-26-2005 11:36 PM
Linux/Windows/Macs....Oh my! Need help with Samba chos Linux - Newbie 2 08-03-2003 12:59 AM
Samba - Linux box can see Windows, but WIndows can't see Linux Korff Linux - Networking 1 06-02-2003 10:23 AM
Samba: Browsing Linux from Windows DiBosco Linux - Networking 6 01-06-2002 06:41 AM

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

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

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