Results 1 to 7 of 7

Thread: [SOLVED] fedora: use sudo command

  1. #1
    Join Date
    Jun 2008
    Location
    Kerala, India.
    Beans
    284
    Distro
    Ubuntu 12.04 Precise Pangolin

    Unhappy [SOLVED] fedora: use sudo command

    I am a Ubuntu user for more than a year, and I have recently installed fedora also (multi-boot).
    I've tried sudo but always gives this error:
    'user is not in the sudoers file. This incident will be reported.'
    I then used 'new login' to login as root and tried 'visudo' to edit the sudoers file.
    Please tell me how to edit this file and how to save it as it opens for editing in the terminal.

  2. #2
    Join Date
    Oct 2005
    Location
    Jacksonville, FL
    Beans
    29,420

    Re: fedora: use sudo command

    With Fedora, you have a password for root (created when you installed it) so if you need to become root, just open a terminal and run

    Code:
    su -
    <Enter root password>
    In the world of Linux, who needs Windows and Gates...

    Got most of my golden beans at an auction on eBay (with a couple of free drinks).

  3. #3
    Join Date
    Nov 2008
    Beans
    128
    Distro
    Ubuntu

    Re: fedora: use sudo command

    I have a writeup on that here:

  4. #4
    Join Date
    Jun 2007
    Location
    Poughkeepsie, NY
    Beans
    5,815
    Distro
    Ubuntu

    Re: fedora: use sudo command

    I like how you included the commmand for running as another user for sudo, very helpfull for people who want to use multiple accounts with no sudo access.
    Last night I lay in bed looking up at the stars in the sky and I thought to myself, where the heck is the ceiling.

  5. #5
    Join Date
    Jun 2008
    Location
    Kerala, India.
    Beans
    284
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: fedora: use sudo command

    How to use the editor that opens the sudoers file when we type visudo?

  6. #6
    Join Date
    Nov 2008
    Beans
    128
    Distro
    Ubuntu

    Re: fedora: use sudo command

    The editor is nano. Just type in the changes and press Ctrl+x to exit and save the changes.

  7. #7
    Join Date
    Feb 2007
    Location
    Romania
    Beans
    Hidden!

    Re: fedora: use sudo command

    you can change the default editor:

    kde:
    Code:
    VISUAL=kate visudo
    gnome:
    Code:
    VISUAL=gedit visudo
    xfce:
    Code:
    VISUAL=mousepad visudo
    terminal:
    Code:
    EDITOR=nano visudo
    in nano press Ctrl+o Enter to save the file and Ctrl+x to exit.

Bookmarks

Posting Permissions

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