Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
11-08-2001, 04:27 PM
|
#1
|
LQ Newbie
Registered: Nov 2001
Location: NJ
Posts: 12
Rep:
|
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!
|
|
|
11-08-2001, 05:02 PM
|
#2
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417
|
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
|
|
|
11-08-2001, 06:21 PM
|
#3
|
LQ Newbie
Registered: Nov 2001
Location: NJ
Posts: 12
Original Poster
Rep:
|
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
|
|
|
|
11-08-2001, 07:55 PM
|
#4
|
Member
Registered: Nov 2001
Location: Kansas
Distribution: rh71/2, mandrake81
Posts: 53
Rep:
|
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
|
|
|
11-08-2001, 10:45 PM
|
#5
|
Member
Registered: Nov 2001
Location: Kansas
Distribution: rh71/2, mandrake81
Posts: 53
Rep:
|
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
|
|
|
11-08-2001, 10:49 PM
|
#6
|
LQ Newbie
Registered: Nov 2001
Location: NJ
Posts: 12
Original Poster
Rep:
|
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
|
|
|
|
11-08-2001, 11:14 PM
|
#7
|
Member
Registered: Nov 2001
Location: Kansas
Distribution: rh71/2, mandrake81
Posts: 53
Rep:
|
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
|
|
|
11-08-2001, 11:47 PM
|
#8
|
LQ Newbie
Registered: Nov 2001
Location: NJ
Posts: 12
Original Poster
Rep:
|
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
|
|
|
|
11-09-2001, 07:08 AM
|
#9
|
Member
Registered: Nov 2001
Location: Kansas
Distribution: rh71/2, mandrake81
Posts: 53
Rep:
|
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
|
|
|
11-09-2001, 07:25 AM
|
#10
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417
|
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.
|
|
|
11-09-2001, 08:14 AM
|
#11
|
LQ Newbie
Registered: Nov 2001
Location: NJ
Posts: 12
Original Poster
Rep:
|
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
|
|
|
|
11-09-2001, 04:12 PM
|
#12
|
LQ Newbie
Registered: Nov 2001
Posts: 4
Rep:
|
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
|
|
|
All times are GMT -5. The time now is 03:27 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|