Re: sudo with my aliases



On Wed, 27 Sep 2006 08:39:46 -0700, sam.s.kong wrote for everyone to
trash:


John-Paul Stewart wrote:
sam.s.kong@xxxxxxxxx wrote:
The thing is that I'm using a mac (Tiger).

Then why are you asking a non-Linux question in a Linux group?

Try a Mac newsgroup, or comp.unix.shell if you think it's not
platform-specific.

I apologize that I posted my question in a wrong group. I thought that the
"sudo" issue was cross-platform. Mac is on unix and the shell is bash. And
I thought that it might be better answered here because most mac users
only use GUI.

Sam

Not sure about OSX but aliases are defined by the alias xx=commands or
executing alias while sudo is in effect itself an alias, ie,
alias sudo="su && command"

You could define the aliases commands in /etc/bash.bashrc or whatever
bashrc is the boot bashrc, or in a file executed by boot process (init.d),
or in the sudoers file.

.



Relevant Pages

  • Re: sudo with my aliases
    ... Then why are you asking a non-Linux question in a Linux group? ... Try a Mac newsgroup, or comp.unix.shell if you think it's not ... Mac is on unix and the shell is bash. ...
    (comp.os.linux.misc)
  • Re: the annoying case of the disappearing custom icons
    ... The problem is that you're removing the .rtf suffix, ... The way to work around this is to create an alias of the document, ... i opened another TextEdit Document and Copied and ... that The Mac would identify documents and files by 'hidden' tags ...
    (comp.sys.mac.system)
  • Re: FAO: Jenny100
    ... do you know of anyone who has played it on a Mac who might be able to ... >> Aggie (alias, Magrat, alias Margolotta, alias Ysabell, etc) ... > I've played Myst IV on a Mac and I believe Andrew Plotkin has also. ... > Another place you could ask is over at the Myst Obsession forums. ...
    (comp.sys.ibm.pc.games.adventure)
  • Re: FAO: Jenny100
    ... do you know of anyone who has played it on a Mac who might be able to ... > Aggie (alias, Magrat, alias Margolotta, alias Ysabell, etc) ... I've played Myst IV on a Mac and I believe Andrew Plotkin has also. ... Another place you could ask is over at the Myst Obsession forums. ...
    (comp.sys.ibm.pc.games.adventure)
  • Re: XP Activation
    ... > You CHOOSE not to "afford" a Mac, ... > you bought a ticket, and you have to keep showing to to them to "prove you ... > Alias wrote: ...
    (microsoft.public.windowsxp.general)