• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#!/bin/sh
2#*********************************************************************
3#   Copyright (c) International Business Machines  Corp., 2000
4#
5#   This program is free software;  you can redistribute it and/or modify
6#   it under the terms of the GNU General Public License as published by
7#   the Free Software Foundation; either version 2 of the License, or
8#   (at your option) any later version.
9#
10#   This program is distributed in the hope that it will be useful,
11#   but WITHOUT ANY WARRANTY;  without even the implied warranty of
12#   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See
13#   the GNU General Public License for more details.
14#
15#   You should have received a copy of the GNU General Public License
16#   along with this program;  if not, write to the Free Software
17#   Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
18#
19#  FILE   : ssh
20#
21#  PURPOSE: Tests to see that ssh allows a valid username (non-root)
22#
23#  SETUP: The program `/usr/bin/expect' MUST be installed.
24#
25#  HISTORY:
26#    03/03 Jerone Young (jeroney@us.ibm.com)
27#
28
29setup()
30{
31	tst_check_cmds ssh03_s1
32	export TEST_USER="ssh_usr3"
33}
34
35TCID="ssh03"
36TST_TOTAL=1
37
38. test.sh
39. ssh_setup
40
41setup
42do_setup
43TST_CLEANUP=do_cleanup
44
45ssh03_s1
46if [ $? -ne 0 ]; then
47	tst_resm TFAIL "Test $TCID FAIL"
48else
49	tst_resm TPASS "Test $TCID PASS"
50fi
51
52tst_exit
53