#!/bin/sh
# Start a login shell for $user on $tty.
# $Id: usershell,v 1.3 1998/03/16 05:07:14 kragen Exp $

# This program is in the public domain; I hereby relinquish all copyright
# claim to it.

# Kragen Sitaker <kragen@pobox.com>, 15 March 1998.


user="$1" tty="$2"
# All parameters must be set.
: ${user:?} ${tty:?}

# own-tty is something I wrote to deal with the pgrp stuff. -KJS
exec /usr/sbin/own-tty "$tty" /bin/login login -f "$user"
