Omega - Sudo for first user?

Rahul Sundaram metherid at gmail.com
Wed Oct 1 16:43:19 CEST 2008


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


More information about the rpmfusion-developers mailing list