# sudoers file. 2 # 3 # This file MUST be edited with the 'visudo' command as root. 4 # 5 # See the sudoers man page for the details on how to write a sudoers file. 6 # 7 8 # Host alias specification 9 10 # User alias specification 11 12 # Cmnd alias specification 13 14 # Defaults specification 15 16 # Prevent environment variables from influencing programs in an 17 # unexpected or harmful way (CVE-2005-2959, CVE-2005-4158, CVE-2006-0151) 18 Defaults always_set_home 19 Defaults env_reset 20 21 Defaults env_keep = "LANG LC_ADDRESS LC_CTYPE LC_COLLATE LC_IDENTIFICATION LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER LC_TELEPHONE LC_TIME LC_ALL LANGUAGE LINGUAS XDG_SESSION_COOKIE" 22 # Comment out the preceding line and uncomment the following one if you need 23 # to use special input methods. This may allow users to compromise the root 24 # account if they are allowed to run commands without authentication. 25 #Defaults env_keep = "LANG LC_ADDRESS LC_CTYPE LC_COLLATE LC_IDENTIFICATION LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAM E LC_NUMERIC LC_PAPER LC_TELEPHONE LC_TIME LC_ALL LANGUAGE LINGUAS XDG_SESSION_COOKIE XMODIFIERS GTK_IM_MODULE QT_IM_MODU LE QT_IM_SWITCHER" 26 27 # In the default (unconfigured) configuration, sudo asks for the root password. 28 # This allows use of an ordinary user account for administration of a freshly 29 # installed system. When configuring sudo, delete the two 30 # following lines: 31 #Defaults targetpw # ask for the password of the target user i.e. root 32 #ALL ALL=(ALL) ALL # WARNING! Only use this together with 'Defaults targetpw'! Once again the output is truncated for security reason
Any thoughts on this command? Does it work on your machine? Can you do the same thing with only 14 characters?
You must be signed in to comment.
commandlinefu.com is the place to record those command-line gems that you return to again and again. That way others can gain from your CLI wisdom and you from theirs too. All commands can be commented on, discussed and voted up or down.
Every new command is wrapped in a tweet and posted to Twitter. Following the stream is a great way of staying abreast of the latest commands. For the more discerning, there are Twitter accounts for commands that get a minimum of 3 and 10 votes - that way only the great commands get tweeted.
» http://twitter.com/commandlinefu
» http://twitter.com/commandlinefu3
» http://twitter.com/commandlinefu10
Use your favourite RSS aggregator to stay in touch with the latest commands. There are feeds mirroring the 3 Twitter streams as well as for virtually every other subset (users, tags, functions,…):
Subscribe to the feed for: