[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Environment and Sudo




On 5/25/06, David Baron <d_baron@012.net.il> wrote:
Commands invoked using sudo do not receive/honor environment items or aliases.
Example would be the alias vi="vim". Invoking normally will run vim, invoking
using sudo vi will get the "other" vi.

Is there something else I need in /etc/profile or some .bashrc?

yes, you have to put correct entries in /etc/sudoers

for more information on setting up sudoers, do google for 'howto sudo', there are hundreds of pointers!


~viraj

--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org



Reply to: