Find the answer to your Linux question:
Results 1 to 3 of 3
I want to make sudo re-ask me for my password. It caches it for 5 mins I think, but I realise I don't know how to force it to re-ask. ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Linux Newbie humbletech99's Avatar
    Join Date
    Nov 2005
    Posts
    225

    Force sudo to re-ask for password?


    I want to make sudo re-ask me for my password. It caches it for 5 mins I think, but I realise I don't know how to force it to re-ask.

    Does anybody know how to do this?

  2. #2
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,729
    Hi humbletech99 !

    in /etc/sudoers file, change
    Code:
    Defaults        !lecture,tty_tickets
    to
    Code:
    Defaults        !lecture,tty_tickets,timestamp_timeout=0
    Be aware that 'sudo' is very picky about correct syntax in its configuration file and will refuse to work if you make the slightest mistake. you should use the 'visudo' tool to edit the file, rather than opening it directly.





    casper
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  3. #3
    Linux Newbie humbletech99's Avatar
    Join Date
    Nov 2005
    Posts
    225
    thanks, that was exactly it.

  4. $spacer_open
    $spacer_close

Posting Permissions

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