Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SCO log-in looping back

Status
Not open for further replies.
Apr 23, 2002
52
US
SCO 5.04. I'm trying to use the informix user account. When I login the screen blanks then comes back to the login screen (with login & password blank). I checked usr/informix/.profile and it seems ok - Home = / shell=bin/sh and settings for Informix env. variables. What else should I check and what changes do I make?
 
Check the
Code:
/etc/passwd
file for the informix entry.

Hope This Help
PH.
 
Entry for informix in etc/passwd seems fine
informix:x:202:100::/usr/informix:bin/sh

Any other ideas please?
 
Code:
informix:x:202:100::/usr/informix:/bin/sh
                                  ^

Hope This Help
PH.
 
Sorry, my reading glasses must have slipped. It is /bin/sh in passwd.
 
Can you post the contents of the
Code:
/usr/informix/.profile
file
and the result of the
Code:
ls -al /usr/informix
command ?

Hope This Help
PH.
 
Never mind. Used ctrl c & v.
.profile in usr/informix
:
# @(#) root.profile 26.1 95/09/18
#
# Copyright (C) 1989-1995 The Santa Cruz Operation, Inc.
# All Rights Reserved.
# The information in this file is provided for the exclusive use of
# the licensees of The Santa Cruz Operation, Inc. Such users have the
# right to use, modify, and incorporate this code into other products
# for purposes authorized by the license agreement provided they include
# this notice and the associated copyright notice with any such product.
# The information in this file is provided "AS IS" without warranty.
#

SHELL=/bin/sh
HOME=/
INFORMIXDIR=/usr/informix
export INFORMIXDIR
PATH=/bin:/etc:/usr/bin:/tcb/bin:.:/usr/informix/bin
export PATH
PATH=$PATH:$INFORMIXDIR/bin ; export PATH

INFORMIXSERVER=sfa;export INFORMIXSERVER

ONCONFIG=onconfig.sfa;export ONCONFIG
# set terminal type
eval `tset -m ansi:${TERM:-ansi} -m :\?${TERM:-ansi} -e -r -s -Q`
export TERM PATH SHELL HOME

#[ -x /bin/mesg ] && mesg n # if mesg is installed...
#. /usr/lib/merge/path_set.sh ### MERGE
#MERGE_SPCL_MSG="SCO Merge"; export MERGE_SPCL_MSG ### MERGE

total 4082
drwxr-xr-x 17 informix informix 512 May 22 11:08 .
drwxrwxr-x 30 root auth 512 Sep 21 2001 ..
-rw------- 1 informix informix 97 May 20 13:41 .Xauthority
-r-------- 1 informix auth 0 May 20 13:41 .lastlogin
-rw-rw-rw- 1 root sys 1075 Nov 20 2000 .profile
drwxrwx--- 2 informix informix 512 Nov 20 2000 aaodir
drwxrwxr-x 2 informix informix 2048 Nov 20 2000 bin
drwxrwx--- 2 informix informix 512 Nov 20 2000 dbssodir
drwxr-xr-x 3 informix informix 512 Nov 20 2000 demo
drwxrwxr-x 2 informix informix 1024 Oct 29 2002 etc
drwxr-xr-x 2 informix informix 1024 Nov 20 2000 forms
drwxr-xr-x 5 informix informix 512 Nov 20 2000 gls
drwxr-xr-x 3 informix informix 512 Nov 20 2000 hhelp
drwxr-xr-x 4 informix informix 512 Nov 20 2000 incl
-rwxr-xr-x 1 informix informix 10013 Nov 17 1999 installserver
drwxr-xr-x 2 informix informix 512 Nov 20 2000 ism
drwxr-xr-x 3 informix informix 512 Nov 20 2000 lib
-rw-r--r-- 1 root sys 0 May 22 11:08 mjwtmp
drwxr-xr-x 3 informix informix 512 Nov 20 2000 msg
-rw-r--r-- 1 root sys 2046853 May 22 11:04 online.log
drwxr-xr-x 3 informix informix 512 Nov 20 2000 release
-rw-r--r-- 1 root sys 1075 May 22 08:49 sendprofile
drw-rw-rw- 2 informix informix 512 Nov 20 2000 sfarootdbs
-rw-r--r-- 1 informix informix 0 May 14 14:12 sfatest
-rw-r--r-- 1 informix informix 0 May 19 10:38 sfatest_db
drwxr-xr-x 4 informix informix 512 Nov 20 2000 snmp
-rw-r--r-- 1 informix informix 0 May 19 10:38 testfile

 
It might be worth doing an integrity check on the user auth database.

Try running these...

/tcb/bin/integrity -em
/etc/tcbck
/tcb/bin/authck -a -v
/etc/fixmog -v

Then try logging in again.

See man pages for descriptions on the commands.
 
I ran the utilities. Did not see any entries specific to the informix user. Same result as before when logging in - loops back to SCO login.
 
Have you checked the
Code:
/etc/profile
global startup script ?
You can insert a
Code:
set -x
command on top of the
Code:
/usr/informix/.profile
script to see what happens when you log in the informix account.

Hope This Help
PH.
 
I'm a real UNIX novice. Where would I find the global profile startup script and what am I looking for? I don't understand how to use "set" to generate a log of the informix sign in. I read the man info on set and apparently it returns the value of a varname. Awfully confusing.
 
The name of the global startup file is:
Code:
/etc/profile
If you don't know how to insert a line like
Code:
set -x
in a file with vi, you have to consider to meet a professionnal guy to do the job for you.

Hope This Help
PH.
 
I have included the etc/profile. I do have some UNIX skills, entirely self-taught. I have installed UNIX and Informix DBMS on a "play" server. I'm having trouble exporting a database from my production machine to the play machine. I wanted to start the process from scratch using my informix signon on the production machine. That's the reason for trying to get the informix logon to work. The system was setup long before I got this job.

I do know vi and how to edit files - I just don't understand how to use set to generate a log showing the results of a logon attempt.

Here's the etc/profile.
#!/bin/sh
# The following was generated from
# NLS/en/adm.gen
#
MF_ADM=adm.cat@Unix
#
MS_PROFILE=1
MSG_MAIL=1
:
# @(#) profile.sh 26.1 95/07/25
#
# Copyright (C) 1988-1995 The Santa Cruz Operation, Inc.
# All Rights Reserved.
# The information in this file is provided for the exclusive use of
# the licensees of The Santa Cruz Operation, Inc. Such users have the
# right to use, modify, and incorporate this code into other products
# for purposes authorized by the license agreement provided they include
# this notice and the associated copyright notice with any such product.
# The information in this file is provided "AS IS" without warranty.
#

#ident "@(#)adm:profile 1.10"

trap "" 1 2 3
umask 022

case "$0" in
-sh | -rsh | -ksh | -rksh)

# if not doing a hushlogin, issue message of the day, if the file is out there
[ "X$HUSHLOGIN" != "XTRUE" ] && [ -s /etc/motd ] && {
trap : 1 2 3
echo "" # skip a line
cat /etc/motd
trap "" 1 2 3
}

# setting default attributes for terminal moved to ~/.profile, so
# each user has individual control over these characteristics

# if not doing a hushlogin, check mailbox and news bulletins
if [ "X$HUSHLOGIN" != "XTRUE" ]
then
[ -x /usr/bin/mail ] && { # if the program is installed
[ -s "$MAIL" ] && dspmsg $MF_ADM -s $MS_PROFILE $MSG_MAIL '\nyou have mail\n'
}
if [ "$LOGNAME" != "root" -a -x /usr/bin/news ] # be sure it's there
then news -n
fi
fi
;;
-su)
:
;;
esac

trap 1 2 3
MERGE_SPCL_MSG="SCO Merge"; export MERGE_SPCL_MSG ### MERGE

In a small town like Nacogdoches,TX there aren't too many UNIX professionals - that's why I depend so much on forums such as this.
 
Code:
vi /usr/informix/.profile
oset -x<Esc>ZZ
Explanation:
Edit the informix's profile with : 'vi /usr/informix/.profile'
Type 'o' to open a new line after the 1st
Type 'set -x' to echo the commands as they are executed
Type the <Esc> key to exit insert mode
Type 'ZZ' to save and exit
Try to log in the informix account to see what happens.

Hope This Help
PH.
 
I edited .profile in usr/informix as suggested. There are no commands echoed to the screen. The SCO logon disappears, screen goes black, gray then logon screen reappears.
 
Are you login with graphical interface ? If so, you can't have HOME=/ but for superuser.

Hope This Help
PH.
 
Humm.

Most of the obvious has been tried.
Let's do some more.

1- chown informix .profile
chgrp informix .profile

2- passwd -u informix

3- check that the permissions of /usr/informix (the directory itself) are
drwxr-wr-w informix group
as a minimum. if they are all rwx it is fine.
3- check that the group informix is active in /etc/group

4- if the above does not work.
in .profile, before line with SHELL=
add
ls * >/tmp/informixls
and add the same line at the end of the file.

(and what is the security level you are on?)
 
Deleting HOME=/ did the trick. Thanks for everyone's input. I've saved all suggestions for future reference. I'll start another thread soon re: SCO OpenServer 5.04 and new server compatibility. Thanks again!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top