View Single Post
qole's Avatar
Moderator | Posts: 7,109 | Thanked: 8,820 times | Joined on Oct 2007 @ Vancouver, BC, Canada
#258
Originally Posted by Benson View Post
/usr/bin/debbie was fine, as far as quoting goes.
So what was the problem? The $* needed to be replaced with $@ ?

Originally Posted by Benson View Post
Modded it to pass environment variables rightly (su was stomping them), but still needs sudoers tweak:
Code:
Defaults env_keep+=GTK_MODULES
user ALL = NOPASSWD: /sbin/debian
Note that the second line suffices, for our purposes, instead of the ALL = NOPASSWD: ALL that we've been using. Your call which to go with; by letting the user chroot to an arbitrary FS image, they already own the system if they want it. It's not any better security-wise, but might save someone somewhere from doing something stupid. The first line, though, lets us pass GTK_MODULES through, which we need.
So I have to add the "Defaults" line to my sudoers hack? I can do that.
__________________
qole.org --- twitter --- Easy Debian wiki page
Please don't send me a private message, post to the appropriate thread.
Thank you all for your donations!