Difference between revisions of "Talk:Sudo"

From ArchWiki
Jump to: navigation, search
(Run X11 apps using sudo: new section)
(Add title to otherwise not categorized concern)
 
(37 intermediate revisions by 13 users not shown)
Line 1: Line 1:
== Errors ==
+
== Unclear intention of the section discussing hostnames ==
 
+
Hi, in the section "Example entries" I stumbled over this sentence:
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:
+
"To allow a user to run all commands as any user but only the machine with hostname HOST_NAME:"
"sudo: no tty present and no askpass program specified"
+
Is this intended to be saying "...on the machine...", like physically, not by ssh for example?
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. - [[User:KitchM|KitchM]] 17:03, 21 November 2010 (EST)
+
Would be great to clarify this!
 
+
[[User:Kay94|Kay94]] ([[User talk:Kay94|talk]]) 15:03, 28 July 2017 (UTC)kay94
== 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. - [[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 ==
 
 
 
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 [https://wiki.archlinux.org/index.php?title=Sudo&diff=next&oldid=185940 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. -- [[User:Kynikos|Kynikos]] ([[User talk:Kynikos|talk]]) 13:43, 12 May 2012 (UTC)
 
::This section unnecessarily duplicates [http://www.gratisoft.us/sudo/sudoers.man.html#sudoers_options Sudoers Manual#SUDOERS OPTIONS] upstream. I think it should be replaced with a link to existing documentation. -- [[User:Pointone|pointone]] ([[User talk: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. -- [[User:Kynikos|Kynikos]] ([[User talk: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
 
 
 
== 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 https://bbs.archlinux.org/viewtopic.php?pid=1193884
 

Latest revision as of 19:47, 28 July 2017

Unclear intention of the section discussing hostnames

Hi, in the section "Example entries" I stumbled over this sentence: "To allow a user to run all commands as any user but only the machine with hostname HOST_NAME:" Is this intended to be saying "...on the machine...", like physically, not by ssh for example? Would be great to clarify this! Kay94 (talk) 15:03, 28 July 2017 (UTC)kay94