Subject: Re: su: /bin/csh: Permission denied
To: <>
From: Ben Cottrell <benco@pendor.McKusick.COM>
List: port-pmax
Date: 02/10/1998 16:17:08
On Wed, 11 Feb 1998 08:20:09 +1100, Simon Burge wrote:
> On Tue, 10 Feb 1998 13:46:13 -0000  Josef Watzko wrote:
> > # su - postgres
> > su: /bin/csh: Permission denied


The most likely cause of this is that either / or /bin has incorrect
permissions (non-readable or non-executable by all). For a name to
be successfully looked up, each of its components has to have correct
permissions as well.

> > # grep postgres /etc/passwd
> > postgres:*:600:15:psql admin:/home/pqsql:/bin/csh
> It may not solve your problem, but you have the incorrect format for
> this entry.  If you used `vipw', it shouldn't have let you create a
> entry like the one above.  You need something like:
> 	postgres:*:600:15::0:0:psql admin:/home/pqsql:/bin/csh
> 			  ^^^^^

... and Simon,

The above statement is only correct for the master.passwd file. Josef's
quoted entry for postgres is entirely correct for the file he said he
grepped for it in.