[+] sudo, jak ustawić by nie zapamiętywało hasła
: 14 czerwca 2009, 20:55
Chce zrobić aby sudo nie zapamiętywało hasło, chwilowo mam tak że jak włączę system i użyję sudo to prosi o hasło, ale gdy już drugi raz używam sudo w tej samej sesji to system już nie pyta o hasło i tak jest aż do restartu system (może i wylogowania ale ja się rzadko wylogowuje), chce mieć tak żeby system zawsze pytało o hasło. Mój etc/sudoers wygląda tak:
Wiem że trzeba zmodyfikować linię:
Ale nie wiem jak?
Kod: Zaznacz cały
dragonn@debian:~$ sudo cat /etc/sudoers
# /etc/sudoers
#
# This file MUST be edited with the 'visudo' command as root.
#
# See the man page for details on how to write a sudoers file.
#
Defaults env_reset
# Host alias specification
# User alias specification
# Cmnd alias specification
# User privilege specification
root ALL=(ALL) ALL
dragonn ALL=(ALL) ALL
# Uncomment to allow members of group sudo to not need a password
# (Note that later entries override this, so you might need to move
# it further down)
# %sudo ALL=NOPASSWD: ALL
dragonn@debian:~$
Kod: Zaznacz cały
dragonn ALL=(ALL) ALL