OLD | NEW |
| (Empty) |
1 <html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859
-1"><title>xdg-su</title><meta name="generator" content="DocBook XSL Stylesheets
V1.69.1"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#84008
4" alink="#0000FF"><div class="refentry" lang="en"><a name="xdg-su"></a><div cla
ss="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>xdg-su — run
a GUI program as root after prompting for the root password</p></div><div class=
"refsynopsisdiv"><h2>Synopsis</h2><div class="cmdsynopsis"><p><code class="comma
nd">xdg-su</code> [<code class="option">-u <em class="replaceable"><code>user</
code></em></code>] <code class="option">-c <em class="replaceable"><code>comman
d</code></em></code> </p></div><div class="cmdsynopsis"><p><code class="command"
>xdg-su</code> { <code class="option">--help</code> | <code class="option">-
-manual</code> | <code class="option">--version</code> }</p></div></div><div
class="refsect1" lang="en"><a name="description"></a><h2>Description</h2><p> | |
2 xdg-su provides a graphical dialog that prompts the user for a password | |
3 to run <em class="replaceable"><code>command</code></em> as <em class="rep
laceable"><code>user</code></em> | |
4 or as root if no user was specified. | |
5 </p><p> | |
6 xdg-su is for use inside a desktop session only. | |
7 </p><p> | |
8 xdg-su discards any stdout and stderr output from | |
9 <em class="replaceable"><code>command</code></em>. | |
10 </p></div><div class="refsect1" lang="en"><a name="options"></a><h2>Options<
/h2><div class="variablelist"><dl><dt><span class="term"><code class="option">-u
<em class="replaceable"><code>user</code></em></code></span></dt><dd> | |
11 run <em class="replaceable"><code>command</code></em> as | |
12 <em class="replaceable"><code>user</code></em>. The default is to ru
n as root. | |
13 </dd><dt><span class="term"><code class="option">--help</code></span><
/dt><dd> | |
14 Show command synopsis. | |
15 </dd><dt><span class="term"><code class="option">--manual</code></span
></dt><dd> | |
16 Show this manualpage. | |
17 </dd><dt><span class="term"><code class="option">--version</code></spa
n></dt><dd> | |
18 Show the xdg-utils version information. | |
19 </dd></dl></div></div><div class="refsect1" lang="en"><a name="exitcod
es"></a><h2>Exit Codes</h2><p> | |
20 An exit code of 0 indicates success while a non-zero exit code | |
21 indicates failure. The following failure codes can be returned: | |
22 </p><div class="variablelist"><dl><dt><span class="term"><code class="option
">1</code></span></dt><dd> | |
23 Error in command line syntax. | |
24 </dd><dt><span class="term"><code class="option">2</code></span></dt><
dd> | |
25 One of the files passed on the command line did not exist. | |
26 </dd><dt><span class="term"><code class="option">3</code></span></dt><
dd> | |
27 A required tool could not be found. | |
28 </dd><dt><span class="term"><code class="option">4</code></span></dt><
dd> | |
29 The action failed. | |
30 </dd></dl></div></div><div class="refsect1" lang="en"><a name="seealso
"></a><h2>See Also</h2><p><span class="citerefentry"><span class="refentrytitle"
>su</span>(1)</span> | |
31 </p></div><div class="refsect1" lang="en"><a name="examples"></a><h2>Example
s</h2><p> | |
32 </p><pre class="programlisting"> | |
33 xdg-su -u root -c "/opt/shinythings/bin/install-GUI --install fast" | |
34 </pre><p> | |
35 Runs the /opt/shinythings/bin/install-GUI command with root permissions. | |
36 </p></div></div></body></html> | |
OLD | NEW |