From herta.vandeneynde at gmail.com Mon May 4 21:58:22 2009 From: herta.vandeneynde at gmail.com (Herta Van den Eynde) Date: Mon, 4 May 2009 23:58:22 +0200 Subject: Sudo and umask In-Reply-To: <12a34ea51089ad47c6cbbcd6fb702a8b.squirrel@squirrel.asgardian.be> References: <12a34ea51089ad47c6cbbcd6fb702a8b.squirrel@squirrel.asgardian.be> Message-ID: 2009/4/24 Thierry Leurent > Hello, > > I'm working on a project where a all member (Group1) of a group can write > in files owned by the others members. > > I have change the umask to 002 > > Members of an other group (Group2) can run scriptes that erase some of > this files. > I have make a technical user batchuser member of Group1, I have add a rule > in sudoers to permit the members of Group2 to run the script as batchuser. > > As member of Group2, I make sudo -u batchuser -E thescript > I see that the file created by thescript have right as rw_r__r__ if I add > a umask command I see 22. > > I cannot change all scripts to add an umask command. > > Do you have an idea. > I try to add a line Defaults:%Group1 umask=0002 in my sudoers file but > that don't work. > > > -- > Thierry Leurent > > > -- > redhat-sysadmin-list mailing list > redhat-sysadmin-list at redhat.com > https://www.redhat.com/mailman/listinfo/redhat-sysadmin-list > Hi Thierry, ACLs (access control lists) were designed to handled this type of issue without having to resort to punching holes in security with sudo. ACLs are a lot less complicated than they look. Here's a first pointer: http://www.redhat.com/docs/manuals/enterprise/RHEL-4-Manual/sysadmin-guide/ch-acls.html Kind regards, Herta -- "Life on Earth may be expensive, but it comes with a free ride around the Sun." -------------- next part -------------- An HTML attachment was scrubbed... URL: From nitin.gizare at wipro.com Thu May 7 12:42:20 2009 From: nitin.gizare at wipro.com (nitin.gizare at wipro.com) Date: Thu, 7 May 2009 18:12:20 +0530 Subject: from address using maill command Message-ID: HI We have requirement of sending automated warning mail with from address option using "mail " command By default it comes with user at hostname. Can some body help? . Rgds Nitin -------------- next part -------------- An HTML attachment was scrubbed... URL: From lists at brimer.org Thu May 7 12:46:08 2009 From: lists at brimer.org (Barry Brimer) Date: Thu, 7 May 2009 07:46:08 -0500 (CDT) Subject: from address using maill command In-Reply-To: References: Message-ID: > We have requirement of sending automated warning mail with from address > option using "mail " command > > By default it comes with user at hostname. You can have your MTA rewrite it or use mutt instead of mail. From Colin.vanNiekerk at mimecast.co.za Thu May 7 13:13:47 2009 From: Colin.vanNiekerk at mimecast.co.za (Colin van Niekerk) Date: Thu, 7 May 2009 15:13:47 +0200 Subject: from address using maill command In-Reply-To: References: Message-ID: Hi there, You can use sendmail options when using the mail command by adding a '--' after the normal mail command options and then adding the sendmail options you need, as follows: echo "body of the mail" | mail -s "subject" destination at address.com -- -f source at address.com -F "Sender's Full Name" Cheers Colin From: redhat-sysadmin-list-bounces at redhat.com [mailto:redhat-sysadmin-list-bounces at redhat.com] On Behalf Of nitin.gizare at wipro.com Sent: 07 May 2009 02:42 PM To: redhat-sysadmin-list at redhat.com Subject: from address using maill command HI We have requirement of sending automated warning mail with from address option using "mail " command By default it comes with user at hostname. Can some body help? . Rgds Nitin -------------- next part -------------- An HTML attachment was scrubbed... URL: From jbourne at hardrock.org Thu May 7 14:29:28 2009 From: jbourne at hardrock.org (James Bourne) Date: Thu, 7 May 2009 08:29:28 -0600 (MDT) Subject: from address using maill command In-Reply-To: References: Message-ID: On Thu, 7 May 2009, nitin.gizare at wipro.com wrote: > HI > > We have requirement of sending automated warning mail with from address > option using "mail " command > > By default it comes with user at hostname. > > Can some body help? . If it's from a script you could also use: /usr/sbin/sendmail -t -f user at hostname << EOF To: recipients at hostname CC: others at hostname From: user at hostname Subject: Your Subject This is the body EOF I find with this way, you have complete control over other parts of the message like adding an X-Script: line to show which script or cronjob has sent the message. Regards James > > > > Rgds > > Nitin > > > > -- James Bourne | Email: jbourne at hardrock.org UNIX Systems Administration | WWW: http://www.hardrock.org Custom UNIX Programming | Linux: The choice of a GNU generation ---------------------------------------------------------------------- "All you need's an occasional kick in the philosophy." Frank Herbert Need an inexpensive domain alternative? http://fastforwarddomains.com From nitin.gizare at wipro.com Thu May 7 17:00:06 2009 From: nitin.gizare at wipro.com (nitin.gizare at wipro.com) Date: Thu, 7 May 2009 22:30:06 +0530 Subject: from address using maill command References: Message-ID: HI Thanks allot I will try options. Rgds nitin ________________________________ From: redhat-sysadmin-list-bounces at redhat.com on behalf of Colin van Niekerk Sent: Thu 5/7/2009 6:43 PM To: redhat-sysadmin-list at redhat.com Subject: RE: from address using maill command Hi there, You can use sendmail options when using the mail command by adding a '--' after the normal mail command options and then adding the sendmail options you need, as follows: echo "body of the mail" | mail -s "subject" destination at address.com -- -f source at address.com -F "Sender's Full Name" Cheers Colin From: redhat-sysadmin-list-bounces at redhat.com [mailto:redhat-sysadmin-list-bounces at redhat.com] On Behalf Of nitin.gizare at wipro.com Sent: 07 May 2009 02:42 PM To: redhat-sysadmin-list at redhat.com Subject: from address using maill command HI We have requirement of sending automated warning mail with from address option using "mail " command By default it comes with user at hostname. Can some body help? . Rgds Nitin -------------- next part -------------- An HTML attachment was scrubbed... URL: From CHort at caed.uscourts.gov Thu May 7 22:12:48 2009 From: CHort at caed.uscourts.gov (CHort at caed.uscourts.gov) Date: Thu, 7 May 2009 15:12:48 -0700 Subject: AUTO: Cheree Hort/CAED/09/USCOURTS is out of the office. (returning Tue 05/12/2009) Message-ID: I am out of the office from Thu 05/07/2009 until Tue 05/12/2009. I am out of the office today. If you require immediate assistance, please contact Technical Support at 916-930-4335. Thank you, Cheree Note: This is an automated response to your message "from address using maill command" sent on 5/7/2009 5:42:20 AM. This is the only notification you will receive while this person is away. From Kenyetta.Johnson at us.army.mil Fri May 8 20:53:23 2009 From: Kenyetta.Johnson at us.army.mil (Johnson, Kenyetta A Mrs CIV USA NETCOM/9TH SC A) Date: Fri, 8 May 2009 13:53:23 -0700 Subject: RHEL Partitioining Scheme (UNCLASSIFIED) Message-ID: Classification: UNCLASSIFIED Caveats: NONE Hi Linux Gurus, I'm installing RHEL v5.2 on a virtual machine with 1GB RAM and 50GB storage. The image will be used to install a kickstart server to be used for building systems to support network operation COTS applications. I would like some feedback regarding designing a RHEL partitioning scheme. I've identified the following partitions: /, /boot /home, /opt (netops apps), /usr /usr/local, /var, and /tmp. I receive the following message: "Your selected packages require 1411 MB of free space for installation, but you do not have enough available. You can change your selections or reboot." The attempted filesystem layout is as follows: LVM Volume Groups VolGroup00 LogVol02 /tmp ext3 320 LogVol00 / ext3 1472 LogVol01 /home ext3 512 Hard Drives /dev/sda /dev/sda1 /boot ext3 101 1 13 /dev/sda2 swap 1027 14 144 /dev/sda3 /var ext3 384 145 193 /dev/sda4 Extended 2580 194 522 /dev/sda5 /usr ext3 250 194 225 /dev/sda6 VolGroup00 LVM PV 2329 226 522 Thank you, KJ Department of the Army US Army NETCOM/9TH SC(A) Fort Huachuca, AZ 85613-7070 Classification: UNCLASSIFIED Caveats: NONE From lists at brimer.org Fri May 8 21:33:15 2009 From: lists at brimer.org (Barry Brimer) Date: Fri, 8 May 2009 16:33:15 -0500 (CDT) Subject: RHEL Partitioining Scheme (UNCLASSIFIED) In-Reply-To: References: Message-ID: > I receive the following message: > > "Your selected packages require 1411 MB of free space for installation, > but you do not have enough available. You can change your selections or > reboot." > /dev/sda5 /usr ext3 > 250 194 225 The bulk of a RHEL installation goes in /usr, and you appear to have a very small /usr filesystem. I would recommend a minimum of 3GB for your /usr filesystem. Barry From smooge at gmail.com Fri May 8 23:17:40 2009 From: smooge at gmail.com (Stephen John Smoogen) Date: Fri, 8 May 2009 17:17:40 -0600 Subject: RHEL Partitioining Scheme (UNCLASSIFIED) In-Reply-To: References: Message-ID: <80d7e4090905081617q24f9cbe5k51c0bf05ae8e85ed@mail.gmail.com> On Fri, May 8, 2009 at 2:53 PM, Johnson, Kenyetta A Mrs CIV USA NETCOM/9TH SC A wrote: > Classification: ?UNCLASSIFIED > Caveats: NONE > > Hi Linux Gurus, > > I'm installing RHEL v5.2 on a virtual machine with 1GB RAM and 50GB > storage. > The image will be used to install a kickstart server to be used for > building systems to support network operation COTS applications. ?I > would like some feedback regarding designing a RHEL partitioning scheme. > I've identified the following partitions: /, /boot /home, /opt (netops > apps), /usr /usr/local, /var, and /tmp. > I receive the following message: > > "Your selected packages require 1411 MB of free space for installation, > but you do not have enough available. ?You can change your selections or > reboot." > As Mr Brimer pointed out you need a larger /usr partition. You may also need a /var/tmp partition to meet STIG compliance (I think that is a recommendation but could be confusing standards.) Depending on the COTS you would then set /var/tmp and /tmp to be mounted with the nodev,nosuid,noexe options so that they are just write space. -- Stephen J Smoogen. -- BSD/GNU/Linux How far that little candle throws his beams! So shines a good deed in a naughty world. = Shakespeare. "The Merchant of Venice" From Kenyetta.Johnson at us.army.mil Fri May 8 23:21:33 2009 From: Kenyetta.Johnson at us.army.mil (Johnson, Kenyetta A Mrs CIV USA NETCOM/9TH SC A) Date: Fri, 8 May 2009 16:21:33 -0700 Subject: RHEL Partitioining Scheme (UNCLASSIFIED) In-Reply-To: References: Message-ID: Classification: UNCLASSIFIED Caveats: NONE Barry, Thank you for the recommendation. I only have 4GB of hard drive space, therefore I allocated 2G to /usr. The installation completed. Thank you, KJ -----Original Message----- From: redhat-sysadmin-list-bounces at redhat.com [mailto:redhat-sysadmin-list-bounces at redhat.com] On Behalf Of Barry Brimer Sent: Friday, May 08, 2009 2:33 PM To: redhat-sysadmin-list at redhat.com Subject: Re: RHEL Partitioining Scheme (UNCLASSIFIED) > I receive the following message: > > "Your selected packages require 1411 MB of free space for > installation, but you do not have enough available. You can change > your selections or reboot." > /dev/sda5 /usr ext3 > 250 194 225 The bulk of a RHEL installation goes in /usr, and you appear to have a very small /usr filesystem. I would recommend a minimum of 3GB for your /usr filesystem. Barry -- redhat-sysadmin-list mailing list redhat-sysadmin-list at redhat.com https://www.redhat.com/mailman/listinfo/redhat-sysadmin-list Classification: UNCLASSIFIED Caveats: NONE From smooge at gmail.com Fri May 8 23:29:35 2009 From: smooge at gmail.com (Stephen John Smoogen) Date: Fri, 8 May 2009 17:29:35 -0600 Subject: RHEL Partitioining Scheme (UNCLASSIFIED) In-Reply-To: References: Message-ID: <80d7e4090905081629n595ca51bn67221565811419d5@mail.gmail.com> On Fri, May 8, 2009 at 5:21 PM, Johnson, Kenyetta A Mrs CIV USA NETCOM/9TH SC A wrote: > Classification: ?UNCLASSIFIED > Caveats: NONE > > Barry, > > Thank you for the recommendation. ?I only have 4GB of hard drive space, > therefore I allocated 2G to /usr. > The installation completed. > If you have more problems you may just want to skip the /usr partition if you have /tmp and /var as seperate partitions. The / and /usr need the same mount point partitions -- Stephen J Smoogen. -- BSD/GNU/Linux How far that little candle throws his beams! So shines a good deed in a naughty world. = Shakespeare. "The Merchant of Venice" From nitin.gizare at wipro.com Thu May 14 02:39:17 2009 From: nitin.gizare at wipro.com (nitin.gizare at wipro.com) Date: Thu, 14 May 2009 08:09:17 +0530 Subject: sending attachment with mail command Message-ID: HI I have requirement of sending server logs are attachment using mail command. Is this possible? if not can some body suggest any other method. Rgds Nitin -------------- next part -------------- An HTML attachment was scrubbed... URL: From jbourne at hardrock.org Thu May 14 04:07:15 2009 From: jbourne at hardrock.org (James Bourne) Date: Wed, 13 May 2009 22:07:15 -0600 (MDT) Subject: sending attachment with mail command In-Reply-To: References: Message-ID: On Thu, 14 May 2009, nitin.gizare at wipro.com wrote: > HI > > I have requirement of sending server logs are attachment using mail > command. > > Is this possible? if not can some body suggest any other method. ftp://ftp.andrew.cmu.edu/pub/mpack/ I might have an RPM lying about if you need one. Regards James > > > > > > Rgds > > Nitin > > > > -- James Bourne | Email: jbourne at hardrock.org UNIX Systems Administration | WWW: http://www.hardrock.org Custom UNIX Programming | Linux: The choice of a GNU generation ---------------------------------------------------------------------- "All you need's an occasional kick in the philosophy." Frank Herbert Need an inexpensive domain alternative? http://fastforwarddomains.com From Colin.vanNiekerk at mimecast.co.za Thu May 14 06:15:28 2009 From: Colin.vanNiekerk at mimecast.co.za (Colin van Niekerk) Date: Thu, 14 May 2009 08:15:28 +0200 Subject: sending attachment with mail command In-Reply-To: References: Message-ID: Hi Nitin, Must you use the mail command or can you just any command, mutt may be a better option when dealing with attachments (its sorts out the MIME types for you so you don't need to add extra stuff to your script in order to ensure that the attachment is going to be readable on the other side - more applicable when sending binary attachments through older systems) Unless it is not installed, you can use mutt as follows in scripts to send a mail with an attachment: echo "message body goes here" |mutt -s "subject goes here" -a filename_with_full_path_goes_here email at address.goes.here if you need it to go to many addresses (not limited to 3, this is an example only), use: echo "message body goes here" |mutt -s "subject goes here" -a filename_with_full_path_goes_here email1 at address.goes.here,email2 at address.goes.here,email3 at address.goes.here if you need to attach multiple files, just add another -a argument: echo "message body goes here" |mutt -s "subject goes here" -a filename1_with_full_path_goes_here -a filename2_with_full_path_goes_here -a filename3_with_full_path_goes_here email at address.goes.here Cheers, Colin From: redhat-sysadmin-list-bounces at redhat.com [mailto:redhat-sysadmin-list-bounces at redhat.com] On Behalf Of nitin.gizare at wipro.com Sent: 14 May 2009 04:39 AM To: redhat-sysadmin-list at redhat.com Subject: sending attachment with mail command HI I have requirement of sending server logs are attachment using mail command. Is this possible? if not can some body suggest any other method. Rgds Nitin -------------- next part -------------- An HTML attachment was scrubbed... URL: From nitin.gizare at wipro.com Thu May 14 06:19:20 2009 From: nitin.gizare at wipro.com (nitin.gizare at wipro.com) Date: Thu, 14 May 2009 11:49:20 +0530 Subject: sending attachment with mail command In-Reply-To: References: Message-ID: Thanks million. Please log your queries/concerns/requests through http://edasupport.wipro.com or send mail to eda.support at wipro.com for quicker resolutions. Rgds Nitin ________________________________ From: redhat-sysadmin-list-bounces at redhat.com [mailto:redhat-sysadmin-list-bounces at redhat.com] On Behalf Of Colin van Niekerk Sent: Thursday, May 14, 2009 11:45 AM To: redhat-sysadmin-list at redhat.com Subject: RE: sending attachment with mail command Hi Nitin, Must you use the mail command or can you just any command, mutt may be a better option when dealing with attachments (its sorts out the MIME types for you so you don't need to add extra stuff to your script in order to ensure that the attachment is going to be readable on the other side - more applicable when sending binary attachments through older systems) Unless it is not installed, you can use mutt as follows in scripts to send a mail with an attachment: echo "message body goes here" |mutt -s "subject goes here" -a filename_with_full_path_goes_here email at address.goes.here if you need it to go to many addresses (not limited to 3, this is an example only), use: echo "message body goes here" |mutt -s "subject goes here" -a filename_with_full_path_goes_here email1 at address.goes.here,email2 at address.goes.here,email3 at address.goes.he re if you need to attach multiple files, just add another -a argument: echo "message body goes here" |mutt -s "subject goes here" -a filename1_with_full_path_goes_here -a filename2_with_full_path_goes_here -a filename3_with_full_path_goes_here email at address.goes.here Cheers, Colin From: redhat-sysadmin-list-bounces at redhat.com [mailto:redhat-sysadmin-list-bounces at redhat.com] On Behalf Of nitin.gizare at wipro.com Sent: 14 May 2009 04:39 AM To: redhat-sysadmin-list at redhat.com Subject: sending attachment with mail command HI I have requirement of sending server logs are attachment using mail command. Is this possible? if not can some body suggest any other method. Rgds Nitin -------------- next part -------------- An HTML attachment was scrubbed... URL: From nitin.gizare at wipro.com Thu May 14 06:26:02 2009 From: nitin.gizare at wipro.com (nitin.gizare at wipro.com) Date: Thu, 14 May 2009 11:56:02 +0530 Subject: sending attachment with mail command References: Message-ID: HI Just tried using but I not getting mails. Does this have any configuration file in which we need to add mail relay server entry.? . Rgds Nitin ________________________________ From: Nitin Gizare (WT01 - Product Engineering Services) Sent: Thursday, May 14, 2009 11:49 AM To: 'redhat-sysadmin-list at redhat.com' Subject: RE: sending attachment with mail command Thanks million. Please log your queries/concerns/requests through http://edasupport.wipro.com or send mail to eda.support at wipro.com for quicker resolutions. Rgds Nitin ________________________________ From: redhat-sysadmin-list-bounces at redhat.com [mailto:redhat-sysadmin-list-bounces at redhat.com] On Behalf Of Colin van Niekerk Sent: Thursday, May 14, 2009 11:45 AM To: redhat-sysadmin-list at redhat.com Subject: RE: sending attachment with mail command Hi Nitin, Must you use the mail command or can you just any command, mutt may be a better option when dealing with attachments (its sorts out the MIME types for you so you don't need to add extra stuff to your script in order to ensure that the attachment is going to be readable on the other side - more applicable when sending binary attachments through older systems) Unless it is not installed, you can use mutt as follows in scripts to send a mail with an attachment: echo "message body goes here" |mutt -s "subject goes here" -a filename_with_full_path_goes_here email at address.goes.here if you need it to go to many addresses (not limited to 3, this is an example only), use: echo "message body goes here" |mutt -s "subject goes here" -a filename_with_full_path_goes_here email1 at address.goes.here,email2 at address.goes.here,email3 at address.goes.he re if you need to attach multiple files, just add another -a argument: echo "message body goes here" |mutt -s "subject goes here" -a filename1_with_full_path_goes_here -a filename2_with_full_path_goes_here -a filename3_with_full_path_goes_here email at address.goes.here Cheers, Colin From: redhat-sysadmin-list-bounces at redhat.com [mailto:redhat-sysadmin-list-bounces at redhat.com] On Behalf Of nitin.gizare at wipro.com Sent: 14 May 2009 04:39 AM To: redhat-sysadmin-list at redhat.com Subject: sending attachment with mail command HI I have requirement of sending server logs are attachment using mail command. Is this possible? if not can some body suggest any other method. Rgds Nitin -------------- next part -------------- An HTML attachment was scrubbed... URL: From Colin.vanNiekerk at mimecast.co.za Thu May 14 07:10:54 2009 From: Colin.vanNiekerk at mimecast.co.za (Colin van Niekerk) Date: Thu, 14 May 2009 09:10:54 +0200 Subject: sending attachment with mail command In-Reply-To: References: Message-ID: Mutt will pass the mail to the local MTA for delivery, that has configs in it but generally the defaults are about to relay mail from localhost via MX resolution. Can you send mail from this box using any other app (maybe mail? without attachments.) What linux flavour are you running? Is your DNS working? Maybe the MTA is not running? Please execute the following command and send us the output: uname -a host www.mimecast.com netstat -nltp tail -50 /var/log/messages tail -50 /var/log/maillog Please also send us the command you ran when you tested mutt cheers Colin From: redhat-sysadmin-list-bounces at redhat.com [mailto:redhat-sysadmin-list-bounces at redhat.com] On Behalf Of nitin.gizare at wipro.com Sent: 14 May 2009 08:26 AM To: nitin.gizare at wipro.com; redhat-sysadmin-list at redhat.com Subject: RE: sending attachment with mail command HI Just tried using but I not getting mails. Does this have any configuration file in which we need to add mail relay server entry.? . Rgds Nitin ________________________________ From: Nitin Gizare (WT01 - Product Engineering Services) Sent: Thursday, May 14, 2009 11:49 AM To: 'redhat-sysadmin-list at redhat.com' Subject: RE: sending attachment with mail command Thanks million. Please log your queries/concerns/requests through http://edasupport.wipro.com or send mail to eda.support at wipro.com for quicker resolutions. Rgds Nitin ________________________________ From: redhat-sysadmin-list-bounces at redhat.com [mailto:redhat-sysadmin-list-bounces at redhat.com] On Behalf Of Colin van Niekerk Sent: Thursday, May 14, 2009 11:45 AM To: redhat-sysadmin-list at redhat.com Subject: RE: sending attachment with mail command Hi Nitin, Must you use the mail command or can you just any command, mutt may be a better option when dealing with attachments (its sorts out the MIME types for you so you don't need to add extra stuff to your script in order to ensure that the attachment is going to be readable on the other side - more applicable when sending binary attachments through older systems) Unless it is not installed, you can use mutt as follows in scripts to send a mail with an attachment: echo "message body goes here" |mutt -s "subject goes here" -a filename_with_full_path_goes_here email at address.goes.here if you need it to go to many addresses (not limited to 3, this is an example only), use: echo "message body goes here" |mutt -s "subject goes here" -a filename_with_full_path_goes_here email1 at address.goes.here,email2 at address.goes.here,email3 at address.goes.here if you need to attach multiple files, just add another -a argument: echo "message body goes here" |mutt -s "subject goes here" -a filename1_with_full_path_goes_here -a filename2_with_full_path_goes_here -a filename3_with_full_path_goes_here email at address.goes.here Cheers, Colin From: redhat-sysadmin-list-bounces at redhat.com [mailto:redhat-sysadmin-list-bounces at redhat.com] On Behalf Of nitin.gizare at wipro.com Sent: 14 May 2009 04:39 AM To: redhat-sysadmin-list at redhat.com Subject: sending attachment with mail command HI I have requirement of sending server logs are attachment using mail command. Is this possible? if not can some body suggest any other method. Rgds Nitin -------------- next part -------------- An HTML attachment was scrubbed... URL: From nitin.gizare at wipro.com Thu May 14 07:22:12 2009 From: nitin.gizare at wipro.com (nitin.gizare at wipro.com) Date: Thu, 14 May 2009 12:52:12 +0530 Subject: sending attachment with mail command In-Reply-To: References: Message-ID: Hello Looks fine now. Thanks allot information, Rgds Nitin ________________________________ From: redhat-sysadmin-list-bounces at redhat.com [mailto:redhat-sysadmin-list-bounces at redhat.com] On Behalf Of Colin van Niekerk Sent: Thursday, May 14, 2009 12:41 PM To: redhat-sysadmin-list at redhat.com Subject: RE: sending attachment with mail command Mutt will pass the mail to the local MTA for delivery, that has configs in it but generally the defaults are about to relay mail from localhost via MX resolution. Can you send mail from this box using any other app (maybe mail? without attachments.) What linux flavour are you running? Is your DNS working? Maybe the MTA is not running? Please execute the following command and send us the output: uname -a host www.mimecast.com netstat -nltp tail -50 /var/log/messages tail -50 /var/log/maillog Please also send us the command you ran when you tested mutt cheers Colin From: redhat-sysadmin-list-bounces at redhat.com [mailto:redhat-sysadmin-list-bounces at redhat.com] On Behalf Of nitin.gizare at wipro.com Sent: 14 May 2009 08:26 AM To: nitin.gizare at wipro.com; redhat-sysadmin-list at redhat.com Subject: RE: sending attachment with mail command HI Just tried using but I not getting mails. Does this have any configuration file in which we need to add mail relay server entry.? . Rgds Nitin ________________________________ From: Nitin Gizare (WT01 - Product Engineering Services) Sent: Thursday, May 14, 2009 11:49 AM To: 'redhat-sysadmin-list at redhat.com' Subject: RE: sending attachment with mail command Thanks million. Please log your queries/concerns/requests through http://edasupport.wipro.com or send mail to eda.support at wipro.com for quicker resolutions. Rgds Nitin ________________________________ From: redhat-sysadmin-list-bounces at redhat.com [mailto:redhat-sysadmin-list-bounces at redhat.com] On Behalf Of Colin van Niekerk Sent: Thursday, May 14, 2009 11:45 AM To: redhat-sysadmin-list at redhat.com Subject: RE: sending attachment with mail command Hi Nitin, Must you use the mail command or can you just any command, mutt may be a better option when dealing with attachments (its sorts out the MIME types for you so you don't need to add extra stuff to your script in order to ensure that the attachment is going to be readable on the other side - more applicable when sending binary attachments through older systems) Unless it is not installed, you can use mutt as follows in scripts to send a mail with an attachment: echo "message body goes here" |mutt -s "subject goes here" -a filename_with_full_path_goes_here email at address.goes.here if you need it to go to many addresses (not limited to 3, this is an example only), use: echo "message body goes here" |mutt -s "subject goes here" -a filename_with_full_path_goes_here email1 at address.goes.here,email2 at address.goes.here,email3 at address.goes.he re if you need to attach multiple files, just add another -a argument: echo "message body goes here" |mutt -s "subject goes here" -a filename1_with_full_path_goes_here -a filename2_with_full_path_goes_here -a filename3_with_full_path_goes_here email at address.goes.here Cheers, Colin From: redhat-sysadmin-list-bounces at redhat.com [mailto:redhat-sysadmin-list-bounces at redhat.com] On Behalf Of nitin.gizare at wipro.com Sent: 14 May 2009 04:39 AM To: redhat-sysadmin-list at redhat.com Subject: sending attachment with mail command HI I have requirement of sending server logs are attachment using mail command. Is this possible? if not can some body suggest any other method. Rgds Nitin -------------- next part -------------- An HTML attachment was scrubbed... URL: From henders254 at gmail.com Fri May 15 03:17:48 2009 From: henders254 at gmail.com (Chris Henderson) Date: Fri, 15 May 2009 13:17:48 +1000 Subject: Upgrade from RHEL 4.6 to 5.1 errors Message-ID: I have upgraded Red Hat Enterprise Linux AS release 4 (Nahant Update 6) to Red Hat Enterprise Linux Server release 5.1 (Tikanga) - the system starts without any problem but while booting up I get "errors": "momery for crash kernel (0x0 to 0x0) notwithin permissible range." I also get lots of error from udevd (I couldn't capture all the errors & they don't seem to be in any log file): "udevd: add_to_rules: invalid kernel operations" udevd seems to be running (/sbin/udevd -d). Why these errors are happening and how can I get rid of them? Thanks. From jbourne at hardrock.org Fri May 15 03:21:22 2009 From: jbourne at hardrock.org (James Bourne) Date: Thu, 14 May 2009 21:21:22 -0600 (MDT) Subject: Upgrade from RHEL 4.6 to 5.1 errors In-Reply-To: References: Message-ID: On Fri, 15 May 2009, Chris Henderson wrote: > I have upgraded Red Hat Enterprise Linux AS release 4 (Nahant Update > 6) to Red Hat Enterprise Linux Server release 5.1 (Tikanga) - the > system starts without any problem but while booting up I get "errors": > "momery for crash kernel (0x0 to 0x0) notwithin permissible range." > > I also get lots of error from udevd (I couldn't capture all the errors > & they don't seem to be in any log file): "udevd: add_to_rules: > invalid kernel operations" > > udevd seems to be running (/sbin/udevd -d). > > Why these errors are happening and how can I get rid of them? Try setting SELINUX=disabled in /etc/sysconfig/selinux and reboot. See if that helps. It sounds like an selinux problem. Jim > > Thanks. > > -- > redhat-sysadmin-list mailing list > redhat-sysadmin-list at redhat.com > https://www.redhat.com/mailman/listinfo/redhat-sysadmin-list > > -- James Bourne | Email: jbourne at hardrock.org UNIX Systems Administration | WWW: http://www.hardrock.org Custom UNIX Programming | Linux: The choice of a GNU generation ---------------------------------------------------------------------- "All you need's an occasional kick in the philosophy." Frank Herbert Need an inexpensive domain alternative? http://fastforwarddomains.com From smooge at gmail.com Fri May 15 03:23:29 2009 From: smooge at gmail.com (Stephen John Smoogen) Date: Thu, 14 May 2009 21:23:29 -0600 Subject: Upgrade from RHEL 4.6 to 5.1 errors In-Reply-To: References: Message-ID: <80d7e4090905142023g513943c7w152fb4a1c4746b62@mail.gmail.com> On Thu, May 14, 2009 at 9:17 PM, Chris Henderson wrote: > I have upgraded Red Hat Enterprise Linux AS release 4 (Nahant Update > 6) to Red Hat Enterprise Linux Server release 5.1 (Tikanga) - the > system starts without any problem but while booting up I get "errors": > "momery for crash kernel (0x0 to 0x0) notwithin permissible range." That is a pretty standard one.. its just telling you that you can't get a crash dump if you wanted one. > I also get lots of error from udevd (I couldn't capture all the errors > & they don't seem to be in any log file): "udevd: add_to_rules: > invalid kernel operations" That one I saw with 5.1 but it went away with an update I think. > udevd seems to be running (/sbin/udevd -d). > > Why these errors are happening and how can I get rid of them? > > Thanks. > > -- > redhat-sysadmin-list mailing list > redhat-sysadmin-list at redhat.com > https://www.redhat.com/mailman/listinfo/redhat-sysadmin-list > -- Stephen J Smoogen. -- BSD/GNU/Linux How far that little candle throws his beams! So shines a good deed in a naughty world. = Shakespeare. "The Merchant of Venice" From cmadams at hiwaay.net Fri May 15 03:44:21 2009 From: cmadams at hiwaay.net (Chris Adams) Date: Thu, 14 May 2009 22:44:21 -0500 Subject: Upgrade from RHEL 4.6 to 5.1 errors In-Reply-To: References: Message-ID: <20090515034420.GF1148000@hiwaay.net> Once upon a time, Chris Henderson said: > system starts without any problem but while booting up I get "errors": > "momery for crash kernel (0x0 to 0x0) notwithin permissible range." That's not an error. To use the crash dump functionality, you have to add an option to the kernel boot command line that reserves some RAM for the crash kernel. That message is just telling you that you didn't do that so there can be no crash kernel loaded. -- Chris Adams Systems and Network Administrator - HiWAAY Internet Services I don't speak for anybody but myself - that's enough trouble. From henders254 at gmail.com Fri May 15 04:50:02 2009 From: henders254 at gmail.com (Chris Henderson) Date: Fri, 15 May 2009 14:50:02 +1000 Subject: Upgrade from RHEL 4.6 to 5.1 errors In-Reply-To: References: Message-ID: On Fri, May 15, 2009 at 1:21 PM, James Bourne wrote: > On Fri, 15 May 2009, Chris Henderson wrote: > >> I have upgraded Red Hat Enterprise Linux AS release 4 (Nahant Update >> 6) to Red Hat Enterprise Linux Server release 5.1 (Tikanga) - the >> system starts without any problem but while booting up I get "errors": >> "momery for crash kernel (0x0 to 0x0) notwithin permissible range." >> >> I also get lots of error from udevd (I couldn't capture all the errors >> & they don't seem to be in any log file): "udevd: add_to_rules: >> invalid kernel operations" >> >> udevd seems to be running (/sbin/udevd -d). >> >> Why these errors are happening and how can I get rid of them? > > Try setting SELINUX=disabled in /etc/sysconfig/selinux and reboot. ?See if > that helps. > > It sounds like an selinux problem. SELINUX is already disabled. Here's the output from the /etc/sysconfig/selinux file SELINUX=disabled SELINUXTYPE=targeted SETLOCALDEFS=0 From henders254 at gmail.com Fri May 15 04:52:25 2009 From: henders254 at gmail.com (Chris Henderson) Date: Fri, 15 May 2009 14:52:25 +1000 Subject: Upgrade from RHEL 4.6 to 5.1 errors In-Reply-To: <20090515034420.GF1148000@hiwaay.net> References: <20090515034420.GF1148000@hiwaay.net> Message-ID: On Fri, May 15, 2009 at 1:44 PM, Chris Adams wrote: > Once upon a time, Chris Henderson said: >> system starts without any problem but while booting up I get "errors": >> "momery for crash kernel (0x0 to 0x0) notwithin permissible range." > > That's not an error. ?To use the crash dump functionality, you have to > add an option to the kernel boot command line that reserves some RAM for > the crash kernel. ?That message is just telling you that you didn't do > that so there can be no crash kernel loaded. Ah, but I didn't have this message before the upgrade. Do you know what do I need to do to make this message disappear? Thanks. From cmadams at hiwaay.net Fri May 15 13:22:29 2009 From: cmadams at hiwaay.net (Chris Adams) Date: Fri, 15 May 2009 08:22:29 -0500 Subject: Upgrade from RHEL 4.6 to 5.1 errors In-Reply-To: References: <20090515034420.GF1148000@hiwaay.net> Message-ID: <20090515132229.GA1402714@hiwaay.net> Once upon a time, Chris Henderson said: > On Fri, May 15, 2009 at 1:44 PM, Chris Adams wrote: > > That's not an error. ?To use the crash dump functionality, you have to > > add an option to the kernel boot command line that reserves some RAM for > > the crash kernel. ?That message is just telling you that you didn't do > > that so there can be no crash kernel loaded. > > Ah, but I didn't have this message before the upgrade. Do you know > what do I need to do to make this message disappear? You didn't have it before because RHEL 4 didn't support a separate crash kernel at all. It is not an error; you cannot make it disappear. The only thing you can do to change it is to configure a crash dump kernel (which reserves a chunk of RAM just in case the system crashes). -- Chris Adams Systems and Network Administrator - HiWAAY Internet Services I don't speak for anybody but myself - that's enough trouble. From henders254 at gmail.com Wed May 27 00:05:08 2009 From: henders254 at gmail.com (Chris Henderson) Date: Wed, 27 May 2009 10:05:08 +1000 Subject: iptables module not loading. RHEL 4. Message-ID: Red Hat Enterprise Linux AS release 4 (Nahant Update 6) 2.6.9-67.ELsmp #1 SMP I don't know what the trigger was, but I lost both NICs when I restarted a server (there was no patching or anything!). The fix was to put the following in /etc/rc.local file: insmod /lib/modules/2.6.9-67.ELsmp/kernel/drivers/net/bnx2.ko insmod /lib/modules/2.6.9-67.ELsmp/kernel/drivers/net/e1000/e1000.ko but now I get error in /var/log/messages... modprobe: FATAL: Module ip_tables not found. Which module do I need to load in order to fix this? Thanks. From hjnmolly at hetnet.nl Wed May 27 07:28:19 2009 From: hjnmolly at hetnet.nl (harold j.n molly) Date: Wed, 27 May 2009 09:28:19 +0200 Subject: iptables module not loading. RHEL 4. In-Reply-To: References: Message-ID: <4A1CEB93.70101@hetnet.nl> Kernel modules as well, to be loaded if needed. Of course you may check the firewall configuration and/or the modules dependency files. Chris Henderson wrote: > Red Hat Enterprise Linux AS release 4 (Nahant Update 6) 2.6.9-67.ELsmp #1 SMP > > I don't know what the trigger was, but I lost both NICs when I > restarted a server (there was no patching or anything!). The fix was > to put the following in /etc/rc.local file: > > insmod /lib/modules/2.6.9-67.ELsmp/kernel/drivers/net/bnx2.ko > insmod /lib/modules/2.6.9-67.ELsmp/kernel/drivers/net/e1000/e1000.ko > > but now I get error in /var/log/messages... > > modprobe: FATAL: Module ip_tables not found. > > Which module do I need to load in order to fix this? > > Thanks. > > -- > redhat-sysadmin-list mailing list > redhat-sysadmin-list at redhat.com > https://www.redhat.com/mailman/listinfo/redhat-sysadmin-list > >