Subject: Re: su troubles
To: Brian Carroll <carroll@ultdev.chess.cornell.edu>
From: Bill Studenmund <wrstuden@loki.stanford.edu>
List: port-mac68k
Date: 02/10/1998 09:04:45
On Tue, 10 Feb 1998, Brian Carroll wrote:

> 
> I'm having troubles with su.  I don't seem able to su to any account
> unless I login as root.  I can't even su into the account I'm already
> logged into.  When I do "su someusername" it prompts me for a password and
> when I give it the correct password I get a "Sorry".  Su-ing from root to
> another account works peachy.  It sounds like a permission problem to me.
> Here is the permissions set for su and passwd(which I assume su reads):
> 
>  -r-xr-xr-x  1 root  wheel  16384 Jan 21 17:40 su
>  -rw-r--r--  1 root  wheel  728 Feb 10 11:48 passwd
> 
> So it looks like I should be able to execute su and read the passwd file.
> Are there any other files I should be looking at?  

No. But su should be:
-r-sr-xr-x  1 root  bin  12288 Nov 29 11:50 /usr/bin/su
   ^

Well, the size and date can differ. :-) But it does need to be set-uid
root. 

To fix this, as root, type chmod u+s /usr/bin/su

Take care,

Bill