Find the answer to your Linux question:
Results 1 to 3 of 3
Hello, I tried to add a user to the sudo list with 'sudo visudo' in the terminal which then showed me this editor: --- (text white, background black) GNU nano ...
  1. #1
    Just Joined!
    Join Date
    Apr 2009
    Posts
    4

    Visudo

    Hello, I tried to add a user to the sudo list with 'sudo visudo' in the terminal which then showed me this editor:

    ---
    (text white, background black) GNU nano 2.0.7 File: /etc/sudoers.tmp Modified (end of different colours)

    root ALL=(ALL) ALL
    (and some more text)

    and on the end
    (in black again)
    [ (line info, and col and char) ]
    ^G Get Help (and some more options)
    ^X Exit (and some more options)
    ---
    Now i tried adding a user by adding 'fluffos ALL=(ALL) ALL' below the root, which worked and i tried to save, which didn't work.
    I tried : x (without space.. smilies : ( ) and :X and ^X (like it showed below) but it was all added into the file as text, instead of saving or quitting : O

    Does anyone know how to enter these commands or another way to edit sudoers?
    Your help is very much appreciated

  2. #2
    Linux Engineer Kieren's Avatar
    Join Date
    Aug 2007
    Location
    England
    Posts
    845
    Try
    Code:
    Ctrl + X
    Linux User #453176

  3. #3
    Just Joined!
    Join Date
    Apr 2009
    Posts
    4
    it works : )

    Thanks very much

Posting Permissions

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