Find the answer to your Linux question:
Results 1 to 3 of 3
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    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
    SuperMod (Back again) devils casper's Avatar
    Join Date
    Jun 2006
    Chandigarh, India
    Hi humbletech99 !

    in /etc/sudoers file, change
    Defaults        !lecture,tty_tickets
    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.

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

  3. #3
    thanks, that was exactly it.

  4. $spacer_open

Posting Permissions

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