Disable environment settings

Bill McGonigle bill at bfccomputing.com
Tue Jun 3 12:11:21 EDT 2008


On Jun 3, 2008, at 12:01, Kenny Lussier wrote:

> The problem that I am running into now is how to
> maintain that variable when they `su - user`.

The question doesn't really make sense.  the '-' means, 'replace the  
current environment'.  So, to rephrase your question, "How can I get  
it to keep the current environment when I tell it to replace the  
current environment?" :)

So,  'su user' might work, but really this kind of job is what sudo  
is for.

You might need to add users into groups, defined stuff in sudoers,  
and even fix some old software with hardcoded assumptions, but I'm  
pretty sure you'll think it's worth doing right.

-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