Operating System - HP-UX
1835067 Members
2951 Online
110073 Solutions
New Discussion

Problem with User Creation.

 
SOLVED
Go to solution
siva0123
Trusted Contributor

Problem with User Creation.

Hi,
My customer wants a new user id say testxxx Which should have the same password of an already existing id say xxx.

I created the user testxxx and edited the password field of the testxxx with the password entry of xxx.

But after that when i try to su to that testxxx id it's giving the following problem.


"If you are not authorized to access or use this system, disconnect now.


If you have display problems please make sure your terminal is set
to 'vt100'.
Connecting with bshell...
Connection established.
/msl4/baan/bse/lib/defaults/bspilerh.ksh[102]: test: argument expected
ba6.1: Not authorized to run as user 'testxxx'
/msl4/baan/bse/lib/defaults/bspilerh.ksh[102]: test: argument expected
Error [main ]: Can't connect to bshell
logout "

Note : I've specified the shell for the user as /usr/bin/sh but i dont know how bshell came into picture here.

Thanks in Advance for all your suggestions.
7 REPLIES 7
Sanjay_6
Honored Contributor
Solution

Re: Problem with User Creation.

Hi,

Maybe you copied the .profile from the old user to the new user and the old user .profile has something of that kind. Or this could be the default skeleton .profile or part of /etc/profile. Could be anything. Rename the .profile in the user's home directory and try. Do a grep on the new user id and the old user id and paste it over here.

grep new_id /etc/passwd
grep old_id /etc/passwd

Hope this helps.

regds
RAC_1
Honored Contributor

Re: Problem with User Creation.

Check what calls script "/msl4/baan/bse/lib/defaults/bspilerh.ksh" It soulc be /etc/profiel or .profile for the user.

the script has problems with it. Check line 102 of that script.

You may also want to run that script with debugging enabled and check where it errors out. set -vx
There is no substitute to HARDWORK
Arunvijai_4
Honored Contributor

Re: Problem with User Creation.

Check $HOME/.profile to see any calls to bspilerh.ksh. I think you have copied .profile from xxx to testxxx.

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
Sivakumar TS
Honored Contributor

Re: Problem with User Creation.

Dear Siva,

Infact when you execute #su the profile wont get executed.

Please try #su - , the "-" option makes the profile to get executed and all VARIABLES ( like , TERM) will be set.

HtH,

Siva.
Nothing is Impossible !
siva0123
Trusted Contributor

Re: Problem with User Creation.

Sanjay ,

testxxx:b2ylZhpPzrKj.:156:125:OPPR_ascii,787-890-0500:/home/testxxx:/usr/bin/sh

xxx:YoQxRlZeWTh42,B.CR:248:125: OPPR_ascii,,:/home/xxx:/usr/bin/sh

And as suggested i'm checking the .profile file now.

Thanks,
Siva
siva0123
Trusted Contributor

Re: Problem with User Creation.

Thanks All,

The problem was with the script called by the /etc/profile.

Thanks guys.

Siva
Arunvijai_4
Honored Contributor

Re: Problem with User Creation.

Hello Siva, To keep up the forum's spirit, assign points..

http://forums1.itrc.hp.com/service/forums/helptips.do?#28

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"