[SunHELP] Need help setuid/setgid

DAUBIGNE Sebastien - BOR SDaubigne@bordeaux-bersol.sema.slb.com sunhelp at sunhelp.org
Fri Dec 28 04:51:12 CST 2001


If the execute bits were not set, the the permission flags would be :

-rwSr-lr-

instead of

-rwsr-sr-x

(Note the uppercase "S" and the "l"). So I guess the executable bits were
set.

Did you check that the /tmp FS was not mounted with the nosuid option (check
/etc/vfstab) ?

--
Sebastien DAUBIGNE
sebastien.daubigne at sema.fr <mailto:sebastien.daubigne at sema.fr>  - (+33)
(0)5.57.26.56.36
Sema Global Services - AFM/DW/Pessac

	-----Message d'origine-----
	De:	Christopher Smiga [SMTP:csmiga at yahoo.com]
	Date:	vendredi 28 dicembre 2001 04:38
	@:	sunhelp at sunhelp.org
	Objet:	RE: [SunHELP] Need help setuid/setgid

	Ravi,

	When you implemented the setuid/setgid tags to this file, did you
also
	implement the execute right (x) to the this file as well.

	Example:
	chmod 6755 /tmp/auto

	-rwsr-sr-x   1 build    cm           640 Dec 27 19:09 /tmp/auto

	The file that you are applying the setuid and setguid tags to must
have
	execute rights applied as well. Hope this helps.

	Christopher Smiga
	Web: www.geocities.com/csmiga
	e-Mail: csmiga at yahoo.com

	-----Original Message-----
	From: sunhelp-admin at sunhelp.org [mailto:sunhelp-admin at sunhelp.org]On
	Behalf Of Ravi Katti
	Sent: Thursday, December 27, 2001 10:26 PM
	To: sunhelp at sunhelp.org
	Subject: [SunHELP] Need help setuid/setgid


	Hello,

	User "rkatti" (myself) belongs to "sw" group and I am trying to run
a
	script(bourne shell) as a user "build" who is part of "cm" group
with proper
	setuid/setgid. But still when I execute the script, user is not
switched. Am
	I missing something here ?

	Any clues pointers will be highly appreciated.

	-rwsr-sr-x   1 build    cm           640 Dec 27 19:09 /tmp/auto


	Thanks & Regards
	Ravi


	_________________________________________________________________
	Chat with friends online, try MSN Messenger:
http://messenger.msn.com
	_______________________________________________
	SunHELP maillist  -  SunHELP at sunhelp.org
	http://www.sunhelp.org/mailman/listinfo/sunhelp

	----------------------------------------------------
	Sign Up for NetZero Platinum Today
	Only $9.95 per month!
	http://my.netzero.net/s/signup?r=platinum&refcd=PT97
	_______________________________________________
	SunHELP maillist  -  SunHELP at sunhelp.org
	http://www.sunhelp.org/mailman/listinfo/sunhelp



More information about the SunHELP mailing list