Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: script to fix DSS login (Forbidden/403 errors) problems on headless servers



Okay, I can't post attachments to the list.

Here is the script (enclosed between the dotted lines):
----------------------------------------------
#!/bin/sh
# Setup for DSS
# Prompts for a username and password
# that can be used to administer the server
# Also deletes the index.html file so Setup Assistant won't run

echo;echo Darwin Streaming Server Setup;echo

# prompt the user to enter the admin username
if [ "$username" = "" ]; then
printf "DSS Administrator Username cannot contain spaces, or quotes, either single or double, and cannot be more than 255 characters long\n"
printf "Enter DSS Administrator Username : "
read username
if [ "$username" = "" ]; then
echo ""
echo "Error: No Username entered!"
echo ""
exit 1
fi
fi
echo ""


# prompt the user to enter the admin password
if [ "$password" = "" ]; then
printf "DSS Administrator Password cannot contain spaces, or quotes, either single or double, and cannot be more than 80 characters long\n"
printf "Enter DSS Administrator Password: "
stty -echo
read password
stty echo
echo ""
printf "Re-enter DSS Administrator Password: "
stty -echo
read password1
stty echo
if [ "$password" = "" ]; then
echo ""
echo "Error: No Password entered!"
echo ""
exit 1
fi
if [ "$password" != "$password1" ]; then
echo ""
echo "Error: Passwords entered do not match!"
echo ""
exit 1
fi


fi
echo ""

# Add the new admin username to /etc/streaming/qtusers
/usr/local/bin/qtpasswd -p $password $username

# Add the new admin username to /etc/streaming/qtgroups
# and delete the default admin username
echo admin: $username > /etc/streaming/qtgroups.tmp
mv /etc/streaming/qtgroups.tmp /etc/streaming/qtgroups

# Remove the default admin username to /etc/streaming/qtusers
/usr/local/bin/qtpasswd -F -d 'aGFja21l' > /dev/null

# Remove the index.html file
rm -f /var/streaming/AdminHtml/index.html

echo Setup Complete!
-----------------------------------------------------------------------------------

On Friday, December 21, 2001, at 02:18 PM, Mythili Devineni wrote:

Enclosed is a script that can be run to take care of the 403 problems.
After you untar DarwinStreamingSrvr4.0-xxxxx.tar.gz and run the Install
script, run SetupDSS.sh. It will prompt you for username and password
which you can use to administer DSS.

Once you do this, you can go to a browser on any remote machine and
login to DSS admin. You will not get the SetupAssistant but you can
configure all those settings in General Settings section.

The script does whatever Chris asked y'all to do yesterday as a
workaround:

Begin forwarded message from Chris LeCroy:
Subject: Re: How to login to Public Preview #2 (and avoid
403/Forbidden errors)

Yes - you can do all of this via the command line (of course, this
mechanism
may change in the future).

Three steps:

1- Run qtpasswd and create a user that you want to be your admin user.

2- Edit /etc/streaming/qtgroups then replace the current admin user
with
your new admin user name.  Here's an example:
  admin: ken

3- Execute "rm /var/streaming/AdminHtml/index.html"

We'll try to put together and post a script that walks you through this
soon.

This is just a workaround for people who don't have the GUI parts installed on their linux (and other unix) servers. This is not intended for MacOSX QTSS servers. We are going to make this process better for the final release, so that you don't run into the same issues again. We appreciate your feedback and patience!

Hope this helps,
mythili

[demime 0.98b removed an attachment of type application/x-tar which had a name of SetupDSS.sh.tar]
_______________________________________________
streaming-server-developers mailing list | streaming-server-
email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/streaming-server-developers
Do not post admin requests to the list. They will be ignored.



Mythili Devineni
email@hidden
QuickTime Streaming Server Engineering


References: 
 >script to fix DSS login (Forbidden/403 errors) problems on headless servers (From: Mythili Devineni <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.