tuxlinsecure wrote:

Hi,

What binaries & directory premissions are required to enable in sudo to start 
mysql Instance through sudo.

Thanks,

Hi All,

what user do you want to be able to start MySQL? Just add that
user to your wheel group(be careful though, as that gives that user full
power usually) and change the sudoers file(/etc/sudoers) to reflect
that. Is there a reason why you only want manual startups of MySQL? I
just added the startup script to my /etc/init.d dir as mysql, gave it
execution permissions and did a chkconfig and it always runs at boot.
Cheers.

Mark Sargent.

EDIT: I originally sent this to the OP mistakenly addressing him/her as Barry. Sorry about that. You could also do like below, from,

http://www.courtesan.com/sudo/man/sudoers.html


Runas_Spec

A Runas_Spec is simply a Runas_List (as defined above) enclosed in a set of parentheses. If you do not specify a Runas_Spec in the user specification, a default Runas_Spec of root will be used. A Runas_Spec sets the default for commands that follow it. What this means is that for the entry:

 dgb    boulder = (operator) /bin/ls, /bin/kill, /usr/bin/lprm

The user dgb may run /bin/ls, /bin/kill, and /usr/bin/lprm -- but only as operator. E.g.,

 $ sudo -u operator /bin/ls.

It is also possible to override a Runas_Spec later on in an entry. If we modify the entry like so:

 dgb    boulder = (operator) /bin/ls, (root) /bin/kill, /usr/bin/lprm

Then user dgb is now allowed to run /bin/ls as operator, but /bin/kill and /usr/bin/lprm as root

--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:    http://lists.mysql.com/[EMAIL PROTECTED]

Reply via email to