On Wednesday 01 October 2008, Rahul Sundaram wrote: > Hi, > > If I stuck this portion into the fedora-live initscript, it would enable > sudo for the first user entered during firstboot. Does this seem like a > sensible thing to do? Does anyone have the details handy on modifying > consolehelper as well? > > ----------------- > > # check for the first user and add it to user wheel and then to sudoers > > USER=$( grep 500 /etc/passwd | cut -d: -f1 ) > GROUPS=$( groups $USER ) > if ! groups $USER | grep -q wheel ; then > usermod -G wheel $USER > echo "%wheel ALL=(ALL) ALL" >> /etc/sudoers > fi > > > EOF > ------------ > > Rahul
I prefer not putting user in wheel, but just putting: nbecker ALL=(ALL) NOPASSWD: ALL