everytime a command gets ran by a cronjob i get this errror
Mar 20 18:05:00 ns1 /usr/sbin/cron[26886]: (root) CMD (/usr/libexec/atrun)
Mar 20 18:05:00 ns1 cron[26886]: NSSWITCH(nss_method_lookup): mysql, group, setgrent, not found
Mar 20 18:05:00 ns1 cron[26886]: NSSWITCH(nss_method_lookup): mysql, group, getgrent_r, not found
Mar 20 18:05:00 ns1 cron[26886]: NSSWITCH(nss_method_lookup): mysql, group, endgrent, not found
Mar 20 18:05:00 ns1 cron[26886]: NSSWITCH(nss_method_lookup): mysql, passwd, endpwent, not found
do you guys know what might be causing this?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Odd. I can't reproduce this. Can you add a cron entry that runs as a MySQL user which runs every minute and touches /tmp/something and see if /tmp/something is owned by said MySQL user? I have no problems doing that, and I don't get any of those messages.
Is this a fresh 5.2.1-RELEASE box, or have you cvsup'ed at all? What do these commands return:
mysql --version
ident /usr/lib/nss_mysql.so.1
If you feel OK with giving me root access to the box I could probably figure this out much more quickly, especially since I can't reproduce this. That's obviously your call...
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
everytime a command gets ran by a cronjob i get this errror
Mar 20 18:05:00 ns1 /usr/sbin/cron[26886]: (root) CMD (/usr/libexec/atrun)
Mar 20 18:05:00 ns1 cron[26886]: NSSWITCH(nss_method_lookup): mysql, group, setgrent, not found
Mar 20 18:05:00 ns1 cron[26886]: NSSWITCH(nss_method_lookup): mysql, group, getgrent_r, not found
Mar 20 18:05:00 ns1 cron[26886]: NSSWITCH(nss_method_lookup): mysql, group, endgrent, not found
Mar 20 18:05:00 ns1 cron[26886]: NSSWITCH(nss_method_lookup): mysql, passwd, endpwent, not found
do you guys know what might be causing this?
Is this FreeBSD? Did you restart cron (or reboot) after installing libnss-mysql? What version of libnss-mysql and FreeBSD (or whatever OS)?
yup, and i added ldconfig_paths="/usr/lib/compat /usr/X11R6/lib /usr/local/lib /usr/local/lib/mysql" to my rc.conf
im using freebsd 5.2.1 and libnss-mysql 1.1
Odd. I can't reproduce this. Can you add a cron entry that runs as a MySQL user which runs every minute and touches /tmp/something and see if /tmp/something is owned by said MySQL user? I have no problems doing that, and I don't get any of those messages.
Is this a fresh 5.2.1-RELEASE box, or have you cvsup'ed at all? What do these commands return:
mysql --version
ident /usr/lib/nss_mysql.so.1
If you feel OK with giving me root access to the box I could probably figure this out much more quickly, especially since I can't reproduce this. That's obviously your call...
actually it seems to be working good now.