yeoea1
18th March 2002, 05:24
My company is using BaaN IV b4 with informix database in Tru64 Unix. For now, every 90 days, the password will expire. We have to go to each user station to login as root in order to run inf_admin6.1 to change informix as well as Unix password.

Anyone have similar setup like mine? Any suggestions to let the user able to change their password themselves?

srinivas
18th March 2002, 05:33
Write a shell program which will ask for new password and changes password accordingly by calling passwd and inf_maint6.1 utilities.

yeoea1
18th March 2002, 06:22
I have only been using inf_admin6.1 in the interactive mode. How do I use inf_maint6.1 in command line mode to change a user password?

May be I am searching the wrong thing but I am trying to look for the command help for inf_maint6.1? Can you show me?

Thank in advance.

srinivas
18th March 2002, 10:14
#Unix shell script which change Unix Passwd and informix passwd at a time
echo "Please Enter BaaN Login : \c"
read usr
echo
passwd $usr
. /baan/baan4c4/env |** Set ENV
echo "Retype password : \c"
read paswd

#change informix passwd
inf_maint6.1 -r $usr -m $usr -p $paswd -q errlogin
awk '{ if ($3 == -952) print "Password Mis-match"} {if ($3 == 0) print
"Password Successfully changed"} ' errlogin

P.S: Thanks to Kamaljit & Alam Badre for developing this.

patvdv
18th March 2002, 12:03
Hi,

You can also look for hints on ora_maint6.1 as it more or less does the same thing as inf_maint6.1. Have a look at this thread (http://www.baanboard.com/baanboard/showthread.php?s=&threadid=705&highlight=%2Amaint6%2A) for more information on how to use ora_maint6.1

If you want to use the forum's search engine to look for similar posts, use the search string *maint6*

yeoea1
19th March 2002, 03:46
Thank you guys, you are a great help.

yeoea1
19th March 2002, 05:07
btw, can this script able to run with normal user login or still need to login as root?

srinivas, may I know what is the statement ". /baan/baan4c4/env |** Set ENV " function?

I am searching for this "env" file in my server since we may have different path. So far I found the file in "/usr/bin/env" not sure whether it is the same file.

srinivas
19th March 2002, 05:41
It works for normal users also. They can change only their passwords not that of others.

If in your system the BSE environment is automatically sets in then you need not give this statement (i.e. if your BSE env is set in then $BSE means bse path otherwise system will not be able to recognise $BSE variable). This is not the /usr/bin/env file which I think related to user env settings.

yeoea1
22nd March 2002, 09:02
hi, I have tested the script after some modification to suit to our need.

However the "-q" parameter is not a valid parameter for inf_maint6.1. I understand that your script is trying to check whether the informix password is consistent with the Unix password. Since "-q" is not valid, any other ways to accomplish this check?

yeoea1
19th April 2002, 07:24
Sorry this is a bit late but I need help.

After much testing, I found that the inf_maint6.1 only allow root or informix user to run. It does not allow normal user run. :(

What can I do to let normal user run the inf_maint6.1 command?

btw, I m trying to synchonise the password of user key in during the command passwd since users can have typo error when they key in the second time prompt by the script.

Any help and suggestion is appreciated.

victor_cleto
19th April 2002, 08:51
You should be able to run it from any user, the inf_maint6.1 includes the parameters:

-c InformixAdminUser -i InformixAdminPassword

Just make sure that your script is not readable by the users bu only the owner so that they cannot see the Informix admin password.

yeoea1
19th April 2002, 08:59
Originally posted by victor_cleto
You should be able to run it from any user, the inf_maint6.1 includes the parameters:

-c InformixAdminUser -i InformixAdminPassword

Just make sure that your script is not readable by the users bu only the owner so that they cannot see the Informix admin password.

It is because the version I m using is too low? Since the version of inf_maint6.1 I m using do not have the -q parameter as well as the -c and -i :(

victor_cleto
19th April 2002, 09:08
I checked on a portingset 6.1c.06.02, maybe older versions did not have this options (we're on oracle).
You can get the inf_maint6.1 from an upper version, backup your current and replace it with the newer, it should work fine (accepting those extra flags) without really upgrading your portingset!

yeoea1
19th April 2002, 11:10
where can I get this file? I have search the BaaN support webpage but cannot seen to find it. Can anyone sent me the file?

The version i have is

Porting set : 6.1b.05.01
Version : inf_maintain version 11-1995/R2
Port no. : PA.0853

thanks.

yeoea1
23rd April 2002, 06:08
Will appreciate if anyone can point me to a source or webpage to download the upper version. I have search Informix and BaaN site, either I am looking for the wrong keywords or it is not available. Anyone?

victor_cleto
23rd April 2002, 08:21
The lastest UNIX Triton/BaanIV portingset is available thru the support Baan website, Knowledge base, solution 15219.