Disable environment settings

Bill McGonigle bill at bfccomputing.com
Tue Jun 3 12:49:52 EDT 2008


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.

-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



More information about the gnhlug-discuss mailing list