David Bustos wrote:
> Quoth Joseph on Wed, Jun 21, 2006 at 04:53:38PM -0700:
>> Also one more Q, in fact that application requires a specific user to
>> be created. I think i cant put the useradd part of the
>> svc/profile/update, since thats only for SMF command. Any other way to
>> handle this in alternate root scenario?
>>
>> Ie to create the requierd user one first reboot after installation?
> 
> (a) Create an SMF service to run a script.
> 
> (b) Drop a script in /etc/rc?.d.
> 
> (c) echo user:::... >> /a/etc/passwd

gack!  Please don't do that!  There are classaction scripts for
adding users, borrow one.  /etc/passwd is an editable-type of
file.  I've got one laying around here somewhere...
  -- richard

Reply via email to