From ArchWiki
Revision as of 10:32, 3 October 2013 by AskApache (talk | contribs) (line wrap in section "Defaults Skeleton" not working. text is cut off)
Jump to: navigation, search


It might be good to discuss some errors which the user may run across. I found one that is found in various situations, and it seems to be indicative of a missing parameter: "sudo: no tty present and no askpass program specified" Mine came about as a "mount error" when using Samba and pyneighborhood in Xfce, but it appears to apply to any situation. It seems to indicate that there is a problem with a tty when using a graphical environment and/or not having an askpass program available. It would be nice to know what an "askpass" program is, and how it applies to sudo. I can't even begin to understand the significance of a password needing a tty. Thanks all. - KitchM 17:03, 21 November 2010 (EST)

line wrap in section "Defaults Skeleton" not working. text is cut off

The text of the examples is cut at right margin, can not read the full text. Even not when looking at the source. IMHO not very handy to use a vertical scrollbar at the bottom of this very long window. - - heinzoswald Fr 11. Mai 11:50:47 CEST 2012

It's true, those lines were pasted truncated with this edit, you may contact the author for more information.
About the horizontal scrollbar we agreed not to use automatic wrapping in code blocks. In theory, lines in scripts, config files and the like should be broken manually at a limited number of characters, especially in comments like in this case. -- Kynikos (talk) 13:43, 12 May 2012 (UTC)
This section unnecessarily duplicates Sudoers Manual#SUDOERS OPTIONS upstream. I think it should be replaced with a link to existing documentation. -- pointone (talk) 14:05, 13 May 2012 (UTC)
Well, I think the original author's intention was to make it available for copy-pasting it in sudoers as it is explained. For now I've added your reference and marked it as poorly written. -- Kynikos (talk) 09:33, 14 May 2012 (UTC)
@Kynikos, exactly right, it's currently pasted at the bottom of all my /etc/sudoers files.
I just re-formatted the text to fit 1280x1024 resolutions without overflowing.. -- AskApache (talk) 10:32, 3 October 2013 (UTC)

sudo tips

what about adding :

Warning: You need to replace "sudo" with "\sudo" in all functions who are called if they are located after "alias sudo = 'sudo'" in your ~/.bashrc.


this prevent for "source .basrhc" errors

Run X11 apps using sudo

can run X11 apps without adding this the line. Adding the line seems to be outdates! gives the error when you add! follow the