Hi Mike,

Thanks very much for your response.

I need the user for installation time and not compile time (similar to 
postgres). As you suggested, I shall add the user to 
usr/src/tools/protocmp/stdusers.c

Regards,
Ritu

Mike Sullivan wrote:

> Ritu Kamboj wrote:
>
>> Hi,
>>  I am integrating MySQL 5.0.45 into Nevada.
>>
>> The MySQL installation expects that a user named 'mysql' exist under 
>> the group 'mysql'.
>>
>
> That's in order to use it or in order to build it? If it's needed
> to build it then you'll need to update the build tools in ON, in which
> case you probably should just add the user/group into the base
> files in ON anyway (see usr/src/cmd/Adm). You'll see webservd
> and postgres there for that reason - I believe they ship files
> owned by those users thus they had to update the tools to know
> about them so the packages and proto areas matched (see
> usr/src/tools/protocmp/stdusers.c).
>
> Actually if you do that as well, even though you wouldn't need such
> changes for nevada, you might want to update the tools anyway
> if you will be trying to get mysql into an s10 update (where
> the proto area and packages still must match users and groups).
>
> If you just need the mysql user/group in order to run mysql,
> then I'd think it would be ok to run useradd and friends provided
> you can tell them to use an alternate root (like the pkgadd -R
> option). You have to be able to do that since your package may
> or may not be installing on /. Hmm and I don't see that useradd
> has such an option via a quick look, so it may be you have to
> just update the base file in ON anyway.
>
>     Mike



Reply via email to