Fedora Linux Support Community & Resources Center
  #16  
Old 12th October 2017, 10:01 PM
lsatenstein Offline
Registered User
 
Join Date: Jun 2005
Location: Montreal, Que, Canada
Posts: 4,349
linuxfedorafirefox
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
Reply With Quote
  #17  
Old 12th October 2017, 10:27 PM
dswaner Offline
Registered User
 
Join Date: Nov 2008
Posts: 308
linuxfedorafirefox
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
Quote:
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.
Reply With Quote
Reply

Tags
add , alias , sudo

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

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


Current GMT-time: 09:17 (Wednesday, 18-10-2017)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat