TITLE
    QuickTime Streaming Server: Creating Users And Groups
Article ID:
Created:
Modified:
31169
1/27/00
7/10/00

TOPIC

    This article explains how to create users and groups, and assign privileges for QuickTime Streaming Server 2.0 authentication on Mac OS X Server.


DISCUSSION

    Note: Authentication requires that clients use QuickTime Player 4.1 or later. Earlier versions of QuickTime Player cannot authenticate. These users receive a 401 error if you use authentication with QuickTime Streaming Server 2.0.

    Example: Adding a new user
      root# /usr/sbin/qtpasswd -c /etc/qtusers bassanio
      Adding password for bassanio.
      New password:
      Re-type new password:
    To add another user, do the same, but leave off "-c," which clears the user and group file for the first user. To add each new user and password onto /etc/qtusers follow the example below.

    Example: Adding an additional user
      root# /usr/sbin/qtpasswd /etc/qtusers portia
      Adding password for portia.
      New password:
      Re-type new password:
    You can repeat this as often as you like, creating different user and group files for QuickTime access. This allows you to have different sets of users and passwords for each directory that needs protecting. The generated /etc/qtusers file is similar to the one show below.
      bassanio:6rLfAC7rSDv6g
      portia:UwtyIfJ/Ivp4o
    If you have many users, they can be organized into groups by creating a text file /etc/qtgroups. (See example of format below.)
      <group1>:    [&#91;<username1> <username2> <username3> ... &#93; ]
      <group2>:    [ &#91; <username1> <username2> <username3> ... &#93; ]
    Example: /etc/qtgroups text file
      File:  /etc/qtgroups
      ====================
      everyone:     bassanio portia
      engineering:  bassanio
      marketing:    portia
    Notice that a space separates each username. This means usernames cannot contain a space. Passwords do not have this limit.

    In the local movie directory that you want to protect, create a file named 'qtaccess' with the following information. (You can use this as a template.)
      AuthName QuickTime Streaming Server
      AuthUserFile /etc/qtusers
      AuthGroupFile /etc/qtgroups
      require user bassanio
      require group engineering
    In this example, to authenticate with QuickTime 4.1, the user will either have to provide the name "bassanio" and the right password, or any valid username and password for a member of the group "engineering".

Document Information
Product Area: Mac OS System Software
Category: Mac OS X Server
Sub Category: QuickTime Streaming

Copyright © 2000 Apple Computer, Inc. All rights reserved.