Cookie Consent by Free Privacy Policy Generator ๐Ÿ“Œ YSK : Do not use 'sudo vim/nano/emacs..' to edit a file. Instead, set your $EDITOR and use sudoedit or sudo -e.

๐Ÿ  Team IT Security News

TSecurity.de ist eine Online-Plattform, die sich auf die Bereitstellung von Informationen,alle 15 Minuten neuste Nachrichten, Bildungsressourcen und Dienstleistungen rund um das Thema IT-Sicherheit spezialisiert hat.
Ob es sich um aktuelle Nachrichten, Fachartikel, Blogbeitrรคge, Webinare, Tutorials, oder Tipps & Tricks handelt, TSecurity.de bietet seinen Nutzern einen umfassenden รœberblick รผber die wichtigsten Aspekte der IT-Sicherheit in einer sich stรคndig verรคndernden digitalen Welt.

16.12.2023 - TIP: Wer den Cookie Consent Banner akzeptiert, kann z.B. von Englisch nach Deutsch รผbersetzen, erst Englisch auswรคhlen dann wieder Deutsch!

Google Android Playstore Download Button fรผr Team IT Security



๐Ÿ“š YSK : Do not use 'sudo vim/nano/emacs..' to edit a file. Instead, set your $EDITOR and use sudoedit or sudo -e.


๐Ÿ’ก Newskategorie: Linux Tipps
๐Ÿ”— Quelle: reddit.com

TL;DR: title. It's to avoid exposing your system to vulnerabilities in your editor.

Hello all! Today, I want to adress one of my pet peeves : people using sudo to run their editors as root. This is bad because of two things :

  1. It leaves your system vulnerable to any exploits involving your editor. You may also be prone to user errors.
  2. But worst of all, it makes it so your editor ignores its configuration ! Your carefully crafted .vimrc, your beautiful .emacs config, all ignored !

Instead, set your $EDITOR environment variable, and use either sudoedit file or sudo -e file.

Thanks for reading.

submitted by /u/AlternOSx
[link] [comments] ...



๐Ÿ“Œ YSK : Do not use 'sudo vim/nano/emacs..' to edit a file. Instead, set your $EDITOR and use sudoedit or sudo -e.


๐Ÿ“ˆ 186.46 Punkte

๐Ÿ“Œ YSK: You usually should use "&&" instead of ";" in Bash


๐Ÿ“ˆ 48.06 Punkte

๐Ÿ“Œ sudo up to 1.9.4 sudoedit selinux_edit_copy_tfiles temp file


๐Ÿ“ˆ 44.01 Punkte

๐Ÿ“Œ It's usually Vim vs. Emacs under occasional mentioning of nano. Are there any other popular terminal text editors out there?


๐Ÿ“ˆ 42.52 Punkte

๐Ÿ“Œ Emacs 28.2 - GNU Emacs editor for OS X.


๐Ÿ“ˆ 41.72 Punkte

๐Ÿ“Œ CVE-2022-2042 | vim up to 8.1 vim/vim use after free


๐Ÿ“ˆ 40.67 Punkte

๐Ÿ“Œ CVE-2022-2946 | vim prior 9.0.0245 vim/vim use after free


๐Ÿ“ˆ 40.67 Punkte

๐Ÿ“Œ sudo up to 1.9.4 sudoedit personality sudo_edit.c race condition


๐Ÿ“ˆ 39.88 Punkte

๐Ÿ“Œ sudoedit (`sudo -e`) ใซไฟ‚ใ‚‹่„†ๅผฑๆ€ง (CVE-2023-22809)


๐Ÿ“ˆ 39.88 Punkte

๐Ÿ“Œ sudoedit (`sudo -e`) security flaw (CVE-2023-22809)


๐Ÿ“ˆ 39.88 Punkte

๐Ÿ“Œ This is grim, Vim and Neovim: Opening this crafty file in your editor may pwn your box. Patch now if not already


๐Ÿ“ˆ 39.42 Punkte

๐Ÿ“Œ Emacs and vim users: what do you think about the current "atom editor is dead" outcry?!


๐Ÿ“ˆ 39.41 Punkte

๐Ÿ“Œ CVE-2022-1720 | vim prior 8.2.4956 vim/vim grab_file_name buffer overflow


๐Ÿ“ˆ 37.26 Punkte

๐Ÿ“Œ Vim prank: alias vim='vim -y'


๐Ÿ“ˆ 37.26 Punkte

๐Ÿ“Œ Hey everyone! Mint, Can't locate nano file to run I just created? I can find it in the nano file directory.


๐Ÿ“ˆ 35.46 Punkte

๐Ÿ“Œ Why Vim Is More than Just an Editor โ€“ Vim Language, Motions, and Modes Explained


๐Ÿ“ˆ 35.32 Punkte

๐Ÿ“Œ Nano or Vim: Which is the better text editor for Linux?


๐Ÿ“ˆ 34.72 Punkte

๐Ÿ“Œ Choosing the Right Text Editor for Linux: Vim vs. Nano


๐Ÿ“ˆ 34.72 Punkte

๐Ÿ“Œ Email + Emacs/Vim Keybindings + Latex = Does not exist?


๐Ÿ“ˆ 34.33 Punkte

๐Ÿ“Œ YSK this YouTube channel which shows in a glance new and updated distros.


๐Ÿ“ˆ 33.63 Punkte

๐Ÿ“Œ Vim.Wasm - Vim Editor Ported To WebAssembly


๐Ÿ“ˆ 33.54 Punkte

๐Ÿ“Œ [Emacs Tutorial] It's semantic how Emacs binds all keys


๐Ÿ“ˆ 33.02 Punkte

๐Ÿ“Œ Faster GNU Emacs start: The Emacs Daemon


๐Ÿ“ˆ 33.02 Punkte

๐Ÿ“Œ Emacs Developers (Including Richard Stallman) Discuss How to Build a More 'Modern' Emacs


๐Ÿ“ˆ 33.02 Punkte

๐Ÿ“Œ [Emacs Tutorial] Emacs definitely easy, it starts everything from "M-x"


๐Ÿ“ˆ 33.02 Punkte

๐Ÿ“Œ How to Install Nano Text Editor in Linux โ€“ A Simple, Modeless Text Editor for Linux


๐Ÿ“ˆ 31.01 Punkte

๐Ÿ“Œ How to Install Nano Text Editor in Linux โ€“ A Simple, Modeless Text Editor for Linux


๐Ÿ“ˆ 31.01 Punkte

๐Ÿ“Œ nnn.vim: Fast and featureful file manager in vim/neovim


๐Ÿ“ˆ 30.75 Punkte











matomo