Get ./configure line from Debian Package
I want to build the source of a package on myself (new version, some additions) but I want to use the ./configure options from the original package as a starting point. I can’t find anything in the source package, so where can I see the actual options used to compile a binary Debian package? The Name of the package is php5-cgi. Asked by Fu86 The options should be in the source package in the debian/rules [...]
Continue Reading »Allow complex sudo command on Debian Linux
I need to allow a specific command on a Debian Linux box for a single user. I’ve tried this in the /etc/sudoers file: # User privilege specification zabbix ALL=NOPASSWD: /usr/bin/apt-get –print-uris -qq -y upgrade 2>/dev/null |awk ‘{print $2}’ | wc | awk ‘{print $1}’ This does not work as expected. If I run the command as user zabbix with sudo, it asks for the password (although I have specified the NOPASSWD option). However, this works: [...]
Continue Reading »Linux: Allow complex sudo command
I need to allow a specific command on a Debian Linux box for a single user. I’ve tried this in the /etc/sudoers file: # User privilege specification zabbix ALL=NOPASSWD: /usr/bin/apt-get –print-uris -qq -y upgrade 2>/dev/null |awk ‘{print $2}’ | wc | awk ‘{print $1}’ This does not work as expected. If I run the command as user zabbix with sudo, it asks for the password (although I have specified the NOPASSWD option. However, this works: [...]
Continue Reading »Postfix smtpd won’t talk to saslauthd
I have an saslauthd setup to authenticate against PAM. It seems to do its stuff: root@sasltest:~# testsaslauthd -u quest -p #### -s smtp 0: OK “Success.” I have libsasl 2.1.23, postfix 2.7.1. I have a postfix configured thus: smtpd_sasl_type = cyrus smtpd_sasl_path = /var/spool/postfix/private/saslauthd/mux smtpd_sasl_auth_enable = yes broken_sasl_auth_clients = yes smtpd_sasl_security_options = noanonymous With a master.cf thus: submission inet n – - – - smtpd -o smtpd_tls_security_level=encrypt -o smtpd_sasl_auth_enable=yes -o smtpd_client_restrictions=permit_sasl_authenticated,reject However, trying to authenticate [...]
Continue Reading »What to do when someone logged as root on my server
I have a server running Debian 6.0 with logcheck installed. Yesterday ago, I received this message: Jan 19 19:15:10 hostname sshd[28397]: Authentication tried for root with correct key but not from a permitted host (host=4.red-2-140-77.dynamicip.rima-tde.net, ip=2.140.77.4). I don’t know who this is and I doubt he was there by accident. Now, what should I do? First thing I done was disable ssh password authentication and switched to public/private key. I also check the authorized_keys file [...]
Continue Reading »Trying to setup an iptables port 80 to 8080 redirect on debian 6
When trying to setup a redirect and save the iptables file via iptables-restore, i get the following error: iptables-restore v1.4.8: Line 31 seems to have a -t table option.Error occurred at line: 31 Here’s the full file, with the line im trying to use to redirect at #31 *filter# Allows all loopback (lo0) traffic and drop all traffic to 127/8 that doesn’t use lo0 -A INPUT -i lo -j ACCEPT -A INPUT ! -i lo [...]
Continue Reading »Online resize logicaldrive on Smart Array P410i
On my HP Proliant server I have hot added 2 extra drives. To expand the current raid 1 array I used the following commands: hpacucli ctrl slot=0 logicaldrive 1 modify raid=1+0 hpacucli ctrl slot=0 ld 1 add drives=allunassigned Now the logicaldrive looks like this: # hpacucli ctrl slot=0 logicaldrive 1 showSmart Array P410i in Slot 0 (Embedded)array A Logical Drive: 1 Size: 136.7 GB Fault Tolerance: RAID 1+0 Heads: 255 Sectors Per Track: 32 Cylinders: [...]
Continue Reading »Why would nscd use a huge amount of RAM?
My server seized up. It was virtually unusable. This seemed like a likely culprit: root 1037 0.0 92.6 1455696 958368 ? Ssl 2012 3:57 /usr/sbin/nscd That’s 92% RAM. I killed it to get my server operational again. Given that I have now killed the process, what post-mortem diagnostics can I do to see what the cause was? top occasionally showed high wa values, which might suggest there might be something up with a file or [...]
Continue Reading »How to automatically resume php-fpm?
I am using nginx+php-fpm on Debian Squeeze for a busy server and have had great difficulty to deal with maximum connections being reached. Here the problem is that php processes sometimes just die randomly under high load and leave the server with no php process. Then I need to manually restart php5-fpm service to bring back the server to life. I am wondering how to avoid this to happen, or at least treat the symptoms [...]
Continue Reading »Tinydns create a seperate A-Record for “www” and for my root domain
I am having issues understanding how I should adapting the following configuration for tinydns so that the A-Records for “www” and for my root domain. “www” pointing to 199.34.228.100. root domain pointing to 199.34.228.100. This would leave the current mails and only pointing the web to this new ip address. “mail.test.com” is our separate mail server. Current config: # NS and SOA records .test.co.uk::a.ns.bytemark.co.uk .test.co.uk::b.ns.bytemark.co.uk .test.co.uk::c.ns.bytemark.co.uk# MX record – mail server @test.co.uk::mail.test.com:10# PTR records +test.co.uk:80.68.48.137 [...]
Continue Reading »


