![]() The commands that are allowed sudo access need to be thought out and the functionality needs to be understood. So, have fun and please root responsibly. Sudo is a super powerful and incredibly dangerous tool. See xkcd, sudo, linux, geek, interwebs Random Word 59 Random Words: Newsprint Grazers 1. What Make it yourself -Sudo make me a sandwich. Sudo make "me a sandwich" #bash automatically shows you what the full command with replacement is. The su in sudo is short for superuser and it is a standalone command. GitHub - sudo-js/make-me-a-sandwich: High level, small footprint, native leaning library to aid your display of Javascript Badassery. The ultimate way to get that sandwich you want when you can't leave your computer because someone is wrong on the internet -Make me a sandwich. $ sudo !! # !! takes the full last command in history and puts it here This is EXTREMELY (I wish I could make it even bolder) and I repeat EXTREMELY unwise, and I think you will find yourself in much more of a bind than just having to remember to type the five characters sudo before your command.Īs an alternative, you could sudo su - before you have to run a string of commands limiting the stress on your fingers for those extra five characters ( 5's can add up quickly.) and remember to type the four characters exit at the end so you do not do anything stupid unintentionally.Īs was posted before, the better option is to just take advantage of the command history if you make a mistake and do: $ make "me a sandwich" If you do not want to have to type sudo before everything which needs root authentication or authorization, then the only solution is to log in as root. F.A.Q.s About Vive Blog Contact Sudo This file is inspired by the classical Sudo make me a sandwich xkcd comic. Maybe someone more patient than me can figure out exactly what is going on.I know this answer is not going to be popular, but in answering the question, it is appropriate ( but not wise). How can I give a grace period to CTRL-ALT-DEL in systemd suggests that this is controlled by /lib/systemd/system/ctrl-alt-del.target, but on my system that is just a symlink to reboot.target, which seems to actually reboot, not just logout. On Ubuntu 20.10 for example, which uses systemd as the init, everything is wired up so that Ctrl + Alt + Del by default offers to log you out on the GUI. development phases from product definition through code maintenance. A phrase commonly said to a bitch by her master when he (or she) is hungry. * Disable the forced reboot, enable sending SIGINT to init. Which behavior is used can be selected with either:įor example, BusyBox' 1.28.3 init execs an arbitrary command given in /etc/inittab as: ::ctrlaltdel:/sbin/rebootĪnd here is a minimal interesting C example for uclibc: #define _XOPEN_SOURCE 700 The Linux kernel itself allows two possible behaviors from Ctrl+ Alt+ Del: Therefore, if the SIGINT behaviour is enabled, then you can make Ctrl + Alt + Del do whatever your init wants it to do. It started with Jack William Bells tweets yesterday: Make me a sandwich. The second command should work because of sudo, not because it's the second invocation. XKCD 149, AKA Sandwich, is justly treasured as a classic of nerd humor, but there are plenty of other potential punchlines. Must not say Okay to any shorter make command (e.g. The Linux kernel can either hard reboot or send SIGINT the init process upon Ctrl + Alt + Del Re: sudo make me a sandwich Shouldnt that be gksudo, as a sandwich is graphical, it might mess up the /.ICEauthority file if you did it that way. make me a sandwich What Make it yourself sudo make me a sandwich Okay Rules: Should work on a Linux machine, where the user isn't root but allowed to use sudo. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |