Friday, November 30, 2007

How to Make a User a Sudoer

  1. Add user to wheel group:
    $ vim /etc/group
    - wheel:x:10:root,newuser
    or simple do this:
    $ gpasswd -a newuser wheel
  2. Uncomment this line in sudoers file:
    $ vim /etc/sudoers
    - ## Allows people in group wheel to run all commands
    - %wheel    ALL=(ALL)    ALL
    $ visudo

Thursday, November 1, 2007

How to Make Sure MySQL Server Runs at Startup

To make sure mysqld runs at system startup time, type the following commands:
sudo /sbin/chkconfig --add mysqld
sudo /sbin/chkconfig --level 235 mysqld on
To make sure mysqld is configured properly, type the following:
sudo /sbin/chkconfig --list mysqld
The output should look like this:
mysqld           0:off 1:off 2:on 3:on 4:off 5:on 6:off