Windows Share FAQ
The CS labstaff maintains a server, named
share,
which runs the
SAMBA software. This
allows Windows users to access files in their UNIX home directories. The
following FAQ is designed to help Windows users set up their machines to access
share.
If you do login to share, please remember to
disconnect when you are done. This
can be accomplished by disconnecting the drive, logging
out of the system or rebooting.
Windows XP/2000 access to the network.
- Make sure your machine has obtained an IP address. This can
be done either by using
DHCP
or you can request a static IP from the
Lab Staff (please mention the machine type, OS, and name you would like).
- Properly install Windows XP/2000 and its networking software. If
you are doing the initial installation of XP/2000, it may automatically
prompt you for the network settings. If not, right-click on the
icon on your desktop
and select .
- In the window
right-click on and select
. This will pop-up another window labeled
.
- The default behavior for Windows is to install three things:
Client for Microsoft Networks, File and Printer Sharing, and
Internet Protocal (TCP/IP). You should disable File and Printer
Sharing and enable the other two.
- Now double-click on .
This will bring up a new window where you can set the IP address, subnet
mask, default gateway and preferred DNS server.
If you are using DHCP, check the radio button Obtain
an IP address automatically. Otherwise, enter the IP address
given to you, the Subnet Mask (255.255.255.0) and the
Default gateway (152.3.137.61).
You can set the DNS Servers or choose to Obtain DNS sever
address automatically. The Preferred DNS server should be
152.3.140.1 and the Alternate DNS server should be set to
152.3.250.1.
- Click on the tab. In
the new window you will see tabs for IP Settings, WINS, DNS and Options.
- Select the tab and under
NetBIOS Setting select the Default radio button.
- Select the tab and select
the append these DNS suffixes (in order): button. Add
cs.duke.edu and duke.edu. Also, uncheck
the box that says Register this connection's addresses in DNS.
- Click .
- Click and run the
Regedit.exe command
- From the HKEY_LOCAL_MACHINE on Local Machine window, navigate
to the following folder:
SYSTEM\CurrentControlSet\Services\LanmanWorkStation\Parameters
- Click
and name the new value:
enableplaintextpassword
- Right Click on the above entry, select
and enter:
Value Data: 1
- Click and then quit
Regedit.exe
- Restart Windows.
- Map a network drive to the share
server.
Mapping a Network Drive.
To do this, you must do what is commonly referred to as logging
on to the share server. There are several methods for doing
this. You can find step by step instructions (with pictures!) in the
Drive Mapping FAQ.
Without knowing your configuration settings, this is the easiest
way:
- Click
- Enter the command: net use * \\share\homes
- Enter you UNIX username and password when prompted.
- The mapped drive will appear under My Computer and can be accessed
from any Internet Explorer or Windows Explorer windows.
Installing a network printer.
Notes about printer naming and header pages:
- By default, when printing to a network printer, a header (or
banner) page is printed at the beginning of each print job. Each
printer is also available via a name with a "-h" suffix; for example,
109 and 109-h. To print without a header
page, use the name with -h.
- When printing from UNIX, certain printer features such as duplex
and tray, are selectable via the printer name. This is not possible
when printing from Windows. To select these features from Windows,
select the printer, then edit the ; make sure that appropriate features of
the printer are enabled. Then select these features when printing
each document. You can set defaults, and then feature selection will
only be necessary when you don't want the defaults.
To install a printer:
- Map a network drive to the share
server.
- Click
- Double click icon
- Select
and click
- Type \\share\printer and click
(replace printer
with the name of the printer)
- Click to install drivers
on your local machine
- Select the make and model of your printer, and click
(for a list of printer types
see /etc/printcap)
- Select or
for your default settings
- Click and then
Accessing your home directory from untrusted networks
If you are outside the CS trusted
network, you will need to setup a
secure tunnel
to access your CS directories. Examples of this include access from home
through your ISP, from the Duke wireless network or from a network
at another school. This can be accomplished by using a Windows or
UNIX stunnel client.
As of May 2006, we have changed the way we share the Windows
server. We have installed stunnel,
which sets up a secure
tunnel that is available at all times while your computer is connected
to the internet. The program is available for most major platforms from
the stunnel site;
Mac OSX users can compile the source or install the
darwin port.
In order to use stunnel, you will need to put the following files in the
stunnel directory (typically C:\Program Files\stunnel). The
client.pem will allow you
to establish the secure connection, and the
stunnel.conf file has all
of the settings to connect to the servers, and use the client.pem
file. (these files are only accessible from machines within the CS
network; if you need access to the files outside the department network
please contact the Lab Staff.
You will either need to uninstall File and Printer
Sharing on your machine or temporarily stop the Server
service on your system. If you choose to stop the server, it will restart on the
next reboot. This is useful if you intend to reenable local file serving or printing
services on your home network.
To uninstall File and Printer Sharing:
- Open
- Select the
services and select .
To stop the Windows Server Service:
- and run the
services.msc command
- Scroll down until you find the Server entry, and right-click on and select
Stop.
- Note: This stops the server service during the current session. It
will automatically start again after a reboot unless you
change the .
After putting the files in place, and starting stunnel you will have a secure tunnel
for accessing your CS files as well as providing access to the CS
printers.
In order to mount a directory, right-click on the
icon and select
. When the
dialog box appears,
enter the address 127.0.0.1. The computer will select an
available drive letter that is appropriate.
\\127.0.0.1\your-cs-username (replace your-cs-username with your CS login ID)
This same method can be used to add printers. When configuring the printer,
you can select a network printer and use the name:
To install a printer:
- Click
- Double click icon
- Select
and click
- Type \\127.0.0.1\printer-name and click
(replace printer
with the name of the printer)
- Click to install drivers
on your local machine
- Select the make and model of your printer, and click
(for a list of printer types
see /etc/printcap)
- Select or
for your default settings
- Click and then