Disable environment settings
Coleman Kane
cokane at cokane.org
Tue Jun 3 13:00:31 EDT 2008
On Tue, 2008-06-03 at 12:49 -0400, Bill McGonigle wrote:
> On Jun 3, 2008, at 12:36, Kenny Lussier wrote:
>
> > Unfortunately, people get tired of typing it when they need to run
> > 100+
> > commands as another user to diagnose a problem.
>
> Yeah, me too. :)
>
> Are they special programs or common utilities?
>
> If they're special, you can wrap them, e.g.:
>
> /usr/local/bin/foobar:
>
> #!/bin/sh
> sudo /usr/local/realbin/foobar $*
>
> If you're dealing with mv, cp, ln, and friends this gets less happy.
Yeah, especially with the always annoying:
/usr/local/sudobin/ln -sf /home/mydir/mypwnedshadow /etc/shadow
>
> -Bill
> -----
> Bill McGonigle, Owner Work: 603.448.4440
> BFC Computing, LLC Home: 603.448.1668
> bill at bfccomputing.com Cell: 603.252.2606
> http://www.bfccomputing.com/ Page: 603.442.1833
> Blog: http://blog.bfccomputing.com/
> VCard: http://bfccomputing.com/vcard/bill.vcf
--
Coleman Kane
More information about the gnhlug-discuss
mailing list