[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

interesting xmcd conundrum



hello all,

when i run xmcd, it reports:

	xmcd Fatal Error:
	Xmcd binary permissions error: It should be setuid root.  Please have
	your system administrator correct this.

even though:
	% ll /usr/bin/xmcd 
	-rwsr-sr-x    1 root     root         1223 Nov 21 20:43 /usr/bin/xmcd*

according to strace:

write(3, "\10\20\2\0006\1\340\0\f\0\4\0]\0\340\0\10\0\26\0\245\0\0\0\f\0\4\0^\0\340\0\10\0\0\0\245\0\0\0=\0\4\0^\0\340\0\231\0\0\0\2\0\217\0=\0\4\0^\0\340\0\0\0\215\0\233\0\2\0E\1\10\0^\0\340\0\17\0"..., 2048) = 2048
setuid(0)                               = -1 EPERM (Operation not permitted)
write(2, "xmcd Fatal Error:\nXmcd binary permissions error: It should be
setuid root.  Please have\nyour system"..., 128) = 128
_exit(1)                                = ?


i believe that 3 is a fd for /etc/mtab.  it seems to be choking on
setuid(0).  but the executable IS setuid root.

any tips?

thanks!
pete

Attachment: pgpPpPSAtXWsh.pgp
Description: PGP signature


Reply to: