Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 30 Mar 1995 21:36:40 -0800 (PST)
From:      "Rodney W. Grimes" <rgrimes@gndrsh.aac.dev.com>
To:        hlew@genome.Stanford.EDU (Howard Lew)
Cc:        brian@mediacity.com, bugs@FreeBSD.org
Subject:   Re: passwd broken in new snap???
Message-ID:  <199503310536.VAA07667@gndrsh.aac.dev.com>
In-Reply-To: <Pine.SUN.3.91.950330203510.15689A-100000@vegemite.Stanford.EDU> from "Howard Lew" at Mar 30, 95 08:43:30 pm

next in thread | previous in thread | raw e-mail | index | archive | help
> 
> 
> 
> On Thu, 30 Mar 1995, Brian Litzinger wrote:
> 
> > > > : I upgraded to 950322 SNAP from 950210 SNAP, and ever since I can't use
> > > > : "passwd".  (I didn't do a "full re-install", I just unpacked the bin/*
> > 
> > make passwd setuid to root.
> > chown root passwd
> > chmod 4555 passwd  (I think)
> > 
> 
> Yep, I tried it and that doesn't fix it.  Here's a log of what I did:
> 
> paradise: {5} chown root passwd
> paradise: {6} passwd
> passwd: /etc/master.passwd: Permission denied
> paradise: {7} chmod 4555 passwd
> paradise: {8} passwd
> passwd: /etc/master.passwd: Permission denied
> paradise: {9} ls -al *passwd*
> -rw-------  1 root  wheel  1182 Mar 26 20:01 master.passwd
> -r-sr-xr-x  1 root  wheel   933 Mar 26 20:01 passwd
> paradise: {10} 
> 
> Okay, no can do, so changed it back to the way it was:
> paradise: {17} ls -al *passwd*
> -rw-------  1 root  wheel  1182 Mar 26 20:01 master.passwd
> -rw-r--r--  1 root  wheel   933 Mar 26 20:01 passwd
> paradise: {18} passwd
> passwd: /etc/master.passwd: Permission denied
> paradise: {19} 

Your changing permissions on the wrong ``passwd'', the person above
was refering to the command in /usr/bin, not the data file in /etc:

chown root:bin /usr/bin/passwd
chmod 4555 /usr/bin/passwd

chown root:wheel /etc/passwd
chmod 644 /etc/passwd

chown root:wheel /etc/master.passwd
chmod 600 /etc/master.passwd

> 
> Any ideas?  I think passwd is broken in the new snap release.  I'll try 
> the passwd command from the older snap and see if that fixes the problem.
> 

File permissions where seriously damaged in this release :-(.

-- 
Rod Grimes                                      rgrimes@gndrsh.aac.dev.com
Accurate Automation Company                   Custom computers for FreeBSD



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199503310536.VAA07667>