Re: [courier-users] Strange sendmail problem
Brought to you by:
mrsam
From: Christophe G. <gre...@ze...> - 2007-07-04 17:16:23
|
Well, I checked the log again, and I noticed what I think is the source of = the problem : =2D----8<----- 5287 execve("/usr/sbin/sendmail", ["/usr/sbin/sendmail", "testuser2"], ["S= HELL=3D/bin/bash", "TERM=3Dxterm", "USER=3Dinfo", "MAIL=3D/var/mail/testuse= r", "PATH=3D/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games", "PWD=3D/= home/testuser", "LANG=3Den_GB", "PS1=3D\\u@\\h\\w\\$ ", "SHLVL=3D1", "HOME= =3D/home/testuser", "LOGNAME=3Dtestuser", "_=3D/usr/sbin/sendmail"])=3D 0 [snip] 5287 setgid32(1) =3D -1 EPERM (Operation not permitt= ed) 5287 getuid32() =3D 1017 5287 setuid32(1017) =3D 0 5287 rt_sigaction(SIGCHLD, {SIG_DFL}, {SIG_DFL}, 8) =3D 0 5287 rt_sigaction(SIGPIPE, {SIG_IGN}, {SIG_DFL}, 8) =3D 0 5287 brk(0) =3D 0x8051000 5287 brk(0x8072000) =3D 0x8072000 5287 getuid32() =3D 1017 =2D----8<----- sendmail should have uid 0, not the user one. It checked for the Nth time, =2Drwsr-xr-x 1 root daemon 26352 2005-11-15 10:52 /usr/sbin/sendmail It HAS suid, and it's on the root partition (no nosuid flag). I really don't understand why the suid bit on the exe don't work :( =2D-=20 Christophe Greisberger <gre...@ze...> ______________________________________________________________ AIM: AlGaws =C2=A0 - =C2=A0 Yahoo: AlGaws ICQ: 54291996 =C2=A0 - =C2=A0 MSN: al...@ho... =C2=AF=C2=AF=C2=AF=C2=AF=C2=AF=C2=AF=C2=AF=C2=AF=C2=AF=C2=AF=C2=AF=C2=AF=C2= =AF=C2=AF=C2=AF=C2=AF=C2=AF=C2=AF=C2=AF=C2=AF=C2=AF=C2=AF=C2=AF=C2=AF=C2=AF= =C2=AF=C2=AF=C2=AF=C2=AF=C2=AF=C2=AF=C2=AF=C2=AF=C2=AF=C2=AF=C2=AF=C2=AF=C2= =AF=C2=AF=C2=AF=C2=AF=C2=AF=C2=AF=C2=AF=C2=AF=C2=AF=C2=AF=C2=AF=C2=AF=C2=AF= =C2=AF=C2=AF=C2=AF=C2=AF=C2=AF=C2=AF=C2=AF=C2=AF=C2=AF=C2=AF=C2=AF=C2=AF |