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

2005-02-02, 02:18 PM CST
|
|
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
|

2005-02-02, 02:36 PM CST
|
|
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
|

2005-02-02, 02:53 PM CST
|
 |
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..
|

2005-02-02, 02:57 PM CST
|
|
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
|

2005-02-02, 03:09 PM CST
|
|
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?
|

2005-02-02, 04:13 PM CST
|
|
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?
|

2005-02-02, 05:38 PM CST
|
|
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
|

2005-02-02, 05:40 PM CST
|
|
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?
|

2005-02-02, 08:08 PM CST
|
|
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
|

2005-02-04, 02:36 PM CST
|
 |
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!
|

2005-02-04, 03:40 PM CST
|
|
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
|

2005-02-04, 03:48 PM CST
|
 |
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
|

2005-02-04, 03:55 PM CST
|
|
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
|

2005-02-07, 04:25 PM CST
|
 |
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.
|

2005-02-08, 01:44 AM CST
|
|
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.
|
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
Automatic Translations (Powered by  ):
All times are GMT -7. The time now is 12:43 PM CST.
|
|
 |
 |
 |
 |
|
|