Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 10 Apr 1996 22:30:20 -0700 (PDT)
From:      Mike Pritchard <mpp>
To:        CVS-committers, cvs-all, cvs-usrbin
Subject:   cvs commit:  src/usr.bin/chpass field.c
Message-ID:  <199604110530.WAA07974@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
mpp         96/04/10 22:30:19

  Modified:    usr.bin/chpass  field.c
  Log:
  Print some warnings if root invokes chpass and sets the
  shell to one of the following:
  
  - a non-existent file
  - a non-regular file
  - a file without any execute bits set
  
  The shell is still set to whatever they entered even if the above
  conditions exist (hey, it is the super user doing this after all :-),
  but this might give the admin. some warning that they are about to screw
  themselves and give them a chance to fix it before it is too late.
  
  Inspired by: some new FreeBSD user on USENET who set his root shell
    to a shell that doesn't exist and now can't gain access to root (don't
    worry, I sent him some mail on how to recover from this).
  
  Revision  Changes    Path
  1.3       +19 -0     src/usr.bin/chpass/field.c



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