[qmailtoaster] Failed build on RedHat Enterprise
Hi there, i am trying to build the qmailtoaster packages on RedHat Enterprise Linux Server release 5.2 on a x86_64 server, i am getting this error on the building process: + chmod u+x /var/tmp/daemontools-0.76-show_flags + /var/tmp/daemontools-0.76-show_flags /var/tmp/rpm-tmp.28671: /var/tmp/daemontools-0.76-show_flags: /bin/sh: bad interpreter: Permission denied error: Bad exit status from /var/tmp/rpm-tmp.28671 (%prep) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.28671 (%prep) I am logged as root and i run /var/tmp/daemontools-0.76-show_flags and it fails: -bash: /var/tmp/daemontools-0.76-show_flags: /bin/sh: bad interpreter: Permission denied What's wrong ? Thanks for your help
Re: [qmailtoaster] Failed build on RedHat Enterprise
Have you disabled selinux? German Molano Asociados wrote: Hi there, i am trying to build the qmailtoaster packages on RedHat Enterprise Linux Server release 5.2 on a x86_64 server, i am getting this error on the building process: + chmod u+x /var/tmp/daemontools-0.76-show_flags + /var/tmp/daemontools-0.76-show_flags /var/tmp/rpm-tmp.28671: /var/tmp/daemontools-0.76-show_flags: /bin/sh: bad interpreter: Permission denied error: Bad exit status from /var/tmp/rpm-tmp.28671 (%prep) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.28671 (%prep) I am logged as root and i run /var/tmp/daemontools-0.76-show_flags and it fails: -bash: /var/tmp/daemontools-0.76-show_flags: /bin/sh: bad interpreter: Permission denied What's wrong ? Thanks for your help - QmailToaster hosted by: VR Hosted http://www.vr.org - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [qmailtoaster] Failed build on RedHat Enterprise
Yes Selinux is disabled ... #cat /etc/selinux/config # This file controls the state of SELinux on the system. # SELINUX= can take one of these three values: # enforcing - SELinux security policy is enforced. # permissive - SELinux prints warnings instead of enforcing. # disabled - No SELinux policy is loaded. SELINUX=disabled # SELINUXTYPE= can take one of these two values: # targeted - Only targeted network daemons are protected. # strict - Full SELinux protection. SELINUXTYPE=targeted # SETLOCALDEFS= Check local definition changes SETLOCALDEFS=0 I am doing the building with CenOS 50 x64 scripts ... - Original Message - From: Eric Shubert [EMAIL PROTECTED] To: qmailtoaster-list@qmailtoaster.com Sent: Monday, October 27, 2008 11:48 AM Subject: Re: [qmailtoaster] Failed build on RedHat Enterprise Have you disabled selinux? German Molano Asociados wrote: Hi there, i am trying to build the qmailtoaster packages on RedHat Enterprise Linux Server release 5.2 on a x86_64 server, i am getting this error on the building process: + chmod u+x /var/tmp/daemontools-0.76-show_flags + /var/tmp/daemontools-0.76-show_flags /var/tmp/rpm-tmp.28671: /var/tmp/daemontools-0.76-show_flags: /bin/sh: bad interpreter: Permission denied error: Bad exit status from /var/tmp/rpm-tmp.28671 (%prep) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.28671 (%prep) I am logged as root and i run /var/tmp/daemontools-0.76-show_flags and it fails: -bash: /var/tmp/daemontools-0.76-show_flags: /bin/sh: bad interpreter: Permission denied What's wrong ? Thanks for your help - QmailToaster hosted by: VR Hosted http://www.vr.org - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - QmailToaster hosted by: VR Hosted http://www.vr.org - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [qmailtoaster] Failed build on RedHat Enterprise
the only other time I've seen this type of error it was because the filesystem that contained /tmp was full. by default, RHEL puts /tmp on the / (root) filesystem. One of the many customizations I usually deploy is that I change /tmp to be a symbolic link to /var/tmp. I hope this helps Dan Daniel McAllister, President IT4SOHO, LLC PO BOX 507 St. Petersburg, FL 33731-0507 877-IT4SOHO: Toll Free 727-647-7646 In Pinellas 813-464-2093 In Hillsborough 727-507-9435 Fax Only When did you do your last backup? Ask me about unattended offsite backup solutions... to protect your business, not just your data! German Molano Asociados wrote: Yes Selinux is disabled ... #cat /etc/selinux/config # This file controls the state of SELinux on the system. # SELINUX= can take one of these three values: # enforcing - SELinux security policy is enforced. # permissive - SELinux prints warnings instead of enforcing. # disabled - No SELinux policy is loaded. SELINUX=disabled # SELINUXTYPE= can take one of these two values: # targeted - Only targeted network daemons are protected. # strict - Full SELinux protection. SELINUXTYPE=targeted # SETLOCALDEFS= Check local definition changes SETLOCALDEFS=0 I am doing the building with CenOS 50 x64 scripts ... - Original Message - From: Eric Shubert [EMAIL PROTECTED] To: qmailtoaster-list@qmailtoaster.com Sent: Monday, October 27, 2008 11:48 AM Subject: Re: [qmailtoaster] Failed build on RedHat Enterprise Have you disabled selinux? German Molano Asociados wrote: Hi there, i am trying to build the qmailtoaster packages on RedHat Enterprise Linux Server release 5.2 on a x86_64 server, i am getting this error on the building process: + chmod u+x /var/tmp/daemontools-0.76-show_flags + /var/tmp/daemontools-0.76-show_flags /var/tmp/rpm-tmp.28671: /var/tmp/daemontools-0.76-show_flags: /bin/sh: bad interpreter: Permission denied error: Bad exit status from /var/tmp/rpm-tmp.28671 (%prep) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.28671 (%prep) I am logged as root and i run /var/tmp/daemontools-0.76-show_flags and it fails: -bash: /var/tmp/daemontools-0.76-show_flags: /bin/sh: bad interpreter: Permission denied What's wrong ? Thanks for your help - QmailToaster hosted by: VR Hosted http://www.vr.org - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - QmailToaster hosted by: VR Hosted http://www.vr.org - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - QmailToaster hosted by: VR Hosted http://www.vr.org - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [qmailtoaster] Failed build on RedHat Enterprise
The problem seems to be inside the building process, when I start the script with #sh /var/tmp/daemontools-0.76-show_flags It goes flawlessly... RPM RELEASE: daemontools-toaster-0.76-1.3.3 OS TYPE IS : CentOS 5 Linux BUILD DATE : Sat Apr 14 2007 CCFLAGS: -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic LDFLAGS: -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic I install the rpm source package and then edit the line that runs this command: # Take care to execute and then to delete #-- chmod u+x %{_tmppath}/%{name}-%{pversion}-show_flags %{_tmppath}/%{name}-%{pversion}-show_flags [ -f %{_tmppath}/%{name}-%{pversion}-show_flags ] rm -f %{_tmppath}/%{name}-%{pversion}-show_flags #-- to # Take care to execute and then to delete #-- chmod u+x %{_tmppath}/%{name}-%{pversion}-show_flags sh %{_tmppath}/%{name}-%{pversion}-show_flags [ -f %{_tmppath}/%{name}-%{pversion}-show_flags ] rm -f %{_tmppath}/%{name}-%{pversion}-show_flags #-- then I start the building process ... #rpmbuild -ba --rebuild --with cnt5064 /usr/src/redhat/SPECS/daemontools-toaster.spec it builds the rpm without errors German - Original Message - From: Dan McAllister [EMAIL PROTECTED] To: qmailtoaster-list@qmailtoaster.com Sent: Monday, October 27, 2008 12:59 PM Subject: Re: [qmailtoaster] Failed build on RedHat Enterprise the only other time I've seen this type of error it was because the filesystem that contained /tmp was full. by default, RHEL puts /tmp on the / (root) filesystem. One of the many customizations I usually deploy is that I change /tmp to be a symbolic link to /var/tmp. I hope this helps Dan Daniel McAllister, President IT4SOHO, LLC PO BOX 507 St. Petersburg, FL 33731-0507 877-IT4SOHO: Toll Free 727-647-7646 In Pinellas 813-464-2093 In Hillsborough 727-507-9435 Fax Only When did you do your last backup? Ask me about unattended offsite backup solutions... to protect your business, not just your data! German Molano Asociados wrote: Yes Selinux is disabled ... #cat /etc/selinux/config # This file controls the state of SELinux on the system. # SELINUX= can take one of these three values: # enforcing - SELinux security policy is enforced. # permissive - SELinux prints warnings instead of enforcing. # disabled - No SELinux policy is loaded. SELINUX=disabled # SELINUXTYPE= can take one of these two values: # targeted - Only targeted network daemons are protected. # strict - Full SELinux protection. SELINUXTYPE=targeted # SETLOCALDEFS= Check local definition changes SETLOCALDEFS=0 I am doing the building with CenOS 50 x64 scripts ... - Original Message - From: Eric Shubert [EMAIL PROTECTED] To: qmailtoaster-list@qmailtoaster.com Sent: Monday, October 27, 2008 11:48 AM Subject: Re: [qmailtoaster] Failed build on RedHat Enterprise Have you disabled selinux? German Molano Asociados wrote: Hi there, i am trying to build the qmailtoaster packages on RedHat Enterprise Linux Server release 5.2 on a x86_64 server, i am getting this error on the building process: + chmod u+x /var/tmp/daemontools-0.76-show_flags + /var/tmp/daemontools-0.76-show_flags /var/tmp/rpm-tmp.28671: /var/tmp/daemontools-0.76-show_flags: /bin/sh: bad interpreter: Permission denied error: Bad exit status from /var/tmp/rpm-tmp.28671 (%prep) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.28671 (%prep) I am logged as root and i run /var/tmp/daemontools-0.76-show_flags and it fails: -bash: /var/tmp/daemontools-0.76-show_flags: /bin/sh: bad interpreter: Permission denied What's wrong ? Thanks for your help - QmailToaster hosted by: VR Hosted http://www.vr.org - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - QmailToaster hosted by: VR Hosted http://www.vr.org - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - QmailToaster hosted by: VR Hosted http://www.vr.org - To unsubscribe, e-mail: [EMAIL PROTECTED
Re: [qmailtoaster] Failed build on RedHat Enterprise
German Molano Asociados wrote: Hi there, i am trying to build the qmailtoaster packages on RedHat Enterprise Linux Server release 5.2 on a x86_64 server, i am getting this error on the building process: + chmod u+x /var/tmp/daemontools-0.76-show_flags + /var/tmp/daemontools-0.76-show_flags /var/tmp/rpm-tmp.28671: /var/tmp/daemontools-0.76-show_flags: /bin/sh: bad interpreter: Permission denied error: Bad exit status from /var/tmp/rpm-tmp.28671 (%prep) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.28671 (%prep) I am logged as root and i run /var/tmp/daemontools-0.76-show_flags and it fails: -bash: /var/tmp/daemontools-0.76-show_flags: /bin/sh: bad interpreter: Permission denied What's wrong ? Thanks for your help Are you running as root? What does /bin/sh link to?
Re: [qmailtoaster] Failed build on RedHat Enterprise
Yes i do, i am as a root, but first I logged as a unprivileged user then switch as a root account with su - command. And sh links to bash # ls -alh /bin/sh lrwxrwxrwx 1 root root 4 Aug 1 12:34 /bin/sh - bash - Original Message - From: Jake Vickers To: qmailtoaster-list@qmailtoaster.com Sent: Monday, October 27, 2008 1:23 PM Subject: Re: [qmailtoaster] Failed build on RedHat Enterprise German Molano Asociados wrote: Hi there, i am trying to build the qmailtoaster packages on RedHat Enterprise Linux Server release 5.2 on a x86_64 server, i am getting this error on the building process: + chmod u+x /var/tmp/daemontools-0.76-show_flags + /var/tmp/daemontools-0.76-show_flags /var/tmp/rpm-tmp.28671: /var/tmp/daemontools-0.76-show_flags: /bin/sh: bad interpreter: Permission denied error: Bad exit status from /var/tmp/rpm-tmp.28671 (%prep) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.28671 (%prep) I am logged as root and i run /var/tmp/daemontools-0.76-show_flags and it fails: -bash: /var/tmp/daemontools-0.76-show_flags: /bin/sh: bad interpreter: Permission denied What's wrong ? Thanks for your help Are you running as root? What does /bin/sh link to?
Re: [qmailtoaster] Failed build on RedHat Enterprise
Not germane to the problem at hand, but kudos to you for not logging in directly as root! Virtually all of the best practices for UNIX/Linux security tell you to disable direct root access, yet surprisingly it is one of the most common security HOLES I see when I audit systems. By requiring users to log in as themselves, THEN up their privileges to root, you are effectively requiring a double-password to gain root-level access. Now... if you're truly a root user, please look for the following potential problems: - what are the permissions on /, /var, /var/tmp, and lastly, /var/tmp/daemontools-0.76-show_flags o what we're looking here are: - x (execute) permissions for all the dirs the file itself - w (write) permission on /var/tmp - t (sticky) permission on /var/tmp o MY values are / = 0711, /var = 0711, /var/tmp = 1773 - what is your PATH variable set to? o it should include /bin:/usr/bin:/opt/bin:/usr/local/bin:/usr/kerberos/bin and all of the sbin variants of those. - NOTE: on some systems, /opt either doesn't exist or is a symbolic link to /usr/local, so adjust accordingly. o MY value is PATH=/bin:/usr/bin:/opt/bin:/usr/kerberos/bin:/usr/kerberos/sbin:/opt/sbin:/usr/sbin:/sbin Looking forward to your response Dan Daniel McAllister, President IT4SOHO, LLC PO BOX 507 St. Petersburg, FL 33731-0507 877-IT4SOHO: Toll Free 727-647-7646 In Pinellas 813-464-2093 In Hillsborough 727-507-9435 Fax Only When did you do your last backup? Ask me about unattended offsite backup solutions... to protect your business, not just your data! German Molano Asociados wrote: Yes i do, i am as a root, but first I logged as a unprivileged user then switch as a root account with su - command. And sh links to bash # ls -alh /bin/sh lrwxrwxrwx 1 root root 4 Aug 1 12:34 /bin/sh - bash - Original Message - *From:* Jake Vickers mailto:[EMAIL PROTECTED] *To:* qmailtoaster-list@qmailtoaster.com mailto:qmailtoaster-list@qmailtoaster.com *Sent:* Monday, October 27, 2008 1:23 PM *Subject:* Re: [qmailtoaster] Failed build on RedHat Enterprise German Molano Asociados wrote: Hi there, i am trying to build the qmailtoaster packages on RedHat Enterprise Linux Server release 5.2 on a x86_64 server, i am getting this error on the building process: + chmod u+x /var/tmp/daemontools-0.76-show_flags + /var/tmp/daemontools-0.76-show_flags /var/tmp/rpm-tmp.28671: /var/tmp/daemontools-0.76-show_flags: /bin/sh: bad interpreter: Permission denied error: Bad exit status from /var/tmp/rpm-tmp.28671 (%prep) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.28671 (%prep) I am logged as root and i run /var/tmp/daemontools-0.76-show_flags and it fails: -bash: /var/tmp/daemontools-0.76-show_flags: /bin/sh: bad interpreter: Permission denied What's wrong ? Thanks for your help Are you running as root? What does /bin/sh link to?