Difference between revisions of "Talk:Sudo"

From ArchWiki
Jump to: navigation, search
(sudo tips: new section)
m (Isn't sudo Substitute User DO not Super User DO?)
Line 20: Line 20:
  
 
I've heard it is bu i can't confirm it. - [[User:tommis|tommis]] Thu Jan 12 18:35 EET 2012
 
I've heard it is bu i can't confirm it. - [[User:tommis|tommis]] Thu Jan 12 18:35 EET 2012
 +
: Yes it stands for Substitute User DO, not Super User Do.  That's because its a combination of su and do.  It's in the history of sudo on the sudo.ws site, and I had edited this page to reflect the correct Substitute User Do, but someone replaced it.  It makes more sense to newbies just to call it super user do, even though sudo's strength is allowing one to run as any user.  -- [[User:AskApache|AskApache]] ([[User talk:AskApache|talk]]) 18:46, 1 October 2012 (UTC)
  
 
== line wrap in section "Defaults Skeleton" not working. text is cut off ==
 
== line wrap in section "Defaults Skeleton" not working. text is cut off ==

Revision as of 18:46, 1 October 2012

What is Sudo?

For some reason there is no explanation of what sudo is. Maybe a definition is in order before anything else is written. Thanks. - KitchM 16:37, 3 September 2009 (EDT)

I just added a small introduction about sudo based on Wikipedia's article. --Liquen 16:31, 12 November 2009 (EST)

Excellent! Thank you. - KitchM 19:25, 20 November 2009 (EST)

Errors

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)

Disable root login

Does anyone know a solution to network-manager-applet requiring the root password

Isn't sudo Substitute User DO not Super User DO?

I've heard it is bu i can't confirm it. - tommis Thu Jan 12 18:35 EET 2012

Yes it stands for Substitute User DO, not Super User Do. That's because its a combination of su and do. It's in the history of sudo on the sudo.ws site, and I had edited this page to reflect the correct Substitute User Do, but someone replaced it. It makes more sense to newbies just to call it super user do, even though sudo's strength is allowing one to run as any user. -- AskApache (talk) 18:46, 1 October 2012 (UTC)

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)

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.

to https://wiki.archlinux.org/index.php/Sudo#Passing_aliases


this prevent for "source .basrhc" errors