Fedora Linux Support Community & Resources Center

Sections ›› Home | Forums | Guidelines | Forum Help | Fedora FAQ | Fedora News 

Go Back   FedoraForum.org > Fedora Support > Networking

Networking Networking with Fedora such as dhcp, IP numbers, wlan, modems, etc.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 2005-02-02, 02:18 PM CST
Inuxlay Offline
Registered User
 
Join Date: Jan 2005
Location: Maryland, USA
Posts: 21
Connecting to windows network

HI,
I am trying to connect my FC2 box to a windows network to access files on my windows account there. I am a total newb and I don't know how to go about this. Any pointers would be appreciated.
Christine
Reply With Quote
  #2  
Old 2005-02-02, 02:36 PM CST
KeDruff Offline
Registered User
 
Join Date: Nov 2004
Posts: 82
If you want to access a Windows Server, you'll need to set up samba to access that workgroup, at the least. This is the first entry in smb.conf. Make it "students," or whatever the name of your workgroup/domain is. After that, I am sure you'll have to set up smb.conf to login to the WinNT domain, but I have no experience in this.

KD
Reply With Quote
  #3  
Old 2005-02-02, 02:53 PM CST
pparks1's Avatar
pparks1 Offline
Registered User
 
Join Date: Mar 2004
Location: Westland, Michigan
Age: 35
Posts: 2,317
Actually, in order to connect a linux box to a Windows file share, you do not need to configure anything at all in Samba. You configure samba (SMB.conf) when you want the Linux box to act like a Windows file server.......e.g., You want to share files on your Linix box for the Windows network.

You have a package natively installed in FC3 (samba-client) which adds support for samba into the mount command.

So, on linux, you could do the following

1. mkdir /mountpoint.
2. mount -t smbfs -o username=user/domain //windows_server/sharename /mountpoint
3. it will then ask you for your password. Enter it here and you should find your files mounted under /mountpoint (created in step 1)

Most of my linux machines are command line only, so I didn't provide any info on how to do this through the GUI. I know it is possible, but give this a try first just to see that it works.
__________________
RHCE and MCSE systems administrator
Registered Linux User #375155 For More Info or to register yourself

My Linux box is:
Ubuntu 8.04, Antec Sonata II case with 450-watt PS, AMD 64 X2 4600+ (65 watt), 4GB DDR2 800 RAM, 18X Lite-On DVD burner, Asus M2NPV-VM, Nvidia GeForce 7600GT (256MB), 320GB Western Digital SATA 3.0Gbps, Logitech MX-310, Dell 18" ultrasharp LCD, Microsoft Natural Ergonomic Keyboard 4000 and 2.1 Boston Acoustics sound system..
Reply With Quote
  #4  
Old 2005-02-02, 02:57 PM CST
KeDruff Offline
Registered User
 
Join Date: Nov 2004
Posts: 82
Thanks... didn't know that. But, I am correct in that she will have to configure smb.conf if she wants to connect TO her box from elsewhere on the network?

KD
Reply With Quote
  #5  
Old 2005-02-02, 03:09 PM CST
Inuxlay Offline
Registered User
 
Join Date: Jan 2005
Location: Maryland, USA
Posts: 21
I followed the above steps and got no error messages, however, I was not prompted for a password, and there are no files in the new directory. Also, where should I have created the new directory?
Reply With Quote
  #6  
Old 2005-02-02, 04:13 PM CST
Inuxlay Offline
Registered User
 
Join Date: Jan 2005
Location: Maryland, USA
Posts: 21
This is the error message i got:

[root@localhost /]# mount -t smbfs -o cslocum/goucher.edu //darwin/users /mountpoint
4357: Connection to darwin failed
SMB connection failed


What does this mean?
Reply With Quote
  #7  
Old 2005-02-02, 05:38 PM CST
KeDruff Offline
Registered User
 
Join Date: Nov 2004
Posts: 82
Your domain is PROBABLY NOT goucher.edu... Your domain is typically something like Students or Faculty or something of the sort. Domain in the above example does not mean the internet domain, it means the NT Domain that is used internally. If you go to a WinNT box and try to logon, it should tell you what the domain is.

KD
Reply With Quote
  #8  
Old 2005-02-02, 05:40 PM CST
PJam26 Offline
Registered User
 
Join Date: Jan 2005
Age: 28
Posts: 3
what if it is a windows network in my house, and i just want to share files betwwen the linux box and the windows box...how do i do it, windows XP?
Reply With Quote
  #9  
Old 2005-02-02, 08:08 PM CST
KeDruff Offline
Registered User
 
Join Date: Nov 2004
Posts: 82
If you want to share FROM WinXP to Linux, you should be able to connect to the machine in the following fashion:

Quote:
1. mkdir /mountpoint.
2. mount -t smbfs //windows_server/sharename /mountpoint
If you want to share from your Linux box to Windows, you need to set up a share using smb.conf. Again, set your workgroup (same as it is in Windows), and then scroll to the bottom where there are examples of how to set up shares.

Once you've set up your share, restart smb and try it out.

KD
Reply With Quote
  #10  
Old 2005-02-04, 02:36 PM CST
olivierv's Avatar
olivierv Offline
Registered User
 
Join Date: Aug 2004
Posts: 124
In response to pparks1's comment:
Quote:
Actually, in order to connect a linux box to a Windows file share, you do not need to configure anything at all in Samba.
I don't think that's correct. KerDuff was correct in pointing out that you need to change the workgroup to match your workgroup OR domain. I've never been able to connect to a share without this being set to reflect either my workgroup (at home) or my ADS Domain (at work). Without this step I've always gotten an error similar (if not the same) as what Inuxlay reported.

I've always used the following command to connect to a share (domain or workgroup) and this is AFTER setting the correct value for WORKGROUP in smb.conf:

Code:
mount -t smbfs //winserver/sharename /mnt/wheretomount -o username=yourWindowsUserName
Also, unless you've got smbmnt suid to root (not optimal for the paranoids about security) or an appropriate entry in /etc/fstab, only root can execute the above command.

Having said that, if there is a way around this or if I was missing something- teach me!
Reply With Quote
  #11  
Old 2005-02-04, 03:40 PM CST
Northern Offline
Registered User
 
Join Date: Nov 2004
Posts: 54
I use this command to mount windows shared directories from linux -

Code:
mount -t smbfs //winserver/sharename /mnt/wheretomount -o username="yourWindowsUserName",password="myWindowsPassord"
Without touching smb.conf.

To make this easier I added the following line to /etc/auto.misc -
Code:
windows             -fstype=smbfs,ro,nosuid,username="windowsUsername",password="windowsPassword" ://winserver/sharename
Then -
Code:
chkconfig autofs on
service autofs restart
Now if I do 'ls /misc/windows' I see my windows share

Hope that helps
Reply With Quote
  #12  
Old 2005-02-04, 03:48 PM CST
willieray's Avatar
willieray Offline
Registered User
 
Join Date: Sep 2004
Location: So. California
Posts: 191
Quote:
Originally Posted by Northern
I use this command to mount windows shared directories from linux -

Code:
mount -t smbfs //winserver/sharename /mnt/wheretomount -o username="yourWindowsUserName",password="myWindowsPassord"
Without touching smb.conf.
not the most secure way to mount if people are around. if you leave off the password switch, it will prompt you and not leave your pw in plain text for all to see. also, auto.misc and fstab are readable by any user. there must be a more secure way using shadow no?
__________________
~willieray Registered Linux User #371168
#include <beer.h>

Computer Science is as much about computers as astronomy is about telescopes
-- Edsger Wybe Dijkstra (1930-2002)

Last edited by willieray; 2005-02-04 at 03:49 PM CST. Reason: addendum
Reply With Quote
  #13  
Old 2005-02-04, 03:55 PM CST
Northern Offline
Registered User
 
Join Date: Nov 2004
Posts: 54
Yep spot on. However it works and its reliable. Most folk dont have passwords on windows boxes anyway so it makes no odds

I just use autofs at work cos we've got a windows machine with downloaded software/patches on it, just makes things easier.

I guess on an internal home network the security factor is not really an issue for most people
Reply With Quote
  #14  
Old 2005-02-07, 04:25 PM CST
olivierv's Avatar
olivierv Offline
Registered User
 
Join Date: Aug 2004
Posts: 124
Quote:
Originally Posted by Northern
I guess on an internal home network the security factor is not really an issue for most people
As a security professional, that hurts. A lot.

Reply With Quote
  #15  
Old 2005-02-08, 01:44 AM CST
Northern Offline
Registered User
 
Join Date: Nov 2004
Posts: 54
You a copper then

edit oops you said professional

Last edited by Northern; 2005-02-08 at 02:20 AM CST.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Connecting to a Windows Network josephmo Networking 11 2009-09-01 11:16 AM CDT
Connecting to my Windows network fmw Installation Help 2 2007-03-08 11:18 AM CST
Connecting to Windows Network via VPN Bill Polhemus gmane.linux.redhat.fedora.general 38 2006-11-02 12:20 PM CST
Connecting FC4 to windows network mm00mm Networking 6 2005-10-01 02:55 AM CDT
connecting to windows network printer using samba..help minesh Installation Help 1 2005-06-28 01:02 AM CDT

Automatic Translations (Powered by Powered by Google):
Afrikaans Albanian Arabic Belarusian Bulgarian Catalan Chinese Croatian Czech Danish Dutch English Estonian Filipino Finnish French Galician German Greek Hebrew Hindi Hungarian Icelandic Indonesian Italian Japanese Korean Latvian Lithuanian Macedonian Malay Maltese Norwegian Persian Polish Portuguese Romanian Russian Serbian Slovak Slovenian Spanish Swahili Swedish Taiwanese Thai Turkish Ukrainian Vietnamese Yiddish

All times are GMT -7. The time now is 12:43 PM CST.

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo



All trademarks, and forum posts in this site are property of their respective owner(s).

FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact | Founding Members
Designed By Ewdison Then | Powered by vBulletin ©2000-2009, Jelsoft Enterprises Ltd.
FedoraForum is Powered by Open Source Projects and Products
Thanks to NLP-er you enjoy automatic translations (vBET 2.3.8)