🔑 Pozastavení vyžadování hesla sudo v Linuxu
-
Někdy se vám může stát že budete delší dobu pracovat například v terminálu a budete chtít pozastavit vyžadování hesla sudo.
Jak na to?
* Otevřete editaci konfiguračního soubor přes sudo visudo. * Najdete v něm řádek Defaults env_reset. * Přípíšete k němu timestamp_timeout=x, kde X je počet minut, po které se sudo nezeptá na heslo. Dostanete tedy něco jako Defaults env_reset, timestamp_timeout=60. * Soubor uložíte.Příklady:
timestamp_timeout=60 - na heslo se nezeptá 60 minut timestamp_timeout=0 - na heslo se zeptá vždycky timestamp_timeout=-1 - na heslo se nezeptá nikdy
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Registrovat Přihlásit se