no controlling tty error

2007-02-26 Thread Bryan Irvine
I recently had a crashed disk. I recovered from backup, and made some changes to fstab. Now I can't get postgresql to start. I get an error that no controlling tty. If I try to start it anyway it tells me that postmaster isn't in the same directory as pg_ctl (but it is). Maybe somebody else

Re: no controlling tty error

2007-02-26 Thread Ingo Schwarze
sh: No controlling tty (open /dev/tty: Permission denied) sh: cannot create /dev/null: Permission denied Did you tighten up any permissions? # cd /dev; ls -al tty null crw-rw-rw- 1 root wheel2, 2 Feb 26 22:29 null crw-rw-rw- 1 root wheel1, 0 Feb 26 22:25 tty

Re: no controlling tty error

2007-02-26 Thread Stuart Henderson
On 2007/02/26 13:39, Bryan Irvine wrote: sh: No controlling tty (open /dev/tty: Permission denied) sh: cannot create /dev/null: Permission denied this all points to permissions on /dev being wrong. (cd /dev;sh MAKEDEV all), I would untar the relevant OS distribution *.tgz over the top as well

Re: no controlling tty error

2007-02-26 Thread Matthias Kilian
On Mon, Feb 26, 2007 at 01:39:16PM -0800, Bryan Irvine wrote: sh: No controlling tty (open /dev/tty: Permission denied) [...] sh: cannot create /dev/null: Permission denied Use ls(1) to see what's wrong with /dev (probably just empty), then use MAKEDEV(8) to repair it. Ciao, Kili --

Re: no controlling tty error

2007-02-26 Thread Bryan Irvine
ah this did it. I'm not sure why it was all messed up. As far as I recall I didn't mess with /dev hr ah well MAKEDEV all fixed it. Everything is ok now. On 2/26/07, Stuart Henderson [EMAIL PROTECTED] wrote: On 2007/02/26 13:39, Bryan Irvine wrote: sh: No controlling tty (open