Re: cron can't find root or operator
--- Bill Moran [EMAIL PROTECTED] wrote: What you did was install the system crontab as a user. Log in as the user you executed crontab crontab as, and enter crontab -r. That will remove the crontab for that user. On a related note. I'm going to make some changes to that section of the handbook in an attempt to clarify it. Do you mind if I contact you directly to get your feedback on whether or not my changes make that chapter easier to understand? -- Bill Moran Potential Technologies http://www.potentialtech.com Bill, Thanks for the help. Yeah, you can contact me if you need to. It would be nice to see some info about the differance between the system and user crontabs and how to properly create and use a user crontab, as well as when/why one would want to use a user crontab. Plus the alternatives, if it is not the appropriate way of handling whatever the user needs done. Like in my case - I want to have a logrotate script and webalizer run once a week on sunday nights at midnight. I was trying to follow the instructions included with webalizer and in the Handbook, nothing more. Regards, Chip W Simrad, Inc www.simradusa.com www.simrad.com __ Do you Yahoo!? Yahoo! Domains Claim yours for only $14.70/year http://smallbusiness.promotions.yahoo.com/offer ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
cron can't find root or operator
I have a new server set up and running and am getting a slew of messages from cron, like this - Subject: Cron [EMAIL PROTECTED] root /usr/libexec/atrun Body: root: not found and Cron [EMAIL PROTECTED] operator /usr/libexec/save-entropy operator: not found What's going on with cron? Thanks, Chip __ Do you Yahoo!? Yahoo! Domains Claim yours for only $14.70/year http://smallbusiness.promotions.yahoo.com/offer ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: cron can't find root or operator
--- Bill Moran [EMAIL PROTECTED] wrote: You've got a user's crontab created in the format of the system crontab. The system crontab has an extra field to designate the user under which the job should run. When this field is entered in a user's crontab, cron interprets it as the command to be run and the errors you describe generally result. Keep in mind that the user root has a user crontab that is different from the system crontab. If you're still fuzzy as to what went wrong, reading the man pages for crontab (in addition to my explanation) should help. good luck. -- Bill Moran Potential Technologies http://www.potentialtech.com Bill, I see in the Handbook in section 6.6.1 that I should run crontab crontab to create a new crontab, which I did, in the /etc directory, as root. Thus the crontab file in /etc looks like this - After reading the man page and the one page in the manual I don't know what to do to fix this - www# crontab -l # /etc/crontab - root's crontab for FreeBSD # # $FreeBSD: src/etc/crontab,v 1.32 2002/11/22 16:13:39 tom Exp $ # SHELL=/bin/sh PATH=/etc:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin HOME=/var/log # #minute hourmdaymonth wdaywho command # */5 * * * * /usr/libexec/atrun # # Save some entropy so that /dev/random can re-seed on boot. */11* * * * /usr/libexec/save-entropy # # Rotate log files every hour, if necessary. 0 * * * * newsyslog # # Perform daily/weekly/monthly maintenance. 1 3 * * * periodic daily 15 4 * * 6 periodic weekly 30 5 1 * * periodic monthly # # Adjust the time zone if the CMOS clock keeps local time, as opposed to # UTC time. See adjkerntz(8) for details. 1,310-5 * * * adjkerntz -a # # Rotate web server logs and run webalizer 0 0 * * 6 /usr/bin/rotate_weblogs 5 0 * * 6 /usr/local/bin/webalizer -Q /usr/local/www/data/weblogs/httpd-access.backup www# __ Do you Yahoo!? Yahoo! Domains Claim yours for only $14.70/year http://smallbusiness.promotions.yahoo.com/offer ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
sendmail only sends mail for root, not non-root users
(hopefully the list won't get two copies of this message) I have determined what the problem is with sendmail - only root can send mail. Here are the messages from maillog (notice the root emails are sent ok, the www emails are not) - May 19 11:40:00 www sendmail[11799]: i4JIe0nK011799: to=root, ctladdr=root (0/0), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30273, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (i4JIe0DU011800 Message accepted for delivery) May 19 11:40:07 www sm-mta[11801]: i4JIe0DU011800: [EMAIL PROTECTED], ctladdr=[EMAIL PROTECTED] (0/0), delay=00:00:07, xdelay=00:00:07, mailer=esmtp, pri=30850, relay=mail.simrad.com. [193.69.73.2], dsn=2.0.0, stat=Sent (Ok) May 19 11:41:08 www sendmail[11804]: i4JIf82K011804: SYSERR(www): collect: Cannot write ./dfi4JIf82K011804 (bfcommit, uid=80, gid=25): Permission denied May 19 11:41:08 www sendmail[11804]: i4JIf82K011804: from=www, size=368, class=0, nrcpts=1, [EMAIL PROTECTED] May 19 11:41:08 www sendmail[11804]: i4JIf82K011804: SYSERR(www): queueup: cannot create queue file ./qfi4JIf82K011804, euid=80: Permission denied This is from the messages log - May 19 11:41:08 www sendmail[11804]: i4JIf82K011804: SYSERR(www): collect: Cannot write ./dfi4JIf82K011804 (bfcommit, uid=80, gid=25): Permission denied May 19 11:41:08 www sendmail[11804]: i4JIf82K011804: SYSERR(www): queueup: cannot create queue file ./qfi4JIf82K011804, euid=80: Permission denied What do I have to do to make sendmail send mail for non-root users? Thanks Chip __ Do you Yahoo!? SBC Yahoo! - Internet access at a great low price. http://promo.yahoo.com/sbc/ ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
sendmail doesn't send mail
I just got a new server up and running and need it to send mail. The rc.conf file has sendmail_enable=NO and it does start when the system boots up. I can, as root, send a message direct from the command line and it is sent successfully. But when I try to have a message sent from a web page it errors out with this permissions error - May 17 09:08:17 www sendmail[18900]: i4HG8HZC018900: SYSERR(www): collect: Cannot write ./dfi4HG8HZC018900 (bfcommit, uid=80, gid=25): Permission denied May 17 09:08:17 www sendmail[18900]: i4HG8HZC018900: SYSERR(www): queueup: cannot create queue file ./qfi4HG8HZC018900, euid=80: Permission denied I don't know what to do, I've set up previous versions of FBSD and haven't had this problem before. The version I am running is 5.2.1. Sendmail is only needed to send outbound messsages for apache/php. I tried the php mail() function but it errors out - Failed to send to [EMAIL PROTECTED] Could not instantiate mail(). Please help. Thanks, Chip PS, I have been trying to subscribe to the list but never get a mail after submitting the form. In fact, I am not getting any messages from the freebsd.org system to my corporate email account. __ Introducing the New Netscape Internet Service. Only $9.95 a month -- Sign up today at http://isp.netscape.com/register Netscape. Just the Net You Need. New! Netscape Toolbar for Internet Explorer Search from anywhere on the Web and block those annoying pop-ups. Download now at http://channels.netscape.com/ns/search/install.jsp ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
sendmail on new install gives permissions error
I just got a new server up and running and need it to send mail. The rc.conf file has sendmail_enable=YES and it does start when the system boots up. I can, as root, send a message direct from the command line and it is sent successfully. But when I try to have a message sent from a web page it errors out with this permissions error - May 17 09:08:17 www sendmail[18900]: i4HG8HZC018900: SYSERR(www): collect: Cannot write ./dfi4HG8HZC018900 (bfcommit, uid=80, gid=25): Permission denied May 17 09:08:17 www sendmail[18900]: i4HG8HZC018900: SYSERR(www): queueup: cannot create queue file ./qfi4HG8HZC018900, euid=80: Permission denied I don't know what to do, I've set up previous versions of FBSD and haven't had this problem before. The version I am running is 5.2.1. Sendmail is only needed to send outbound messsages for apache/php. I tried the php mail() function but it errors out - Failed to send to [EMAIL PROTECTED] Could not instantiate mail(). Please help. Thanks, Chip PS, I have been trying to subscribe to the list but never get a mail after submitting the form. __ Do you Yahoo!? SBC Yahoo! - Internet access at a great low price. http://promo.yahoo.com/sbc/ ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
moving /var symlink to /usr/var isn't working, now broke mysql
I am trying to move /var to /usr/var and create a symlink but it isn't working right. Here's what I am doing - mkdir /usr/var cd /var tar cf - . | ( cd /usr/var; tar xf - ) cd / rm -rf /var ln -s /usr/var /var I am using FreeBSD-5.2. Everything works except the rm -rf /var, I get a message that it is not empty. I look in /var and see a subdirectory called empty, which is empty. But I cannot delete it. If I try the ln -s part it appears to work but when I do ls -la I don't see the link. Now the /var is messed up and my database server isn't working correctly, and the web site doesn't show the results of queries needed on the web site. Do the above commands work with this version of FreeBSD? If not, how do I do this? (Please reply to this email address, [EMAIL PROTECTED], because for some reason my requests to subscribe to the list are not working) Thanks -- Chip Wiegand Computer Services Simrad, Inc www.simradusa.com [EMAIL PROTECTED] There is no reason anyone would want a computer in their home. --Ken Olson, president, chairman and founder of Digital Equipment Corporation, 1977 (Then why do I have 8? Somebody help me!) __ Do you Yahoo!? Yahoo! Movies - Buy advance tickets for 'Shrek 2' http://movies.yahoo.com/showtimes/movie?mid=1808405861 ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
looks like i've dug my hole too deep, plz help quick.
I may have screwed up big time - I tried moving /var to /usr/var and accidentally was in root when I ran the command tar cf - . | ( cd /usr/var; tar xf - ) now when I look at root it has some directories but no files at all. I look at /usr/var and see directories and no files. When I try to reverse the process with this command, from /usr/var, tar cr - . | ( cd /; tar xf - ) I get lots of errors about file system full. This is on my company web server. What can I do to fix this? -- Chip __ Do you Yahoo!? Yahoo! Movies - Buy advance tickets for 'Shrek 2' http://movies.yahoo.com/showtimes/movie?mid=1808405861 ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: looks like i've dug my hole too deep, plz help quick.
You have only those two files in root? What about the kernal files I see on my system? Anyway, I have taken this opportunity to do a complete upgrade - new server, updated OS, Aps, everything. Moving from an AMD Athlon 600 to a AMD 2600+ with a 400mHz FSB MB, and a 120gig HD, giving LOTS of room to root and swap partitions. This time I will set the symlinks on /var and /tmp to /usr/var and /usr/tmp first thing after the OS installs. This should make for a very nice web server. Regards, Chip --- Vince Hoffman [EMAIL PROTECTED] wrote: On Wed, 12 May 2004, carvin5string wrote: I may have screwed up big time - I tried moving /var to /usr/var and accidentally was in root when I ran the command tar cf - . | ( cd /usr/var; tar xf - ) if it was simply that then nothing was deleted. tar cf - just tars up the files and sends it to stdout. nothing is deleted. the only files i have in / are COPYWRITE and entropy. dont need any others you may need to delete the files you created in /usr/var but you shouldnt need to copy them back. now when I look at root it has some directories but no files at all. I look at /usr/var and see directories and no files. When I try to reverse the process with this command, from /usr/var, tar cr - . | ( cd /; tar xf - ) I get lots of errors about file system full. This is on my company web server. What can I do to fix this? -- Chip __ Do you Yahoo!? Yahoo! Movies - Buy advance tickets for 'Shrek 2' http://movies.yahoo.com/showtimes/movie?mid=1808405861 ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] __ Do you Yahoo!? Yahoo! Movies - Buy advance tickets for 'Shrek 2' http://movies.yahoo.com/showtimes/movie?mid=1808405861 ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]