[SunHELP] help on script writing

DAUBIGNE Sebastien - BOR sunhelp at sunhelp.org
Wed Dec 5 06:18:54 CST 2001


"su - user -c command" might not work if the original user is not root.
You have to supply the password in that case, hopefully.

The 2 solutions are :
-	Use the set-uid-bit for the script (be carefull as there are many
security holes with environnement variables : PATH, IFS, etc...)
-	Use the suggested "sudo"  way.

---
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:	Jan Johansson [SMTP:janj-sunhelp at wenf.org]
	Date:	mercredi 5 dicembre 2001 11:23
	@:	sunhelp at sunhelp.org
	Objet:	Re: [SunHELP] help on script writing


	Otherwise 'su - user -c command' might work.

	[1] http://www.courtesan.com/sudo/
	_______________________________________________
	SunHELP maillist  -  SunHELP at sunhelp.org
	http://www.sunhelp.org/mailman/listinfo/sunhelp



More information about the SunHELP mailing list