Ignite-UX

Create a user account in the course of ignition

 
zhwpeng
Occasional Advisor

Create a user account in the course of ignition

Hello, all,

I'd like to create a user account prior to software load in the course of cold installation over ignite server. I try to use pre_load_cmd statement in config files to achieve it. However, I get the following error:

/etc/passwd file busy...

It sounds like passwd file has been locked in the process of ignition. What can I do to achieve it?

Many Thanks
9 REPLIES 9
Sanjay_6
Honored Contributor

Re: Create a user account in the course of ignition

Hi,

you should look at the post_onfig_cmd in place of the pre_load_cmd.

http://docs.hp.com/en/B2355-90772/ch03s01.html

Hope this helps.

Regds
zhwpeng
Occasional Advisor

Re: Create a user account in the course of ignition

Hello,

Thank you for kind help.

The thing is a user account must created prior to software load. The software will fail to load if specific account is not found in passwd file.

It is ok to install software after OS comes up.

Kind Regards,
Ravi_8
Honored Contributor

Re: Create a user account in the course of ignition

Hi,

I too faced similar problem while installing MQSeries over ignite, Since MQSeries needs a user id by name 'mqm' to be exist before installing the product. I didn't tried using pre/post install script.
never give up
Ravi_8
Honored Contributor

Re: Create a user account in the course of ignition


I logged a call with HP. the naswer i got is i have to write a script on post_config file to do so. which i haven't tried.
never give up
zhwpeng
Occasional Advisor

Re: Create a user account in the course of ignition

Hello, Ravi,

I've got into the same problem with you. As I remember, MQ Serieis will try to create user account on its own. I will try some other solutions on Monday. I will notify you if I succeed.

Kind Regards,

Scot Bean
Honored Contributor

Re: Create a user account in the course of ignition

Another solution could be to code up a preinstall script for the product involved.

When the product installs, it runs the presinstall script first.

Actually, maybe you should recommend this to the product vendor. Sounds like the product you are installing is not packaged well smooth installation.
zhwpeng
Occasional Advisor

Re: Create a user account in the course of ignition

Hello,

The key point is passwd file remains in special state in the middle of installation. Any change is not allowed.

Kind Regards,
Mohanasundaram_1
Honored Contributor

Re: Create a user account in the course of ignition

Off topic.

Hi Ravi,

Are you the RAVI at IBM Bangalore?
Attitude, Not aptitude, determines your altitude
Arco van Geest
Frequent Advisor

Re: Create a user account in the course of ignition

You can unlock the passwordfile.

Gnome had to be hacked to get it working:
#!/sbin/sh

PATH=${SWPATH}:/sbin:/usr/bin
export PATH
#add Changes for pwd.lock
touch /etc/.pwd.lock > /dev/null 2>&1 || /bin/true
chmod 400 /etc/.pwd.lock > /dev/null 2>&1 || /bin/true
chown root:sys /etc/.pwd.lock > /dev/null 2>&1 || /bin/true
#/add

/usr/sbin/groupadd gdm > /dev/null 2>&1 || /bin/true
/usr/sbin/useradd -g gdm gdm > /dev/null 2>&1 || /bin/true