Thread: Becoming Root
View Single Post
Posts: 137 | Thanked: 8 times | Joined on Apr 2006
#3
it let me copy the gainroot but i havent tried to recopy it back. also can you help me clarify what to comment out. here is what my gainroot looks like.

#! /bin/sh -e
trap exit SIGHUP SIGINT SIGTERM
PATH=bin:/bin/usr/bin:/sbin:/usr/sbin
MODE='/usr/sbin/chroot mnt/initfs cal-tool --get-rd-mode
if [ x$MODE = enabled ]
then
echo "Root enabled"
/bin/sh
else
echo "Enabled RD mode if you want to break your device"
fi


How do you do the alternative and modify etc/sudoers