Michael C. Toren on 22 Aug 2005 17:27:03 -0000


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: [PLUG] Terminal/shell login with no password


On Fri, Aug 19, 2005 at 04:03:17PM -0400, Tom Diehl wrote:
> > > Contrary to the above advice it is very possible to edit the files
> > > directly as long as you are careful.
> >
> > Sure, it's possible, but you risk shooting yourself in the foot.
> 
> You have that possibility every time you login as root. There is nothing
> to keep someone from typing rm -rf foo * when you wanted to do rm -rf foo*.

Are you advocating the use of the "rm -rf foo *" command, in addition to
editing the passwd files directly?

> Depending on what directory you are in you not only shot yourself in the
> foot you blew your whole leg off. That is the *nix way. It is assumed
> you know what you are doing and are responsible for your actions.

Likewise, if you edit the passwd files directly, unix won't stop you.
It will assume you know that normally the passwd files are locked before
being modified to avoid concurrent access problems, that for some reason
you don't care, and that you want to risk corruption of your passwd
files anyway.

Is there a good reason you want to risk corruption of your passwd files?

-mct

-- 
perl -e'$u="\4\5\6";sub H{8*($_[1]%79)+($_[0]%8)}sub G{vec$u,H(@_),1}sub S{vec
($n,H(@_),1)=$_[2]}$_=q^{P`clear`;for$iX){PG($iY)?"O":" "forX8);P"\n"}for$iX){
forX8){$c=scalar grep{G@$_}[$i-1Y-1Z-1YZ-1Y+1ZY-1ZY+1Z+1Y-1Z+1YZ+1Y+1];S$iY,G(
$iY)?$c=~/[23]/?1:0:$c==3?1:0}}$u=$n;select$M,$C,$T,.2;redo}^;s/Z/],[\$i/g;s/Y
/,\$_/xg;s/X/(0..7/g;s/P/print+/g;eval' #     Michael C. Toren <mct@toren.net>

___________________________________________________________________________
Philadelphia Linux Users Group         --        http://www.phillylinux.org
Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce
General Discussion  --   http://lists.phillylinux.org/mailman/listinfo/plug