Find the answer to your Linux question:
Results 1 to 5 of 5
Originally Posted by devils casper Execute this Code: sudo visudo It will open /etc/sudoers file in vi editor. Append " Defaults env_reset " line with timestamp_timeout =<time_in_minutes>. Code: Defaults env_reset ...
  1. #1
    Just Joined! mpg198's Avatar
    Join Date
    Apr 2009
    Posts
    86

    not on the sudoers list

    Quote Originally Posted by devils casper View Post
    Execute this
    Code:
    sudo visudo
    It will open /etc/sudoers file in vi editor.
    Append "Defaults env_reset" line with timestamp_timeout=<time_in_minutes>.

    Code:
    Defaults  env_reset timestamp_timeout=0
    I cannot execute this because I am not on the sudoers list!

  2. #2
    oz
    oz is offline
    forum.guy
    Join Date
    May 2004
    Location
    arch linux
    Posts
    18,099
    You should be able to add yourself to the list. Try running:

    Code:
    sudo visudo
    or

    Code:
    visudo
    You can get more details by checking the visudo manual page:

    Code:
    man visudo
    ...or find a web version of it here:

    Visudo Manual
    oz

    new members/users: read this first | new member faq
    no private messages requesting computer support - post them on the forums!
    please use the "report post" button to alert our forum admins to problematic posts rather than responding to them yourself.

  3. #3
    Linux Guru
    Join Date
    Nov 2004
    Posts
    6,110
    Do you have a root logon or access to another user on the sudoers list? It boils down to you not being able to grant root access if you don't have it in the first place.

  4. #4
    Just Joined! mpg198's Avatar
    Join Date
    Apr 2009
    Posts
    86
    Ya, that's the problem, I do not have root access to begin with. But thanks to this page:
    Personal Fedora 10 Installation Guide

    I found out I can type "su" to drop to a root terminal.

    su is like sudo -i except it uses the root password and anyone who knows the root password can uses it instead of using the password of a logged on user on the sudoers list.

  5. #5
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
    Posts
    8,974
    If you have the root password, you can add yourself to the sudoers list. Just su to root and run /usr/sbin/visudo.
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

Posting Permissions

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