LinuxQuestions.org
Visit Jeremy's Blog.
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 03-30-2002, 09:55 AM   #1
dpreed7
Member
 
Registered: Feb 2002
Posts: 34

Rep: Reputation: 15
windows and linux file sharing


Hi I'm new to Linux and have some networking questions that hopefully someone can help me with. I Have 3 computers(win98,Linux Mandrake and Win 2000 Server) networked. I'm trying to get the windows machines to share files with the linux machine. I've installed webmin on Linux and am trying to get to it to configure windows file sharing. The problem is my GUI on Mandrake isn't working. That's a whole nother story. All the machines can ping each other so I know their is no connectivity problem. When I try to point to webmin(https://192.168.1.5:10000) from my Windows 2000 web browser it doesn't work. Now I installed web min and it's dependencies on my Linux machine but when I try to start webmin(/etc/rc.d/init.d/webmin start) I get the following errors:
perl:warning: setting locale failed
perl:warninglease check locale setting:
language="en_US:en")
LC_All
LC_messages
LC_Time
are supported and installed on your system
perl:warning: falling back to standard locale("C")
failed to bind to port 10000: address already in use at /usr/share/webmin/miniserv.pl line267

Can anybody help me with this? Is webmin already running and I tried to start it again? Why can't I point to webmin from my Windows 2000 machine's web browser. We did this on machines in a Linux class I'm taking? Thanks. I also have samba installed on my Linux machine.
 
Old 03-30-2002, 02:44 PM   #2
Sixpax
Member
 
Registered: Mar 2002
Distribution: Mandrake 8.1
Posts: 386

Rep: Reputation: 31
Samba is definitely the way to go.

What happens when you run this (as root):

mkdir /winshare1
smbmount //windozepc/sharename /winshare1 -o username=myuser,password=mypass
 
Old 03-31-2002, 11:27 AM   #3
dpreed7
Member
 
Registered: Feb 2002
Posts: 34

Original Poster
Rep: Reputation: 15
Hi sixpack I need some clarification on your instructions. First of all even though I have Samba installed I figure I have to configure it somehow and I thought that's what webmin is for. Second your commands you want me to run are:
mkdir /winshare1
submount //windozpc/sharename/winshare1 -0
username=myuser , password=mypass

Let's take line 1. In place of the words winshare you want me to type the actual name of the windows file I want to share? What do I do with the number 1.
Line 2-I assume you want me to type the name of the windows pc(windozpc) and the windows file that I'm sharing(sharename). However what do you want me to do with winshare1 -0? I'm not sure.

Line3-not sure what you want me to do here. Do you want me to type username=and then type in the user name that I sign in with to my 2000 machine and then password=then type the password I use to get into my windows machine.

Sorry I'm lost here but I'm a beginner for now.

Lost
 
Old 03-31-2002, 12:12 PM   #4
Sixpax
Member
 
Registered: Mar 2002
Distribution: Mandrake 8.1
Posts: 386

Rep: Reputation: 31
No problem at all. Actually it's only 2 lines, apparently the 2nd line was wrapped to a 3rd on your screen.

I'll walk you through it... what I'm trying to do is setup a connection from your Linux box to one of the shares on your windoze pc.

I wanted you to create a directory locally to mount the share on. I used /winshare1 as an example, but you can call it whatever you like. However, this does NOT have to be the same name as the share on your windoze pc, although it can if you like. This is what you call the mount point for that share.

Then, to do the actual mount, we use a program called "smbmount". There are other ways to do it, but smbmount is pretty easy. You can check "man smbmount" for the manual on how it's used.

In a nutshell, it's done like this:

smbmount <share> <mount point> [-o options]

BTW, that's a lower case "-o" not the number zero

I assume you setup the share on your windoze pc with a username and password, so that's why you need the "-o username=<user>,password=<pass>" to connect.

Where I put //windozepc/sharename, you substitute the name of your windoze pc (how it shows up when using network neighborhood to browse) and the name of the share on that pc.

Where I put /winshare1, you substitute the name you used in the "mkdir" command.
 
Old 04-01-2002, 07:08 AM   #5
dpreed7
Member
 
Registered: Feb 2002
Posts: 34

Original Poster
Rep: Reputation: 15
Hi Sixpack I made my directory on my Linux box using the mkdir /winshare1 command. Then I used the following command:
smbmount //danny/drivers /winshare1 -o username=dan reed,password=wolf

Danny is the name of my windows 98 machine and drivers is a shared folder on danny. Now as far as user name and password I used dan reed which is the user name logged into the Win98 box. Wolf is the password for dan reed. Is that what you meant by user name and password. Is the format right? Because when I ran that command I got the following response:

password:

I tried putting in my Linux and Windows passwords but neither worked. I got the error :
smbfs: unrecognized mount option user.

Also not sure Samba is installed correctly. When I did rpm -qi | Samba I got a "samba not installed" and I had installed it before. I then tried to install it with the rpm -Uvi Samba .....command. Then when I tried the rpm -qi | samba command again I got some response like /usr/bin/samba start stop restart. Don't quote me on this because I can't remember it all. But the bottom was I tried to start it again and think I did. Not sure though. So I've got a bit of a mess here. Any suggestions? Mostly I like to know about the smbmount command. Do I even need to put in a user name and password to get to a shared file on a windows box? I know if your trying to get to a shared file on a 2000 machine you need to have an account set up on the 2000 machine. Any help would be greatly appreciated. Thanks
 
  


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
Sharing a swap file with linux and windows Doug Hammond LinuxQuestions.org Member Success Stories 5 07-11-2005 06:06 AM
How file sharing on linux to windows cbcats Linux - Networking 6 01-25-2005 02:58 PM
File Sharing Windows and linux together ? maxboost Linux - Networking 4 12-30-2004 12:24 PM
Linux-Windows file sharing ar1 Linux - General 6 01-22-2004 11:54 PM
re: windows and linux file sharing rahul_jain_9684 Linux - Software 4 07-28-2003 02:42 AM

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

All times are GMT -5. The time now is 03:23 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