Current time: 11-23-2024, 08:26 AM Hello There, Guest! (LoginRegister)


Post Reply 
fastcgi incomplete headers issues
Author Message
raphael Offline
Member
***

Posts: 474
Joined: Apr 2007
Reputation: 8
Post: #31
RE: fastcgi incomplete headers issues
that seems to be ok, if the noexec flag was enabled on the partition where /var is stored that'd be the reason why it fails, but it isn't in your case. Can you strace your sudo call?
01-07-2008 03:53 AM
Visit this user's website Find all posts by this user Quote this message in a reply
blunt Offline
Junior Member
*

Posts: 40
Joined: Jan 2008
Reputation: 0
Post: #32
RE: fastcgi incomplete headers issues
I looked at the error log and saw /home instead of /var. If you didn't mention it, I wouldn't notice...

strace givesme a lotof output...I don't really know what you want to see exactly, so i'll post some from the end (before what is pasted below, there are a lot of lines with bad file descriptor).
here it goes:

brk(0) = 0x8062000
brk(0x8083000) = 0x8083000
open("/etc/nsswitch.conf", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=475, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7f2a000
read(3, "# /etc/nsswitch.conf\n#\n# Example"..., 4096) = 475
read(3, "", 4096) = 0
close(3) = 0
munmap(0xb7f2a000, 4096) = 0
open("/etc/ld.so.cache", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=13083, ...}) = 0
mmap2(NULL, 13083, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb7f27000
close(3) = 0
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
open("/lib/tls/libnss_compat.so.2", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\20\21\0"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0644, st_size=30428, ...}) = 0
mmap2(NULL, 33392, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7dde000
mmap2(0xb7de5000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x6) = 0xb7de5000
close(3) = 0
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
open("/lib/tls/libnsl.so.1", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0p5\0\000"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0644, st_size=76548, ...}) = 0
mmap2(NULL, 87808, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7dc8000
mmap2(0xb7dda000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x11) = 0xb7dda000
mmap2(0xb7ddc000, 5888, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb7ddc000
close(3) = 0
munmap(0xb7f27000, 13083) = 0
open("/etc/ld.so.cache", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=13083, ...}) = 0
mmap2(NULL, 13083, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb7f27000
close(3) = 0
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
open("/lib/tls/libnss_nis.so.2", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0@\34\0\000"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0644, st_size=34320, ...}) = 0
mmap2(NULL, 37420, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7dbe000
mmap2(0xb7dc6000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x7) = 0xb7dc6000
close(3) = 0
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
open("/lib/tls/libnss_files.so.2", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\200\33"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0644, st_size=38372, ...}) = 0
mmap2(NULL, 41620, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7db3000
mmap2(0xb7dbc000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x8) = 0xb7dbc000
close(3) = 0
munmap(0xb7f27000, 13083) = 0
open("/etc/passwd", O_RDONLY) = 3
fcntl64(3, F_GETFD) = 0
fcntl64(3, F_SETFD, FD_CLOEXEC) = 0
socket(PF_NETLINK, SOCK_RAW, 0) = 4
bind(4, {sa_family=AF_NETLINK, pid=0, groups=00000000}, 12) = 0
getsockname(4, {sa_family=AF_NETLINK, pid=7394, groups=00000000}, [12]) = 0
time(NULL) = 1199644397
sendto(4, "\24\0\0\0\22\0\1\3\355\36\201G\0\0\0\0\0\315\362\267", 20, 0, {sa_family=AF_NETLINK, pid=0, groups=00000000}, 12) = 20
recvmsg(4, {msg_name(12)={sa_family=AF_NETLINK, pid=0, groups=00000000}, msg_iov(1)=[{"\364\0\0\0\20\0\2\0\355\36\201G\342\34\0\0\0\0\4\3\1\0"..., 4096}], msg_controllen=0, msg_flags=0}, 0) = 468
recvmsg(4, {msg_name(12)={sa_family=AF_NETLINK, pid=0, groups=00000000}, msg_iov(1)=[{"\24\0\0\0\3\0\2\0\355\36\201G\342\34\0\0\0\0\0\0\1\0\0"..., 4096}], msg_controllen=0, msg_flags=0}, 0) = 20
sendto(4, "\24\0\0\0\26\0\1\3\356\36\201G\0\0\0\0\0\315\362\267", 20, 0, {sa_family=AF_NETLINK, pid=0, groups=00000000}, 12) = 20
recvmsg(4, {msg_name(12)={sa_family=AF_NETLINK, pid=0, groups=00000000}, msg_iov(1)=[{"<\0\0\0\24\0\2\0\356\36\201G\342\34\0\0\2\10\200\376\1"..., 4096}], msg_controllen=0, msg_flags=0}, 0) = 180
recvmsg(4, {msg_name(12)={sa_family=AF_NETLINK, pid=0, groups=00000000}, msg_iov(1)=[{"@\0\0\0\24\0\2\0\356\36\201G\342\34\0\0\n\200\200\376\1"..., 4096}], msg_controllen=0, msg_flags=0}, 0) = 64
recvmsg(4, {msg_name(12)={sa_family=AF_NETLINK, pid=0, groups=00000000}, msg_iov(1)=[{"\24\0\0\0\3\0\2\0\356\36\201G\342\34\0\0\0\0\0\0\1\0\0"..., 4096}], msg_controllen=0, msg_flags=0}, 0) = 20
close(4) = 0
open("/etc/localtime", O_RDONLY) = 4
fstat64(4, {st_mode=S_IFREG|0644, st_size=3439, ...}) = 0
fstat64(4, {st_mode=S_IFREG|0644, st_size=3439, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7f2a000
read(4, "TZif2\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\v\0\0\0\v\0\0"..., 4096) = 3439
close(4) = 0
munmap(0xb7f2a000, 4096) = 0
uname({sys="Linux", node="hostingspirit.com", ...}) = 0
ioctl(0, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig icanon echo ...}) = 0
readlink("/proc/self/fd/0", "/dev/pts/0", 4095) = 10
getuid32() = 0
socket(PF_FILE, SOCK_STREAM, 0) = 4
fcntl64(4, F_GETFL) = 0x2 (flags O_RDWR)
fcntl64(4, F_SETFL, O_RDWR|O_NONBLOCK) = 0
connect(4, {sa_family=AF_FILE, path="/var/run/nscd/socket"}, 110) = -1 ENOENT (No such file or directory)
close(4) = 0
socket(PF_FILE, SOCK_STREAM, 0) = 4
fcntl64(4, F_GETFL) = 0x2 (flags O_RDWR)
fcntl64(4, F_SETFL, O_RDWR|O_NONBLOCK) = 0
connect(4, {sa_family=AF_FILE, path="/var/run/nscd/socket"}, 110) = -1 ENOENT (No such file or directory)
close(4) = 0
open("/etc/passwd", O_RDONLY) = 4
fcntl64(4, F_GETFD) = 0
fcntl64(4, F_SETFD, FD_CLOEXEC) = 0
_llseek(4, 0, [0], SEEK_CUR) = 0
fstat64(4, {st_mode=S_IFREG|0644, st_size=1225, ...}) = 0
mmap2(NULL, 1225, PROT_READ, MAP_SHARED, 4, 0) = 0xb7f2a000
_llseek(4, 1225, [1225], SEEK_SET) = 0
munmap(0xb7f2a000, 1225) = 0
close(4) = 0
open("/etc/shadow", O_RDONLY) = 4
fcntl64(4, F_GETFD) = 0
fcntl64(4, F_SETFD, FD_CLOEXEC) = 0
open("/etc/shadow", O_RDONLY) = 5
fcntl64(5, F_GETFD) = 0
fcntl64(5, F_SETFD, FD_CLOEXEC) = 0
_llseek(5, 0, [0], SEEK_CUR) = 0
fstat64(5, {st_mode=S_IFREG|0640, st_size=780, ...}) = 0
mmap2(NULL, 780, PROT_READ, MAP_SHARED, 5, 0) = 0xb7f2a000
_llseek(5, 780, [780], SEEK_SET) = 0
munmap(0xb7f2a000, 780) = 0
close(5) = 0
close(4) = 0
open("/etc/passwd", O_RDONLY) = 4
fcntl64(4, F_GETFD) = 0
fcntl64(4, F_SETFD, FD_CLOEXEC) = 0
_llseek(4, 0, [0], SEEK_CUR) = 0
fstat64(4, {st_mode=S_IFREG|0644, st_size=1225, ...}) = 0
mmap2(NULL, 1225, PROT_READ, MAP_SHARED, 4, 0) = 0xb7f2a000
_llseek(4, 1225, [1225], SEEK_SET) = 0
munmap(0xb7f2a000, 1225) = 0
close(4) = 0
open("/etc/shadow", O_RDONLY) = 4
fcntl64(4, F_GETFD) = 0
fcntl64(4, F_SETFD, FD_CLOEXEC) = 0
open("/etc/shadow", O_RDONLY) = 5
fcntl64(5, F_GETFD) = 0
fcntl64(5, F_SETFD, FD_CLOEXEC) = 0
_llseek(5, 0, [0], SEEK_CUR) = 0
fstat64(5, {st_mode=S_IFREG|0640, st_size=780, ...}) = 0
mmap2(NULL, 780, PROT_READ, MAP_SHARED, 5, 0) = 0xb7f2a000
_llseek(5, 780, [780], SEEK_SET) = 0
munmap(0xb7f2a000, 780) = 0
close(5) = 0
close(4) = 0
setregid32(-1, 0) = 0
setreuid32(0, 0) = 0
getcwd("/root", 4096) = 6
setreuid32(-1, 0) = 0
setuid32(0) = 0
setreuid32(-1, 2000) = 0
stat64("/var/www/fcgi/master/php5-fcgi-starter", {st_mode=S_IFREG|0755, st_size=195, ...}) = 0
setreuid32(-1, 0) = 0
setuid32(0) = 0
lstat64("/etc/sudoers", {st_mode=S_IFREG|0440, st_size=301, ...}) = 0
setregid32(-1, 0) = 0
setreuid32(0, 1) = 0
open("/etc/sudoers", O_RDONLY) = 4
fstat64(4, {st_mode=S_IFREG|0440, st_size=301, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7f2a000
read(4, "# /etc/sudoers\n#\n# This file MUS"..., 4096) = 301
setreuid32(-1, 0) = 0
setuid32(0) = 0
_llseek(4, 0, [0], SEEK_SET) = 0
setreuid32(-1, 2000) = 0
ioctl(4, SNDCTL_TMR_TIMEBASE or TCGETS, 0xbfd5af38) = -1 ENOTTY (Inappropriate ioctl for device)
read(4, "# /etc/sudoers\n#\n# This file MUS"..., 8192) = 301
read(4, "", 4096) = 0
read(4, "", 8192) = 0
ioctl(4, SNDCTL_TMR_TIMEBASE or TCGETS, 0xbfd5af38) = -1 ENOTTY (Inappropriate ioctl for device)
close(4) = 0
munmap(0xb7f2a000, 4096) = 0
setreuid32(-1, 0) = 0
setuid32(0) = 0
time([1199644397]) = 1199644397
stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=3439, ...}) = 0
stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=3439, ...}) = 0
stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=3439, ...}) = 0
socket(PF_FILE, SOCK_DGRAM, 0) = 4
fcntl64(4, F_SETFD, FD_CLOEXEC) = 0
connect(4, {sa_family=AF_FILE, path="/dev/log"}, 16) = 0
send(4, "<85>Jan 6 18:33:17 sudo: ro"..., 150, MSG_NOSIGNAL) = 150
close(4) = 0
umask(022) = 022
setrlimit(RLIMIT_CORE, {rlim_cur=0, rlim_max=RLIM_INFINITY}) = 0
stat64("/etc/pam.d", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
open("/etc/pam.d/sudo", O_RDONLY) = 4
fstat64(4, {st_mode=S_IFREG|0644, st_size=56, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7f2a000
read(4, "#%PAM-1.0\n\n@include common-auth\n"..., 4096) = 56
stat64("/etc/pam.d", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
open("/etc/pam.d/common-auth", O_RDONLY) = 5
fstat64(5, {st_mode=S_IFREG|0644, st_size=436, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7f29000
read(5, "#\n# /etc/pam.d/common-auth - aut"..., 4096) = 436
open("/lib/security/pam_unix.so", O_RDONLY) = 6
read(6, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\300%\0"..., 512) = 512
fstat64(6, {st_mode=S_IFREG|0644, st_size=51484, ...}) = 0
mmap2(NULL, 99684, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 6, 0) = 0xb7d9a000
mmap2(0xb7da6000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 6, 0xc) = 0xb7da6000
mmap2(0xb7da7000, 46436, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb7da7000
close(6) = 0
open("/etc/ld.so.cache", O_RDONLY) = 6
fstat64(6, {st_mode=S_IFREG|0644, st_size=13083, ...}) = 0
mmap2(NULL, 13083, PROT_READ, MAP_PRIVATE, 6, 0) = 0xb7d96000
close(6) = 0
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
open("/lib/tls/libcrypt.so.1", O_RDONLY) = 6
read(6, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0@\10\0\000"..., 512) = 512
fstat64(6, {st_mode=S_IFREG|0644, st_size=21868, ...}) = 0
mmap2(NULL, 184636, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 6, 0) = 0xb7d68000
mmap2(0xb7d6d000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 6, 0x4) = 0xb7d6d000
mmap2(0xb7d6f000, 155964, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb7d6f000
close(6) = 0
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
open("/lib/libselinux.so.1", O_RDONLY) = 6
read(6, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0P8\0\000"..., 512) = 512
fstat64(6, {st_mode=S_IFREG|0644, st_size=79368, ...}) = 0
mmap2(NULL, 84884, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 6, 0) = 0xb7d53000
mmap2(0xb7d66000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 6, 0x12) = 0xb7d66000
close(6) = 0
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
open("/lib/libsepol.so.1", O_RDONLY) = 6
read(6, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\0200\0"..., 512) = 512
fstat64(6, {st_mode=S_IFREG|0644, st_size=219824, ...}) = 0
mmap2(NULL, 265152, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 6, 0) = 0xb7d12000
mmap2(0xb7d48000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 6, 0x35) = 0xb7d48000
mmap2(0xb7d49000, 39872, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb7d49000
close(6) = 0
access("/etc/selinux/", F_OK) = -1 ENOENT (No such file or directory)
open("/proc/mounts", O_RDONLY|O_LARGEFILE) = 6
fstat64(6, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7f28000
read(6, "simfs / simfs rw 0 0\ntmpfs /lib/"..., 1024) = 232
read(6, "", 1024) = 0
close(6) = 0
munmap(0xb7f28000, 4096) = 0
munmap(0xb7d96000, 13083) = 0
read(5, "", 4096) = 0
close(5) = 0
munmap(0xb7f29000, 4096) = 0
stat64("/etc/pam.d", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
open("/etc/pam.d/common-account", O_RDONLY) = 5
fstat64(5, {st_mode=S_IFREG|0644, st_size=392, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7f29000
read(5, "#\n# /etc/pam.d/common-account - "..., 4096) = 392
read(5, "", 4096) = 0
close(5) = 0
munmap(0xb7f29000, 4096) = 0
read(4, "", 4096) = 0
close(4) = 0
munmap(0xb7f2a000, 4096) = 0
open("/etc/pam.d/other", O_RDONLY) = 4
fstat64(4, {st_mode=S_IFREG|0644, st_size=520, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7f2a000
read(4, "#\n# /etc/pam.d/other - specify t"..., 4096) = 520
stat64("/etc/pam.d", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
open("/etc/pam.d/common-auth", O_RDONLY) = 5
fstat64(5, {st_mode=S_IFREG|0644, st_size=436, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7f29000
read(5, "#\n# /etc/pam.d/common-auth - aut"..., 4096) = 436
read(5, "", 4096) = 0
close(5) = 0
munmap(0xb7f29000, 4096) = 0
stat64("/etc/pam.d", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
open("/etc/pam.d/common-account", O_RDONLY) = 5
fstat64(5, {st_mode=S_IFREG|0644, st_size=392, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7f29000
read(5, "#\n# /etc/pam.d/common-account - "..., 4096) = 392
read(5, "", 4096) = 0
close(5) = 0
munmap(0xb7f29000, 4096) = 0
stat64("/etc/pam.d", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
open("/etc/pam.d/common-password", O_RDONLY) = 5
fstat64(5, {st_mode=S_IFREG|0644, st_size=1097, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7f29000
read(5, "#\n# /etc/pam.d/common-password -"..., 4096) = 1097
read(5, "", 4096) = 0
close(5) = 0
munmap(0xb7f29000, 4096) = 0
stat64("/etc/pam.d", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
open("/etc/pam.d/common-session", O_RDONLY) = 5
fstat64(5, {st_mode=S_IFREG|0644, st_size=372, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7f29000
read(5, "#\n# /etc/pam.d/common-session - "..., 4096) = 372
read(5, "", 4096) = 0
close(5) = 0
munmap(0xb7f29000, 4096) = 0
read(4, "", 4096) = 0
close(4) = 0
munmap(0xb7f2a000, 4096) = 0
munmap(0xb7d9a000, 99684) = 0
munmap(0xb7d68000, 184636) = 0
munmap(0xb7d53000, 84884) = 0
munmap(0xb7d12000, 265152) = 0
setgid32(2000) = 0
open("/proc/sys/kernel/ngroups_max", O_RDONLY) = 4
read(4, "65536\n", 31) = 6
close(4) = 0
socket(PF_FILE, SOCK_STREAM, 0) = 4
fcntl64(4, F_GETFL) = 0x2 (flags O_RDWR)
fcntl64(4, F_SETFL, O_RDWR|O_NONBLOCK) = 0
connect(4, {sa_family=AF_FILE, path="/var/run/nscd/socket"}, 110) = -1 ENOENT (No such file or directory)
close(4) = 0
socket(PF_FILE, SOCK_STREAM, 0) = 4
fcntl64(4, F_GETFL) = 0x2 (flags O_RDWR)
fcntl64(4, F_SETFL, O_RDWR|O_NONBLOCK) = 0
connect(4, {sa_family=AF_FILE, path="/var/run/nscd/socket"}, 110) = -1 ENOENT (No such file or directory)
close(4) = 0
open("/etc/group", O_RDONLY) = 4
fcntl64(4, F_GETFD) = 0
fcntl64(4, F_SETFD, FD_CLOEXEC) = 0
_llseek(4, 0, [0], SEEK_CUR) = 0
fstat64(4, {st_mode=S_IFREG|0644, st_size=587, ...}) = 0
mmap2(NULL, 587, PROT_READ, MAP_SHARED, 4, 0) = 0xb7f2a000
_llseek(4, 587, [587], SEEK_SET) = 0
fstat64(4, {st_mode=S_IFREG|0644, st_size=587, ...}) = 0
munmap(0xb7f2a000, 587) = 0
close(4) = 0
setgroups32(1, [2000]) = 0
setreuid32(2000, 2000) = 0
close(3) = 0
rt_sigaction(SIGINT, {SIG_DFL}, NULL, 8) = 0
rt_sigaction(SIGQUIT, {SIG_DFL}, NULL, 8) = 0
rt_sigaction(SIGTSTP, {SIG_DFL}, NULL, 8) = 0
rt_sigaction(SIGCHLD, {SIG_DFL}, NULL, 8) = 0
execve("/var/www/fcgi/master/php5-fcgi-starter", ["/var/www/fcgi/master/php5-fcgi-s"..., "/var/www/ispcp/gui/index.php"], [/* 10 vars */]) = -1 EACCES (Permission denied)
write(2, "sudo: ", 6sudo: ) = 6
write(2, "unable to execute /var/www/fcgi/"..., 56unable to execute /var/www/fcgi/master/php5-fcgi-starter) = 56
write(2, ": ", 2: ) = 2
write(2, "Permission denied\n", 18Permission denied
) = 18
exit_group(127) = ?
Process 7394 detached
01-07-2008 04:32 AM
Find all posts by this user Quote this message in a reply
joximu Offline
helper
*****
Moderators

Posts: 7,024
Joined: Jan 2007
Reputation: 92
Post: #33
RE: fastcgi incomplete headers issues
It seems that neither /home nor /var is a separate partition...
01-07-2008 04:45 AM
Visit this user's website Find all posts by this user Quote this message in a reply
blunt Offline
Junior Member
*

Posts: 40
Joined: Jan 2008
Reputation: 0
Post: #34
RE: fastcgi incomplete headers issues
no they are not in separate partitions..is that a problem?
01-07-2008 05:14 AM
Find all posts by this user Quote this message in a reply
joximu Offline
helper
*****
Moderators

Posts: 7,024
Joined: Jan 2007
Reputation: 92
Post: #35
RE: fastcgi incomplete headers issues
blunt Wrote:no they are not in separate partitions..is that a problem?

nono, I just wanted to clear the thing with /var and /home
01-07-2008 05:25 AM
Visit this user's website Find all posts by this user Quote this message in a reply
blunt Offline
Junior Member
*

Posts: 40
Joined: Jan 2008
Reputation: 0
Post: #36
RE: fastcgi incomplete headers issues
anyone can figure what's the problem by the strace output?

or anyone which had the same problem and found a way to get around it?

please...I've tried installing ispcp about ten times, from different nightly builds, and always get the same problem...

And I really need it working, so any hint is appreciated...

the server is a vps created with openvz, and is a debian 4.0 distribution.
01-09-2008 05:18 AM
Find all posts by this user Quote this message in a reply
raphael Offline
Member
***

Posts: 474
Joined: Apr 2007
Reputation: 8
Post: #37
RE: fastcgi incomplete headers issues
do you have any security tool around?
does
# usermod -s vu2000
help?
what is the output of grep ^vu2000 /etc/passwd?
by the way, I don't think you used
strace -u vu2000 /var/www/fcgi/master/php5-fcgi-starter
to get a strace, did you? it's output would be cleaner than using strace sudo -u /...
Anyway please try using strace -u vu2000, the first line of its output should be execve("/var/www/....
01-09-2008 09:03 AM
Visit this user's website Find all posts by this user Quote this message in a reply
blunt Offline
Junior Member
*

Posts: 40
Joined: Jan 2008
Reputation: 0
Post: #38
RE: fastcgi incomplete headers issues
Here is the output of strace:

ispcp:~# strace -u vu2000 /var/www/fcgi/master/php5-fcgi-starter
execve("/var/www/fcgi/master/php5-fcgi-starter", ["/var/www/fcgi/master/php5-fcgi-s"...], [/* 14 vars */]) = -1 EACCES (Permission denied)
dup(2) = 3
fcntl64(3, F_GETFL) = 0x8002 (flags O_RDWR|O_LARGEFILE)
fstat64(3, {st_mode=S_IFCHR|0600, st_rdev=makedev(136, 0), ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7f99000
_llseek(3, 0, 0xbfad48f4, SEEK_CUR) = -1 ESPIPE (Illegal seek)
write(3, "strace: exec: Permission denied\n", 32strace: exec: Permission denied
) = 32
close(3) = 0
munmap(0xb7f99000, 4096) = 0
exit_group(1) = ?
Process 31794 detached

and the contents of /etc/passwd

ispcp:~# grep ^vu2000 /etc/passwd
vu2000:x:2000:2000:vu-master:/var/www/fcgi/master:/bin/false

usermod -s vu2000
shows me the help for usermod...don't know why...

does this clear anything up?

thank you
01-09-2008 08:39 PM
Find all posts by this user Quote this message in a reply
raphael Offline
Member
***

Posts: 474
Joined: Apr 2007
Reputation: 8
Post: #39
RE: fastcgi incomplete headers issues
what about:
usermod -s /bin/sh vu2000
lsattr /var/www/fcgi/master/php5-fcgi-starter
01-10-2008 09:31 AM
Visit this user's website Find all posts by this user Quote this message in a reply
blunt Offline
Junior Member
*

Posts: 40
Joined: Jan 2008
Reputation: 0
Post: #40
RE: fastcgi incomplete headers issues
ispcp:~# usermod -s /bin/sh vu2000
ispcp:~# lsattr /var/www/fcgi/master/php5-fcgi-starter
------------------ /var/www/fcgi/master/php5-fcgi-starter

and here is something else:
ispcp:~# ls -la /var/www/fcgi/master/php5-fcgi-starter
-rwxr-xr-x 1 vu2000 vu2000 195 Jan 8 13:36 /var/www/fcgi/master/php5-fcgi-starter

I really don't understand the problem, since vu2000 is the owner of the file...
thanks for your help.
01-10-2008 08:37 PM
Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 3 Guest(s)