CS 325
cd mkdir build cd linux-2.6.27.1 cp minimal.config ../build/.config # In the menuconfig tool, select 'General setup' and then select 'Local # version'. Change the local version string to something like _TPK_00 . # Exit the tool, saving the new .config file. make O=/home/kdev/build menuconfig make O=/home/kdev/build # Must first edit /etc/group and /etc/sudoers for sudo to work as intended. sudo make O=/home/kdev/build modules_install install Gaining root: su - Exiting root: exit Getting sudo to work: As root, edit /etc/group. Find the line wheel:x:10:root and change it to: wheel:x:10:root,kdev Save the file. Now, again as root, edit /etc/sudoers. Find the lines ## Same thing without a password # %wheel ALL=(ALL) NOPASSWD: ALL (they're near the end of the file) and edit the second line so that it reads ## Same thing without a password %wheel ALL=(ALL) NOPASSWD: ALL (you've just un-commented that line). Exit root, exit the shell, and start a new shell. You should be able to sucessfully run sudo ls /root without the shell complaining. If not, logout completely and login again. If that still doesn't work, you did something wrong. Go back and double-check everything.