Re: sudo with my aliases
- From: sam.s.kong@xxxxxxxxx
- Date: 26 Sep 2006 17:23:27 -0700
Hi Michael,
Michael Heiming wrote:
In comp.os.linux.misc sam.s.kong@xxxxxxxxx:
Hello,
sudo command doesn't understand the alias I defined.
How can I make "sudo" work with the aliases I defined for my account?
Presuming standard setup, put in your script near top:
# Source user environment
. /home/${SUDO_USER}/.bashrc
I think I've already set it up like you said.
The thing is that I'm using a mac (Tiger).
/Users/sam/.bash_login has the alias definitions.
But the aliases don't work with sudo.
Are you sure that it works?
Thanks.
Sam
.
- Follow-Ups:
- Re: sudo with my aliases
- From: Joe Beanfish
- Re: sudo with my aliases
- From: John-Paul Stewart
- Re: sudo with my aliases
- References:
- sudo with my aliases
- From: sam . s . kong
- Re: sudo with my aliases
- From: Michael Heiming
- sudo with my aliases
- Prev by Date: A new reader? Welcome to comp.os.linux.misc, read this first if you're new here (FAQ)
- Next by Date: Re: sudo with my aliases
- Previous by thread: Re: sudo with my aliases
- Next by thread: Re: sudo with my aliases
- Index(es):
Relevant Pages
|