FedoraForum.org - Fedora Support Forums and Community
Page 2 of 2 FirstFirst 1 2
Results 16 to 17 of 17
  1. #16
    Join Date
    Jun 2005
    Location
    Montreal, Que, Canada
    Posts
    4,600

    Re: Is there a way to add alias's to sudo ?

    Did you carefully review the alias for sudo.
    sudo with one space in the alias for sudo should do the job.
    Leslie in Montreal

    Interesting web sites list
    http://forums.fedoraforum.org/showth...40#post1697840

  2. #17
    Join Date
    Nov 2008
    Posts
    344

    Re: Is there a way to add alias's to sudo ?

    Sorry for the confusion, but it does work if you add the "shopt -s expand_aliases"
    to root's .bash_profile, not the user's. That is, "sudo -i ll" works as expected.

    Also, regarding
    Did you carefully review the alias for sudo.
    sudo with one space in the alias for sudo should do the job.
    I haven't tried that technique, but I'm certain that it works, since it is working for a number of
    contributors to this thread. I'll stick with the "shopt -s expand_aliases" technique.

Page 2 of 2 FirstFirst 1 2

Similar Threads

  1. [SOLVED] sudo NOPASSWD to .bashrc alias?
    By Bazu135 in forum Security and Privacy
    Replies: 6
    Last Post: 3rd September 2011, 09:31 AM
  2. Cannot open /var/db/sudo after sudo package upgrade
    By Replicant10000 in forum Security and Privacy
    Replies: 1
    Last Post: 16th September 2010, 01:25 PM
  3. How to Change Firefox Alias or any Alias?
    By FergatROn in forum Using Fedora
    Replies: 1
    Last Post: 3rd June 2008, 09:18 PM
  4. alias help
    By madjac in forum Using Fedora
    Replies: 0
    Last Post: 5th May 2007, 09:44 PM
  5. sudo question (host alias)
    By arc2v in forum Using Fedora
    Replies: 2
    Last Post: 23rd June 2005, 01:37 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •