Ask detail operate process about edit sudoers file by terminal

staticsafe me at staticsafe.ca
Fri Jun 14 16:22:04 UTC 2013


On Fri, Jun 14, 2013 at 11:25:39AM -0400, Doug wrote:
> On 06/14/2013 12:37 AM, LingxianGuo wrote:
> >As a beginner,I am using Fedora18 64bit.The Firefox needs the plugin of
> >the Adobe flash Player,I have downloaded the file of
> >install_flash_player_11_linux.x86_64.tar.gz.By terminal, when I copied
> >the file of libflashplayer.so to /usr/lib64/mozilla/plugins,the result
> >is my user name is not in the file of sudoers.Except C Language,I do not
> >know any more about computer:BY TERMINAL,I NEED THE DETAIL OPERATE
> >PROCESS ABOUT EDITING SUDOERS FILE--EVEN EVERY COMMAND
> >
> While you are "supposed" to use visudo to edit sudoers, that
> requires that you know how to use the vi editor. Visudo is designed
> to catch mistakes that you make. However, you can edit sudoers with
> any editor; it is only a text file and doesn't know any better. You
> must have root privileges to edit sudoers, however.
> 
> --doug
> 
> -- 
> Blessed are the peacemakers..for they shall be shot at from both
> sides. --A.M.Greeley
> -- 
> users mailing list
> users at lists.fedoraproject.org
> To unsubscribe or change subscription options:
> https://admin.fedoraproject.org/mailman/listinfo/users
> Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
> Have a question? Ask away: http://ask.fedoraproject.org

EDITOR=nano visudo solves that problem, alternatively you can set the
EDITOR environment variable beforehand. Of course, it doesn't have to be
nano.

Never edit the actual sudoers file by hand, visudo does some syntax
checks to check for errors in the edit.
-- 
staticsafe
O< ascii ribbon campaign - stop html mail - www.asciiribbon.org
Please don't top post.
Please don't CC! I'm subscribed to whatever list I just posted on.


More information about the users mailing list