Recent Operating System Class Notes 05 Sharing Resources March 24, 2004
Total Page:16
File Type:pdf, Size:1020Kb
Recent Operating System Class notes 05 Sharing Resources March 24, 2004 Sharing folders and printers makes them available to other domain or workgroup members. Since Windows XP supports various networks and simultaneous use of multiple networking protocols, systems running other types of operating systems can share resources with other computers on the network. Windows XP support two basic types of sharing concepts: • Simple File Sharing • Classic Sharing Simple File Sharing Windows XP introduced a new concept called “simple file sharing” which removes confusion from sharing resources over a network. Therefore, simple file sharing makes sharing your resources easy, but limits your ability to configure sharing options and permissions. When you select the share option, Windows XP uses the guest account for all network logins. Classic Sharing Similar to file sharing in Windows 2000, when resources are shared, you grant users permission for using the resource. You can also limit the number of simultaneous connections. This type of sharing requires more experience and effort to configure. Each networked system must be set up with the appropriate user accounts. By default, the guest account is disabled (i.e. sharing is disabled). Also, Windows XP home edition supports only Simple File Sharing. Windows XP professional supports both sharing models. There are two types of sharing permission control: • Shared Resource permissions • NTFS permissions Shared Resource permission Control network access to a shared resource. These permissions do not affect local users. This type of permission control is defined in the sharing tab of a folder’s properties window. NTFS permission Apply to folders and files on an NTFS formatted drive. These permissions provide detailed control over an object. Users who are granted access can be given specific types of permissions, including the following: • Run programs • View folder contents • Create new files • Change existing files 1 NTFS permission is also defined on the sharing tab of a folder’s properties window. Both types of permission controls are combined in a restrictive manner. The user permission is first determined by the shared resource permissions. The NTFS permissions can “strip away” some of those permissions but cannot extend them. Enabling Simple File Sharing To enable Simple File Sharing, use the following steps: 1. Open Windows Explorer and right click the file or folder you want to share. 2. From the pop-up menu, choose sharing and security. 3. On the file or folder’s Properties window, click the sharing tab. 4. Under Network Sharing and Security, check the Share This Folder on the Network check box. 5. Enter a share name in the Share Name text box. Add a dollar sign to the end of the share name to make it invisible but can still be accessed. 6. If you want users to view the files only on this share, uncheck the Allow Network Users to Change My Files check box. If you leave this check box checked, users will be able to read and write to the share. Sharing Folders with Classic Security If you are logged on as an administrator, you can share resources with others on the network. To set file sharing with the classic security model, use the following steps: 1. Open Windows Explorer and right click the file or folder you want to share. 2. From the pop-up menu, choose sharing and security. 3. On the file or folder’s Properties window, click the sharing tab. 4. Under Network Sharing and Security, check the Share This Folder on the Network check box. 5. Enter a share name in the Share Name text box. Add a dollar sign to the end of the share name to make it invisible but can still be accessed. 6. If you want users to view the files only on this share, uncheck the Allow Network Users to Change My Files check box. If you leave this check box checked, users will be able to read and write to the share. 7. Click the Allow This Number of Users option to limit the number of users who can connect to the resource. 8. Click the permission button to open the Permission Window. 9. In the group or User Names list, select the name or the user or group you need to set permissions for when accessing this resource. 10. Select one or more of the following permissions: 1. Full Control: Lets users create, read, write, rename, and delete files in the shared resource. Users can also change permission settings and take ownership of files on NTFS volumes. 2. Change: Lets users read, write, rename, and delete files in the shared resource. 3. Read: Lets users read files in the shared resource. 11. Click the OK to return to the Sharing tab. 12. When done assigning permissions, click OK. 2 With Windows XP professional, you can also use the Shared Folders Snap-In, which provides a centralized approach to managing shared folders. To use this snap-in, you must be logged in as an administrator and have simple file sharing disabled. To use the shared folders snap-in, use the following steps: 1. Right click My computer and choose manage from the pop-up menu. 2. Navigate to the System Tools\Shared Folders directory. 3. View or modify the permissions for a shared folder by right clicking the folder and choosing properties from the pop-up menu. You can also send messages to users that are connected to shared resources on your system. To send a message: 1. Right click My Computer and choose Manage from the pop-up menu. 2. In the computer management window, navigate to the Systems Tools\Shared Folders directory. 3. Right click the shares folder, and then choose All Tasks | Send Console Message from the pop-up menu. 4. The send console message dialog box, shown next, automatically inserts the names of users with active session and open files in the recipients list. Type the message and click send. Windows XP also offers managing resource sharing via command line options using the Net.exe utility. To get more information using the Net.exe command see “net help” or “net help share”. See table below for examples: Table one: Examples of net share commands Net Command Description Net share Displays a list of system’s shared resources Net share sharename Displays information regarding the shared resource Net share sharename/delete Deletes the specified shared resource Net use Displays a list of resources to which you are currently connected to. Net session Displays a list of clients that are accessing your shared resources Net file Displays a list of open shared files including file ID Net file ID/close Closes the file specified by the ID Internet Connection Firewall On a small network with only one Internet connection, you can share that Internet connection with other systems on the network using the Internet Connection Sharing (ICS) feature. If you enable ICS, the Internet Connection Firewall (ICF) is automatically enabled. The firewall protects your shared resources from unauthorized users. If your system is isolated from the Internet by a residential gateway, proxy server, or another firewall, you can disable the firewall feature. The firewall monitors inbound and outbound communication between the computers it protects. To enable the firewall: 1. Open the control panel and select Network and Internet Connections. 3 2. Click Network Connections to open a list of network connections in the Network Connections window. 3. Right click the network connection that directly connects to the Internet, and then choose properties from the pop up menu. 4. On the Connection Properties window, click the advanced tab. 5. Make certain the “Protect my computer and network by limiting or preventing access to this computer from the Internet” option is checked. Sharing Printers To share your printer, which is attached to your computer, use the following steps: 1. Open the control panel and select Printers and Other Hardware. 2. Click view installed printers or fax printers. 3. Right click the printer you want to share, and then select sharing from the pop-up menu. 4. In the sharing folder of the properties window that opens by default, click the share this printer option. 5. Type a printer name in the share name text box. This is the name the users will see when connecting to the device. 6. If some users are running other operating systems, click the additional drivers button and install the required drivers. 7. Click the advanced tab to specify the times when the printer will be available. 8. Click OK. NetBIOS/NetBEUI The original networking model used by IBM, Microsoft, and others was created in 1984. IBM and Sytek released a LAN (Local Area Network) message interface system named the Network Basic Input/Output System (NetBIOS). NetBIOS is a generalized program- to-program communication facility that enables peer-to-peer and client/server communication between PCs operating in a LAN environment. NetBIOS communicates through three key services: 1. Name Service: Each PC using NetBIOS is assigned a logical name, and other PCs use that name to communicate with that PC. PCs learn about each other’s names by listening to announcements PCs make when they join the LAN or by broadcasting a discovery request for a name. Each PC keeps track of the names of other PCs in a local dynamic table. 2. Session Service: A PC can establish a session with another PC by “calling” it by name. Once the target PC agrees to communicate with the requesting PC, the two PCs can exchange message with one another until one of them “hangs up”. Session service is a connection-oriented service. NetBIOS provides message sequencing and message acknowledgements to insure that all messages sent are properly received.