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

Re: No benefit for running sash as root shell?



Raul Miller <rdm@test.legislate.com> writes:

> (1) mechanism for adding the alias (locking /etc/passwd falls in
> this area).

Something like this is safe.  (this is untested)

adduser --system toor
echo "#!/bin/perl -ipe\ns/(^toor:[^:]+):\d+/$1:0/; > /etc/sashfixpw
chmod +x /etc/sashfixpw
VISUAL=/etc/sashfixpw vipw
rm /etc/sashfixpw


Guy


Reply to: