Subscribe to Windows IT Pro
April 22, 2002 12:00 AM

Using Null Session Shares

Windows IT Pro
InstantDoc ID #24541
Rating: (2)

Administrators don't typically need to use null session shares. However, under certain circumstances, they're useful. Consider a Win32 service such as Microsoft IIS that must access data on remote machines. By default, IIS creates a local user account called IUSR_machinename. When someone accesses your Web site as an anonymous user, IIS logs on (or impersonates) using that account. So when IIS tries to access a file or Active Server Pages (ASP) page—including using a Universal Naming Convention (UNC) path to access a file on a remote machine—it uses IUSR_machinename's credentials. The remote machine can't use the IUSR_machinename account to authenticate the user because the account exists only on the IIS machine. If, however, the UNC refers to a shared directory that has a null session share, the remote machine doesn't challenge the IIS machine for credentials, and the IUSR_machinename account has full access to the UNC share.

In addition, some services require null session shares, so during their setup routines, the services might add share names to the registry's null session share list. For example, Microsoft Dfs creates a null session share called DFS$. If you remove this share, Dfs services might fail to function properly. Most Windows machines create a COMCFG null session share, which apparently is used for SNA communication services. Other services, such as the UNIX Line Print Remote (LPR) utility and some antivirus packages (e.g., McAfee's VirusScan, Computer Associates'—CA's—Inoculan AntiVirus), use null session shares as well.

Related Content:

ARTICLE TOOLS

Comments
  • Tim
    2 years ago
    Feb 14, 2010

    Thank you.

  • Tim
    2 years ago
    Feb 14, 2010

    Thank you.

You must log on before posting a comment.

Are you a new visitor? Register Here

advertisement

advertisement

Windows is a trademark of the Microsoft group of companies. Windows IT Pro is used by Penton Media Inc. under license from owner.