Thread: : permission denied initdb: 34: Syntax error: Bad fd number

: permission denied initdb: 34: Syntax error: Bad fd number

From
Colin Woolmer
Date:
I am trying to install PostgreSQL 7.0 running under Windows NT. I have
followed Kevin Lo's instructions and have had no problems until trying
to run initdb.

I get the following

bash-2.02$ source .bashrc
bash-2.02$ initdb
: permission denied
/usr/local/pgsql/bin/initdb: 34: Syntax error: Bad fd number

Obviously I have a permissions problem, but the install notes did not
mention anything about settings for specific user accounts. My mounts
are as follows:

Device           Directory           Type        Flags
i:\postgres\source\pgsql /usr/src/pgsql      native      text!=binary
i:\postgres\binary\pgsql /usr/local/pgsql    native      text=binary
i:\usr\local\lib /usr/local/lib      native      text!=binary
i:\usr\local\include /usr/local/include    native      text!=binary
i:\usr\local\bin /usr/local/bin      native      text!=binary
i:\unix\root\cygwin-b20\share /sw/cygwin-b20/share   native text!=binary
\\.\tape1:       /dev/st1            native      text!=binary
\\.\tape0:       /dev/st0            native      text!=binary
\\.\b:           /dev/fd1            native      text!=binary
\\.\a:           /dev/fd0            native      text!=binary
i:\unix\root\cygwin-b20\H-i586-cygwin32\i586-cygwin32\bin /bin native
text!=binary
i:\unix\root     /                   native      text!=binary

I am logged in as colin on a NT4 SP5 workstation authenticated by a NT4
SP5 server via LAN. I have administrator permissions granted to both
boxes.

Can anyone help me out here.

Thanks
Colin
--
Colin Woolmer

Re: : permission denied initdb: 34: Syntax error: Bad fd number

From
"Karl F. Larsen"
Date:
Not at all sure about NT but in Linux you must run intdb as the posgres
user. It's covered in the documentation which I hope you got with the NT
software.

On Thu, 8 Jun 2000, Colin Woolmer wrote:

> I am trying to install PostgreSQL 7.0 running under Windows NT. I have
> followed Kevin Lo's instructions and have had no problems until trying
> to run initdb.
>
> I get the following
>
> bash-2.02$ source .bashrc
> bash-2.02$ initdb
> : permission denied
> /usr/local/pgsql/bin/initdb: 34: Syntax error: Bad fd number
>
> Obviously I have a permissions problem, but the install notes did not
> mention anything about settings for specific user accounts. My mounts
> are as follows:
>
> Device           Directory           Type        Flags
> i:\postgres\source\pgsql /usr/src/pgsql      native      text!=binary
> i:\postgres\binary\pgsql /usr/local/pgsql    native      text=binary
> i:\usr\local\lib /usr/local/lib      native      text!=binary
> i:\usr\local\include /usr/local/include    native      text!=binary
> i:\usr\local\bin /usr/local/bin      native      text!=binary
> i:\unix\root\cygwin-b20\share /sw/cygwin-b20/share   native text!=binary
> \\.\tape1:       /dev/st1            native      text!=binary
> \\.\tape0:       /dev/st0            native      text!=binary
> \\.\b:           /dev/fd1            native      text!=binary
> \\.\a:           /dev/fd0            native      text!=binary
> i:\unix\root\cygwin-b20\H-i586-cygwin32\i586-cygwin32\bin /bin native
> text!=binary
> i:\unix\root     /                   native      text!=binary
>
> I am logged in as colin on a NT4 SP5 workstation authenticated by a NT4
> SP5 server via LAN. I have administrator permissions granted to both
> boxes.
>
> Can anyone help me out here.
>
> Thanks
> Colin
> --
> Colin Woolmer
>
>

Yours Truly,

       - Karl F. Larsen, k5di@arrl.net  (505) 524-3303  -


Re: : permission denied initdb: 34: Syntax error: Bad fd number

From
Colin Woolmer
Date:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

In article <Pine.LNX.4.10.10006081644100.800-100000@cannac.ampr.org>,
Karl F. Larsen <k5di@zianet.com> writes
>
>Not at all sure about NT but in Linux you must run intdb as the posgres
>user. It's covered in the documentation which I hope you got with the NT
>software.
>
>On Thu, 8 Jun 2000, Colin Woolmer wrote:
>
>> I am trying to install PostgreSQL 7.0 running under Windows NT. I have
>> followed Kevin Lo's instructions and have had no problems until trying
>> to run initdb.
>>
>> I get the following
>>
>> bash-2.02$ source .bashrc
>> bash-2.02$ initdb
>> : permission denied
>> /usr/local/pgsql/bin/initdb: 34: Syntax error: Bad fd number
>>
>> Obviously I have a permissions problem, but the install notes did not
>> mention anything about settings for specific user accounts. My mounts
>> are as follows:
>>
>> Device           Directory           Type        Flags
>> i:\postgres\source\pgsql /usr/src/pgsql      native      text!=binary
>> i:\postgres\binary\pgsql /usr/local/pgsql    native      text=binary
>> i:\usr\local\lib /usr/local/lib      native      text!=binary
>> i:\usr\local\include /usr/local/include    native      text!=binary
>> i:\usr\local\bin /usr/local/bin      native      text!=binary
>> i:\unix\root\cygwin-b20\share /sw/cygwin-b20/share   native text!=binary
>> \\.\tape1:       /dev/st1            native      text!=binary
>> \\.\tape0:       /dev/st0            native      text!=binary
>> \\.\b:           /dev/fd1            native      text!=binary
>> \\.\a:           /dev/fd0            native      text!=binary
>> i:\unix\root\cygwin-b20\H-i586-cygwin32\i586-cygwin32\bin /bin native
>> text!=binary
>> i:\unix\root     /                   native      text!=binary
>>
>> I am logged in as colin on a NT4 SP5 workstation authenticated by a NT4
>> SP5 server via LAN. I have administrator permissions granted to both
>> boxes.
>>
>> Can anyone help me out here.
>>
>> Thanks
>> Colin
>> --
>> Colin Woolmer
>>
>>
>
>Yours Truly,
>
>        - Karl F. Larsen, k5di@arrl.net  (505) 524-3303  -
>
>
How do I find out what the postgres user is?
During install I have run all the commands from a shelled DOS prompt
on my current login. The process did not ask for an account name. Would
the ./configure in /usr/src/pgsql/src executed before the postgres make
have created the default. If so where do I find it or what will it be?

Thanks

- --
Colin Woolmer

-----BEGIN PGP SIGNATURE-----
Version: PGPsdk version 1.7.1

iQA/AwUBOUCF53phxnfAOsx1EQKC1gCffNHpt/g1rpNUdocXPU4HcIfoAxIAn2zX
9K1EbR4v8dmUNwEsHR81g5dn
=hwdR
-----END PGP SIGNATURE-----