/usr/share/doc/kde/HTML/en/kubuntu/cli/elevated-privileges.html is in kubuntu-docs 12.04.0ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 | <html><head><title>Executing Commands with Elevated Privileges</title><link rel="stylesheet" type="text/css" href="help:/common/kde-default.css"><link rel="stylesheet" type="text/css" href="help:/common/kde-docs.css"><link rel="stylesheet" type="text/css" href="help:/common/kde-localised.css"><link rel="stylesheet" type="text/css" href="help:/common/kubuntu.css"><meta name="generator" content="DocBook XSL Stylesheets V1.76.1"><link rel="home" href="index.html" title="Introduction To The Command Line"><link rel="up" href="index.html" title="Introduction To The Command Line"><link rel="prev" href="sysinfo.html" title="System Information Commands"><link rel="next" href="options.html" title="Options"><link rel="copyright" href="legal.html" title="Credits and License"><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><meta name="GENERATOR" content="KDE XSL Stylesheet V1.14 using libxslt"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div id="content"><div id="header"><div id="header_content"><div id="header_left"><div id="header_right"><img src="help:/common/top-kde.jpg" width="36" height="34"> Executing Commands with Elevated Privileges</div></div></div></div><div class="navCenter"><table class="navigation"><tr><td class="prevCell"><a accesskey="p" href="sysinfo.html">Prev</a></td><td class="upCell"> </td><td class="nextCell"><a accesskey="n" href="options.html">Next</a></td></tr></table></div><div id="contentBody"><div class="sect1"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="elevated-privileges"></a>Executing Commands with Elevated Privileges</h2></div></div></div><p>
The following commands must be prefaced with the
<span xmlns:doc="http://nwalsh.com/xsl/documentation/1.0" class="command"><span class="command"><strong>sudo</strong></span></span> command. Please see <a class="ulink" href="https://help.ubuntu.com/community/RootSudo" target="_top">RootSudo</a> for
information on using <span xmlns:doc="http://nwalsh.com/xsl/documentation/1.0" class="command"><span class="command"><strong>sudo</strong></span></span>. (<abbr class="abbrev">sudo</abbr> is short
for <span class="quote">“<span class="quote">superuser do</span>”</span>).
</p><div class="sect2"><div class="titlepage"><div><div><h3 class="title"><a name="add-group"></a>Adding a New Group</h3></div></div></div><p>
The <span xmlns:doc="http://nwalsh.com/xsl/documentation/1.0" class="command"><span class="command"><strong>addgroup</strong></span></span> command is used to create a new group in the
system. To create a new group, type: </p><pre class="screen">sudo addgroup foobar</pre><p> The
above command will create a new group called <span class="emphasis"><em>foobar</em></span>.
</p></div><div class="sect2"><div class="titlepage"><div><div><h3 class="title"><a name="add-user"></a>Adding a New User</h3></div></div></div><p>
The <span xmlns:doc="http://nwalsh.com/xsl/documentation/1.0" class="command"><span class="command"><strong>adduser</strong></span></span> command is used to create a new user on the
system. To create a new user, type: </p><pre class="screen">adduser foobar</pre><p> which will
create a new user called <span class="emphasis"><em>foobar</em></span>.
</p></div><div class="sect2"><div class="titlepage"><div><div><h3 class="title"><a name="passwd"></a>Add or Change a User Password</h3></div></div></div><p>
The <span xmlns:doc="http://nwalsh.com/xsl/documentation/1.0" class="command"><span class="command"><strong>passwd</strong></span></span> command is used to assign a new password to a
new user or change the current password for an existing user. To add a password
or change the password for the user <span class="emphasis"><em>foobar</em></span>, type:
</p><pre class="screen">passwd foobar</pre><p> For new users, this will generate a prompt to
enter the new password. For an existing user, there will be a prompt for the
existing password before the prompt for a new password.
</p></div><div class="sect2"><div class="titlepage"><div><div><h3 class="title"><a name="assign-user-group"></a>Assign User to Group</h3></div></div></div><p>
To assign the user <span class="emphasis"><em>foobar</em></span> to the group
<span class="emphasis"><em>barfoo</em></span>, type: </p><pre class="screen">adduser foobar barfoo</pre><p>
</p></div></div></div><div id="footer"><div class="navCenter"><table class="navigation"><tr><td class="prevCell"><a accesskey="p" href="sysinfo.html">Prev</a></td><td class="upCell"><a accesskey="h" href="index.html">Home</a></td><td class="nextCell"><a accesskey="n" href="options.html">Next</a></td></tr><tr><td class="prevCell">System Information Commands </td><td class="upCell"> </td><td class="nextCell"> Options</td></tr></table></div><div id="footer_text"><br><a href="mailto:ubuntu-docs@lists.ubuntu.com" class="footer_email">
Ubuntu Documentation Project
</a></div></div></div></body></html>
|