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

Re: itp: static bins / resolving static debian issues



On Wed, Aug 18, 1999 at 07:50:57PM -0400, Raul Miller wrote:

> I'll have sash clone the root passwd entry as sashroot, then change the
> shell to sash.  [It would be nice if there were a well defined interface
> for automated manipulations of the password file that supports this --
> adduser does not, for example.]

	lockfile-create /etc/passwd
	# optionally backup passwd file
	# cp /etc/passwd /etc/passwd.bak
	grep "^root:" /etc/passwd | sed -e 's/^root:/sashroot:/' >>/etc/passwd
	lockfile-remove /etc/passwd

	lockfile-create /etc/shadow
	# optionally backup shadow file
	# cp /etc/shadow /etc/shadow.bak
	grep "^root:" /etc/shadow | sed -e 's/^root:/sashroot:/' >>/etc/shadow
	lockfile-remove /etc/shadow

	chsh -s /bin/sash sashroot

this would require a "Depends: lockfile-progs" in the control file.

craig

--
craig sanders


Reply to: