Re: itp: static bins / resolving static debian issues
On Thu, Aug 19, 1999 at 11:28:57AM +1000, Craig Sanders wrote:
> 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.
Thanks, but this doesn't even fail reasonably if the system uses
nis or non-passwd pam. [Also, as a minor nit, I also have to
deal with the case where sashroot already exists.]
--
Raul
Reply to: